Blame SOURCES/nss-versus-softoken-tests.patch

dcddc0
diff -up nss/tests/all.sh.cryptotests nss/tests/all.sh
dcddc0
--- nss/tests/all.sh.cryptotests	2013-05-28 14:43:24.000000000 -0700
dcddc0
+++ nss/tests/all.sh	2013-06-17 11:11:49.626902227 -0700
dcddc0
@@ -299,9 +299,13 @@ fi
dcddc0
 # created, we check for modutil to know whether the build
dcddc0
 # is complete. If a new file is created after that, the 
dcddc0
 # following test for modutil should check for that instead.
dcddc0
-
dcddc0
-if [ ! -f ${DIST}/${OBJDIR}/bin/modutil -a  \
dcddc0
-     ! -f ${DIST}/${OBJDIR}/bin/modutil.exe ]; then
dcddc0
+# Except when building softoken only where shlibsign is the last one built.
dcddc0
+if [ "${NSS_BUILD_SOFTOKEN_ONLY}" -eq "1" ]; then
dcddc0
+    LAST_BUILT=shlibsign || modutil
dcddc0
+else
dcddc0
+    LAST_BUILT=modutil
dcddc0
+fi
dcddc0
+if [ ! -x ${DIST}/${OBJDIR}/bin/${LAST_BUILT}${PROG_SUFFIX} ]; then
dcddc0
     echo "Build Incomplete. Aborting test." >> ${LOGFILE}
dcddc0
     html_head "Testing Initialization"
dcddc0
     Exit "Checking for build"
dcddc0
diff -up nss/tests/cipher/cipher.sh.cryptotests nss/tests/cipher/cipher.sh
dcddc0
--- nss/tests/cipher/cipher.sh.cryptotests	2013-05-28 14:43:24.000000000 -0700
dcddc0
+++ nss/tests/cipher/cipher.sh	2013-06-17 11:10:18.946049972 -0700
dcddc0
@@ -129,6 +129,16 @@ if [ ! -x ${DIST}/${OBJDIR}/bin/bltest${
dcddc0
     return 0
dcddc0
 fi
dcddc0
 cipher_init
dcddc0
-cipher_main
dcddc0
-cipher_gcm
dcddc0
+if [ "${NSS_BUILD_SOFTOKEN_ONLY}" = "1" ]; then
dcddc0
+    echo "Skipping cipher_gcm because this is a softoken only build"
dcddc0
+    cipher_main
dcddc0
+elif [ "${NSS_BUILD_WITHOUT_SOFTOKEN}" = "1" ]; then
dcddc0
+    echo "Skipping cipher_main because this an nss without softoken build"
dcddc0
+    cipher_gcm
dcddc0
+else
dcddc0
+    # default is to run both
dcddc0
+    cipher_init
dcddc0
+    cipher_main
dcddc0
+    cipher_gcm
dcddc0
+fi
dcddc0
 cipher_cleanup