2015-06-23 00:34:24 +00:00
|
|
|
#!/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 ;;
|
2015-06-23 00:34:24 +00:00
|
|
|
*) echo "Unknown" ;;
|
|
|
|
esac
|
|
|
|
echo
|
|
|
|
done
|