summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiswatosh.chakraborty%sun.com <devnull@localhost>2007-11-30 05:30:43 +0000
committerbiswatosh.chakraborty%sun.com <devnull@localhost>2007-11-30 05:30:43 +0000
commit25afa622e76c3ffd041085b903b9ec5358688eb5 (patch)
tree1ae1abcc086eb83bf3cc3519ebcb97055deab5c0
parent0413b9e220261b8232ef54064d0284aef8aa03fe (diff)
downloadnss-hg-25afa622e76c3ffd041085b903b9ec5358688eb5.tar.gz
Bug 332610 - test reports success despite build missing. r = Julien, Nelson
-rwxr-xr-xsecurity/nss/tests/all.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/security/nss/tests/all.sh b/security/nss/tests/all.sh
index 342eaea0c..b9cb48aba 100755
--- a/security/nss/tests/all.sh
+++ b/security/nss/tests/all.sh
@@ -90,6 +90,19 @@ if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
. ./init.sh
fi
+# Since in make at the top level, modutil is the last file
+# created, we check for modutil to know whether the build
+# is complete. If a new file is created after that, the
+# following test for modutil should check for that instead.
+
+if [ ! -f ${DIST}/${OBJDIR}/bin/modutil -a \
+ ! -f ${DIST}/${OBJDIR}/bin/modutil.exe ]; then
+ echo "Build Incomplete. Aborting test." >> ${LOGFILE}
+ html_head "Testing Initialization"
+ Exit "Checking for build"
+fi
+
+
for i in ${TESTS}
do
SCRIPTNAME=${i}.sh