summaryrefslogtreecommitdiff
path: root/nsprpub/pr/tests/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/tests/runtests.sh')
-rwxr-xr-xnsprpub/pr/tests/runtests.sh81
1 files changed, 37 insertions, 44 deletions
diff --git a/nsprpub/pr/tests/runtests.sh b/nsprpub/pr/tests/runtests.sh
index 8d3144019d..c570bf8674 100755
--- a/nsprpub/pr/tests/runtests.sh
+++ b/nsprpub/pr/tests/runtests.sh
@@ -4,20 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-if test -z $1
-then
- echo "usage: $0 <path-to-dist>"
- exit 1
-fi
-
-cd $1/lib
-ABS_LIB=$PWD
-cd -
-
-export DYLD_LIBRARY_PATH=${ABS_LIB}:${DYLD_LIBRARY_PATH}
-export LD_LIBRARY_PATH=${ABS_LIB}:${LD_LIBRARY_PATH}
-export PATH=${ABS_LIB}:${PATH}
-
#
# runtests.sh
# Bourne shell script for nspr tests
@@ -71,35 +57,12 @@ fi
#
#forktest (failed on IRIX)
-#multiwait - fails on Linux 64bit since NSPR v 4.4 from 2004.
#nbconn - fails on some platforms
#poll_er - fails on some platforms? limited use?
#prpoll - the bad-FD test needs to be moved to a different test
#sleep - specific to OS/2
-#
-# all of the following were disabled in 2019 when reenabling CI tests,
-# because they failed on at least one of the platforms:
-#
-# cltsrv
-# cvar
-# gethost
-# getproto
-# layer
-# logfile
-# nameshm1
-# nblayer
-# nonblock
-# ntioto
-# op_2long
-# parent
-# provider
-# ranfile
-# socket
-# sockopt
-# vercheck
-#LOGFILE=${NSPR_TEST_LOGFILE:-$NULL_DEVICE}
-LOGFILE=nspr-test.log
+LOGFILE=${NSPR_TEST_LOGFILE:-$NULL_DEVICE}
#
# Tests run on all platforms
@@ -117,7 +80,9 @@ atomic
attach
bigfile
cleanup
+cltsrv
concur
+cvar
cvar2
dlltest
dtoa
@@ -128,6 +93,8 @@ fileio
foreign
formattm
fsync
+gethost
+getproto
i2l
initclk
inrval
@@ -141,18 +108,27 @@ joinkk
joinku
joinuk
joinuu
+layer
lazyinit
libfilename
lltest
lock
lockfile
+logfile
logger
many_cv
+multiwait
+nameshm1
+nblayer
+nonblock
+ntioto
ntoh
+op_2long
op_excl
op_filnf
op_filok
op_nofil
+parent
parsetm
peek
perf
@@ -165,8 +141,10 @@ pollable
prftest
prfz
primblok
+provider
prpollml
pushtop
+ranfile
randseed
reinit
rwlocktest
@@ -186,6 +164,8 @@ servr_ku
servr_uu
short_thread
sigpipe
+socket
+sockopt
sockping
sprintf
stack
@@ -201,6 +181,7 @@ timemac
timetest
tpd
udpsrv
+vercheck
version
writev
xnotify
@@ -230,7 +211,7 @@ printf "Test\t\t\tResult\n\n"
if [ $OS_PLATFORM = "Windows_95" ] || [ $OS_PLATFORM = "Windows_98" ] || [ $OS_PLATFORM = "Windows_NT" ] || [ $OS_PLATFORM = "OS/2" ] ; then
for prog in $TESTS
do
- printf "$prog (`date +%T`)"
+ printf "$prog"
printf "\nBEGIN TEST: $prog\n\n" >> ${LOGFILE} 2>&1
./$prog >> ${LOGFILE} 2>&1
if [ 0 = $? ] ; then
@@ -244,7 +225,7 @@ if [ $OS_PLATFORM = "Windows_95" ] || [ $OS_PLATFORM = "Windows_98" ] || [ $OS_P
else
for prog in $TESTS
do
- printf "$prog (`date +%T`)"
+ printf "$prog"
printf "\nBEGIN TEST: $prog\n\n" >> ${LOGFILE} 2>&1
export test_rval
./$prog >> ${LOGFILE} 2>&1 &
@@ -268,10 +249,22 @@ else
done
fi;
-if [ $rval -ne 0 ]; then
- cat ${LOGFILE}
-fi
-
printf "END\t\t\t`date`\n"
exit $rval
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+