aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.sh
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-10-13 14:01:57 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-10-13 14:01:57 +0000
commit01e44dc1fd936498399d3bd39b1e8d87b9fc97fb (patch)
tree32f594e20f2a53a16bb67bc6189546cf33ffd38b /tests/runtests.sh
parent63016f71e1fd85db7be41c299d751216ccb1b075 (diff)
added (simple) regression tests for objects; currrently the only test performed is whether an object reacts on a message
svn path=/trunk/externals/iem/iemmatrix/; revision=3708
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
+
+