run_tests.sh (257B)
1 #!/bin/bash 2 3 set -a 4 set -e 5 set -x 6 7 default_pythonpath=$PYTHONPATH:. 8 export PYTHONPATH=${default_pythonpath:-.} 9 10 for f in `ls tests`; do 11 if [ "test_" == ${f:0:5} ]; then 12 python tests/$f 13 if [ $? -ne 0 ]; then 14 exit 1 15 fi 16 fi 17 done 18 set +x 19 set +e 20 set +a