terminator/run_tests

15 lines
324 B
Plaintext
Raw Normal View History

#!/bin/bash
for t in tests/test*; do
echo $t
file_type=$(file -b $t)
case ${file_type} in
2020-05-01 07:36:09 +00:00
*[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