aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-10-14 10:21:44 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-10-14 10:21:44 +0000
commitbc07020328352ab8a9562a7f5bab295050c5532a (patch)
treef25dd769d513b630f4f0debb94ea863b08d93341 /tests
parent4eb4066a799f30e35b9736772838b2af019a337f (diff)
updated to also report the total number of tests to be executed (not necessarily the same number as have been executed after the testrun)
svn path=/trunk/externals/iem/iemmatrix/; revision=3716
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh
index 4c9f04d..27c4972 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -1,14 +1,22 @@
#!/bin/sh
-ls -1 */*.pd | sed 's/\.pd/;/' > runtests.txt
+RUNTESTS_TXT=runtests.txt
+RUNTESTS_LOG=runtests.log
+
+ls -1 */*.pd | sed 's/\.pd/;/' > $RUNTESTS_TXT
+
+IEMMATRIX="-lib ../iemmatrix -path ../abs/"
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: //'
+ pd $IEMMATRIX -nogui runtests_nogui.pd > ${RUNTESTS_LOG}.$$ 2>&1
+ NUMTESTS=`grep -c . $RUNTESTS_TXT`
+ echo "regression-test: ${NUMTESTS} tests total" >> ${RUNTESTS_LOG}.$$
+
+ cat ${RUNTESTS_LOG}.$$ | egrep "^regression-test: " | sed -e 's/^regression-test: //'
}
function run_withgui() {
- pd -lib ../iemmatrix runtests.pd > runtests.log 2>&1
+ pd $IEMMATRIX -stderr runtests.pd > ${RUNTESTS_LOG} 2>&1
}
if test "x$1" = "x-gui"; then