gecko-dev/security/nss/tests/all.sh

36 lines
706 B
Bash
Executable File

#!/bin/sh
#
# Run all our tests
#
CURDIR=`pwd`
TESTS="ssl"
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}
tail -f ${LOGFILE} &
TAILPID=$!
trap "kill ${TAILPID}; exit" 2
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
kill ${TAILPID}