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