diff --git a/test/test.sh b/test/test.sh new file mode 100755 index 00000000..9a99b8b4 --- /dev/null +++ b/test/test.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +export PYTHONPATH="$(realpath $(dirname $0))":"$(realpath $(dirname $0)/..)":"$PYTHONPATH" + +cd "$(realpath $(dirname $0))" +PYTHON=python2 +if head -1 ../init | grep -q python3; then + PYTHON=python3 +fi +$PYTHON test_errors.py -v