aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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() {