diff options
Diffstat (limited to 'impl/test/run')
-rw-r--r-- | impl/test/run | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/impl/test/run b/impl/test/run new file mode 100644 index 0000000..d238962 --- /dev/null +++ b/impl/test/run @@ -0,0 +1,16 @@ +#!/bin/bash + +NUM=1 + +while [ -f "$NUM.eqns" ] +do + OUTPUT=$($1 "$NUM.eqns" smart smart) + DIFF=$(echo "$OUTPUT" | diff - "$NUM.soln") + if [ ! -z "$DIFF" ]; then + echo "==================" + echo "Test #$NUM failed:" + echo "$OUTPUT" | sdiff - "$NUM.soln" + echo + fi + NUM=$(($NUM + 1)) +done |