From 31d70374cf3b2761a4ae1ba3314ea93bfeb9105a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Mon, 30 Jan 2006 09:12:44 +0000 Subject: changed the lognames from "runtest.log.$$" to "log-runtests." svn path=/trunk/externals/zexy/; revision=4521 --- tests/runtests.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests') 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() { -- cgit v1.2.1