summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslavomir.katuscak%sun.com <devnull@localhost>2007-01-15 09:47:40 +0000
committerslavomir.katuscak%sun.com <devnull@localhost>2007-01-15 09:47:40 +0000
commit773c36f22072100295c92d8e11c661fd94fa442f (patch)
tree6355aa32e1cf783653ced68d2ea6185898974412
parent9325d30c86aefdca18bf5745375cf9d6f0e73f15 (diff)
downloadnss-hg-773c36f22072100295c92d8e11c661fd94fa442f.tar.gz
Bug 335752. Patch to allow TESTS variable from environment. r=alexei,sr=nelson
-rwxr-xr-xsecurity/nss/tests/all.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/security/nss/tests/all.sh b/security/nss/tests/all.sh
index b02dbbad0..67aa561bd 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
@@ -92,12 +93,17 @@ fi
for i in ${TESTS}
do
SCRIPTNAME=${i}.sh
- echo "Running Tests for $i"
if [ "$O_CRON" = "ON" ]
then
- (cd ${QADIR}/$i ; . ./$SCRIPTNAME all file >> ${LOGFILE} 2>&1)
+ echo "Running tests for $i" >> ${LOGFILE}
+ echo "TIMESTAMP $i BEGIN: `date`" >> ${LOGFILE}
+ (cd ${QADIR}/$i ; . ./$SCRIPTNAME all file) >> ${LOGFILE} 2>&1
+ echo "TIMESTAMP $i END: `date`" >> ${LOGFILE}
else
- (cd ${QADIR}/$i ; . ./$SCRIPTNAME all file 2>&1 | tee -a ${LOGFILE})
+ echo "Running tests for $i" | tee -a ${LOGFILE}
+ echo "TIMESTAMP $i BEGIN: `date`" | tee -a ${LOGFILE}
+ (cd ${QADIR}/$i ; . ./$SCRIPTNAME all file) 2>&1 | tee -a ${LOGFILE}
+ echo "TIMESTAMP $i END: `date`" | tee -a ${LOGFILE}
fi
done