runtest.sh (248B)
1 #!/bin/sh 2 3 # Sure, eval may not be recommended practice, but then 4 # again, these are just tests... 5 eval "./$1.sh" > runtest.txt 2>&1 6 diff $1.txt runtest.txt > /dev/null 7 if [ $? -eq 0 ]; then 8 echo "OK $1" 9 else 10 echo "FAILED $1" 11 fi 12 rm runtest.txt