terminator/run_tests

15 lines
324 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} || exit 1 ;;
*Bourne*) bash ${t} || exit 1 ;;
*bash*) bash ${t} || exit 1 ;;
*perl*) perl ${t} || exit 1 ;;
*) echo "Unknown" ;;
esac
echo
done