From d11acd6d52351b35c102e9c18e32d38a11975c5b Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 10 Jul 2012 12:57:37 +1000 Subject: Simple test stuff - examples from the paper --- impl/test/run | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 impl/test/run (limited to 'impl/test/run') 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 -- cgit v1.2.3