commit e01fa4c54ab6f59b90e57634cd9d01f7a6e73caf parent d128907bc21e1ca798288ed555b75d63e30ea3ac Author: lash <dev@holbrook.no> Date: Mon, 14 Mar 2022 21:41:00 +0000 Add testrunner script Diffstat:
A | run_tests.sh | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/run_tests.sh b/run_tests.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +set +e +set +x +default_pythonpath=$PYTHONPATH:. +export PYTHONPATH=${default_pythonpath:-.} +>&2 echo using pythonpath $PYTHONPATH +for f in `ls tests/*.py`; do + python $f + if [ $? -gt 0 ]; then + exit 1 + fi +done +set -x +set -e