From 9ed6996ee7b8077459ce2df1ae92f9411ba6a9e6 Mon Sep 17 00:00:00 2001 From: "slavomir.katuscak%sun.com" Date: Tue, 17 Oct 2006 09:48:17 +0000 Subject: [PATCH] 1. Adding timestamps + total time measure for testing subscripts 2. Enables using TESTS variable from system environment (for example TESTS=cert ./all.sh will test only cert tests) --- security/nss/tests/all.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/security/nss/tests/all.sh b/security/nss/tests/all.sh index b02dbbad0bd9..13d69f7f7d52 100755 --- a/security/nss/tests/all.sh +++ b/security/nss/tests/all.sh @@ -78,7 +78,8 @@ # ######################################################################## -TESTS="cipher perf cert dbtests tools fips sdr crmf smime ssl" +tests="cipher perf cert dbtests tools fips sdr crmf smime ssl" +TESTS=${TESTS-$tests} SCRIPTNAME=all.sh CLEANUP="${SCRIPTNAME}" cd `dirname $0` # will cause problems if sourced @@ -93,12 +94,14 @@ for i in ${TESTS} do SCRIPTNAME=${i}.sh echo "Running Tests for $i" + echo "TIMESTAMP $i BEGIN: `date`" if [ "$O_CRON" = "ON" ] then - (cd ${QADIR}/$i ; . ./$SCRIPTNAME all file >> ${LOGFILE} 2>&1) + (cd ${QADIR}/$i ; time ./$SCRIPTNAME all file) >> ${LOGFILE} 2>&1 else - (cd ${QADIR}/$i ; . ./$SCRIPTNAME all file 2>&1 | tee -a ${LOGFILE}) + (cd ${QADIR}/$i ; time ./$SCRIPTNAME all file) 2>&1 | tee -a ${LOGFILE} fi + echo "TIMESTAMP $i END: `date`" done SCRIPTNAME=all.sh