commit 6b768b41571898f9281fa97dd143a3c3082760ca parent ba35dc5af94794db930ca7d1518b41e1a8fac115 Author: lash <dev@holbrook.no> Date: Wed, 29 Mar 2023 10:31:10 +0100 Add test runner scripts Diffstat:
A | python/run_tests.sh | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/python/run_tests.sh b/python/run_tests.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +export PYTHONPATH=${PYTHONPATH}:. +>&2 echo "using pythonpath $PYTHONPATH" + +set -e +set -x +for f in `ls tests/*.py`; do + python $f + if [ $? -gt 0 ]; then + exit 1 + fi +done +set +x +set +e