mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
2e5bb06d28
run interactively (-n_TestUser-w_bogus was filtered through an sed, which thought that -n was **his** option...)
46 lines
939 B
Bash
Executable File
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
|