aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtests.sh')
-rwxr-xr-xtests/runtests.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh
new file mode 100755
index 0000000..4c9f04d
--- /dev/null
+++ b/tests/runtests.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+ls -1 */*.pd | sed 's/\.pd/;/' > runtests.txt
+
+function run_nogui() {
+ pd -lib ../iemmatrix -nogui runtests_nogui.pd > runtests.log.$$ 2>&1
+cat runtests.log.$$ | egrep "^regression-test: " | sed -e 's/^regression-test: //'
+}
+
+function run_withgui() {
+ pd -lib ../iemmatrix runtests.pd > runtests.log 2>&1
+}
+
+if test "x$1" = "x-gui"; then
+ run_withgui
+else
+ run_nogui
+fi
+
+