summary refs log tree commit diff
path: root/lisc
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-26 15:46:15 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-26 15:46:15 -0500
commitef5ae515a0fbd5bcd6587767e00a802a049e687e (patch)
tree0cb7c0866971ed7def01155a1f3f6954bc03f950 /lisc
parente91a7788e0c242d1891aeb1d9df5946027fb9f6d (diff)
downloadroux-ef5ae515a0fbd5bcd6587767e00a802a049e687e.tar.gz
add regression testing script
Diffstat (limited to 'lisc')
-rwxr-xr-xlisc/tools/regress.sh17
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