gecko-dev/security/nss/tests/all.sh
sonmi%netscape.com 2e5bb06d28 fixed unreasonable long PATH (which refused) and got rid of the error when
run interactively (-n_TestUser-w_bogus was filtered through an sed, which
thought that -n was **his** option...)
2000-12-12 05:10:51 +00:00

46 lines
939 B
Bash
Executable File

#!/bin/sh
#
# Run all our tests
#
ALL_SH_BASEPATH=$PATH #to avoid that PATH is being appended every time
export ALL_SH_BASEPATH #init is sourced
CURDIR=`pwd`
TESTS="sdr ssl cipher smime"
cd common
. ./init.sh
export MOZILLA_ROOT
export COMMON
export DIST
export SECURITY_ROOT
export TESTDIR
export OBJDIR
export HOSTDIR
LOGFILE=${HOSTDIR}/output.log
export LOGFILE
touch ${LOGFILE}
if [ -z "O_CRON" -o "$O_CRON" != "ON" ]
then
tail -f ${LOGFILE} &
TAILPID=$!
trap "kill ${TAILPID}; exit" 2
fi
for i in ${TESTS}
do
echo "Running Tests for $i"
#
# All tells the test suite to run through all their tests.
# file tells the test suite that the output is going to a log, so any
# forked() children need to redirect their output to prevent them from
# being over written.
(cd ${CURDIR}/$i ; ./${i}.sh all file >> ${LOGFILE} 2>&1)
# cd ${CURDIR}/$i ; ./${i}.sh
done
if [ -z "O_CRON" -o "$O_CRON" != "ON" ]
then
kill ${TAILPID}
fi