diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-26 15:46:15 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-26 15:46:15 -0500 |
commit | ef5ae515a0fbd5bcd6587767e00a802a049e687e (patch) | |
tree | 0cb7c0866971ed7def01155a1f3f6954bc03f950 /lisc/tools/regress.sh | |
parent | e91a7788e0c242d1891aeb1d9df5946027fb9f6d (diff) | |
download | roux-ef5ae515a0fbd5bcd6587767e00a802a049e687e.tar.gz |
add regression testing script
Diffstat (limited to 'lisc/tools/regress.sh')
-rwxr-xr-x | lisc/tools/regress.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lisc/tools/regress.sh b/lisc/tools/regress.sh new file mode 100755 index 0000000..cfc70f2 --- /dev/null +++ b/lisc/tools/regress.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +for t in test/* +do + printf "Test $t ... " + + ./lisc $t 2>&1 > /tmp/out.0 + ./lisc.1 $t 2>&1 > /tmp/out.1 + + if diff /tmp/out.0 /tmp/out.1 > /dev/null + then + echo "OK" + else + echo "KO" + break + fi +done |