summary refs log tree commit diff
path: root/lisc/tools
diff options
context:
space:
mode:
Diffstat (limited to 'lisc/tools')
-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