diff options
| -rwxr-xr-x | test/run.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/run.sh b/test/run.sh index 8c687cb..529956f 100755 --- a/test/run.sh +++ b/test/run.sh @@ -1,12 +1,19 @@ #!/bin/sh +set -e; # ensure we can use unicode filenames in the test export LC_ALL=en_US.UTF-8 THISDIR=`dirname $0` export PYTHONPATH=${THISDIR}/.. -echo "python2.7" -python2.7 ${THISDIR}/test.py -echo "python3.0" -python3 ${THISDIR}/test.py +PYTHONS="python2.7 python3.5 bad" + +for pyver in $PYTHONS; do + if which $pyver > /dev/null; then + $pyver ${THISDIR}/test.py + else + echo "version $pyver not found" + + fi +done |
