aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-01-30 09:12:44 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-01-30 09:12:44 +0000
commit31d70374cf3b2761a4ae1ba3314ea93bfeb9105a (patch)
treeb7db828bd0fa227de927c49712f2b6bd8d372cea /tests
parent20959e183a67469d7ddeed25dc9f9a84d54ff6b0 (diff)
changed the lognames from "runtest.log.$$" to "log-runtests.<date>"
svn path=/trunk/externals/zexy/; revision=4521
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/runtests.sh b/tests/runtests.sh
index 51c54c9..fd7b28a 100755
--- a/tests/runtests.sh
+++ b/tests/runtests.sh
@@ -1,18 +1,21 @@
#!/bin/sh
+#SUFFIX="$$"
+SUFFIX=$(date +%y%m%d-%H%M%S)
+
RUNTESTS_TXT=runtests.txt
-RUNTESTS_LOG=runtests.log
+RUNTESTS_LOG=log-runtests.${SUFFIX}
ls -1 */*.pd | sed 's/\.pd/;/' > ${RUNTESTS_TXT}
LIBFLAGS="-lib ../zexy -path ../abs/"
function run_nogui() {
- pd ${LIBFLAGS} -nogui runtests_nogui.pd > ${RUNTESTS_LOG}.$$ 2>&1
+ pd ${LIBFLAGS} -nogui runtests_nogui.pd > ${RUNTESTS_LOG} 2>&1
NUMTESTS=`grep -c . ${RUNTESTS_TXT}`
- echo "regression-test: ${NUMTESTS} tests total" >> ${RUNTESTS_LOG}.$$
+ echo "regression-test: ${NUMTESTS} tests total" >> ${RUNTESTS_LOG}
- cat ${RUNTESTS_LOG}.$$ | egrep "^regression-test: " | sed -e 's/^regression-test: //'
+ cat ${RUNTESTS_LOG} | egrep "^regression-test: " | sed -e 's/^regression-test: //'
}
function run_withgui() {