зеркало из https://github.com/mozilla/gecko-dev.git
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)
This commit is contained in:
Родитель
9f2cc579ba
Коммит
9ed6996ee7
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче