terminator/run_tests
bryce 0f201ade0f tests: Make tests easier to run at a package level
Add a run_tests script.  Move tests subdir to top level.  Force
terminatorlib into path for tests.

As of this commit, all tests pass:

  ~/src/Terminator/terminator$ ./run_tests 
  tests/testborg.py

  tests/test_doctests.py

  tests/testsignalman.py
  0/14 tests failed
2015-06-22 15:39:42 -07:00

15 lines
284 B
Bash
Executable File

#!/bin/bash
for t in tests/test*; do
echo $t
file_type=$(file -b $t)
case ${file_type} in
*[Pp]ython*) python ${t} ;;
*Bourne*) bash ${t} ;;
*bash*) bash ${t} ;;
*perl*) perl ${t} ;;
*) echo "Unknown" ;;
esac
echo
done