summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElio Maldonado <emaldona@redhat.com>2014-06-17 17:23:54 -0700
committerElio Maldonado <emaldona@redhat.com>2014-06-17 17:23:54 -0700
commita0033b2749a86d1337177026fff19a93d2635b14 (patch)
tree8083c76c0fb2216fa049ba5ff6541175375e108b
parent2c2b6ce7434c7af24295f5f0d6cd20077f145827 (diff)
downloadnss-hg-a0033b2749a86d1337177026fff19a93d2635b14.tar.gz
Bug 902171 - Support choosing the appropriate subset of the cipher suite to run according to the type of build, r=wtc
-rwxr-xr-xtests/cipher/cipher.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/cipher/cipher.sh b/tests/cipher/cipher.sh
index a24af82cf..12e78e185 100755
--- a/tests/cipher/cipher.sh
+++ b/tests/cipher/cipher.sh
@@ -129,6 +129,12 @@ if [ ! -x ${DIST}/${OBJDIR}/bin/bltest${PROG_SUFFIX} ]; then
return 0
fi
cipher_init
-cipher_main
-cipher_gcm
+# Skip cipher_main if this an NSS without softoken build.
+if [ "${NSS_BUILD_WITHOUT_SOFTOKEN}" != "1" ]; then
+ cipher_main
+fi
+# Skip cipher_gcm if this is a softoken only build.
+if [ "${NSS_BUILD_SOFTOKEN_ONLY}" != "1" ]; then
+ cipher_gcm
+fi
cipher_cleanup