-for t in $(echo "$TESTS" | sed -e 's/-in.txt//g'); do
- printf "%40s: " $t
- if [ ! -f "$t-in.txt" ]; then
- echo "ERROR: File not found: $t-in.txt"
+for tf in $(echo "$TESTS"); do
+ t=$(echo $tf | sed -e 's/-in.txt//g' | sed -e 's/-in.sh//g')
+ printf "%40s: " $tf
+ if [ -f "$t-in.txt" ]; then
+ cmd="../single-test.sh ../$t-in.txt";
+ elif [ -f "$t-in.sh" ]; then
+ if [ ! -x "$t-in.sh" ]; then
+ echo "ERROR: $t-in.sh is not executable"
+ stop_button
+ exit -1;
+ fi
+ cmd="../$tf";
+ else
+ echo "ERROR: File not found: $t-in.txt or $t-in.sh"
+ stop_button