15 lines
284 B
Plaintext
15 lines
284 B
Plaintext
|
#!/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
|