summaryrefslogtreecommitdiff
path: root/impl/test/run
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-07-10 12:57:37 +1000
committerCarlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au>2012-07-10 12:57:37 +1000
commitd11acd6d52351b35c102e9c18e32d38a11975c5b (patch)
tree87bed31ad5c1c1de24552eabad012fc2ce4ecc48 /impl/test/run
parent9f3fff18f29d250745a758d13e4c4d39f59bee9c (diff)
Simple test stuff - examples from the paper
Diffstat (limited to 'impl/test/run')
-rw-r--r--impl/test/run16
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