diff options
author | slavomir.katuscak%sun.com <devnull@localhost> | 2007-03-08 19:40:26 +0000 |
---|---|---|
committer | slavomir.katuscak%sun.com <devnull@localhost> | 2007-03-08 19:40:26 +0000 |
commit | e9ac7a314c57d5227b4315d6d21640dd86bc680f (patch) | |
tree | 91efbbe754f7b27cdeb01bec32270796887d455f | |
parent | 718ecb6d87d91db694d25847429b6ba68a354dcb (diff) | |
download | nss-hg-e9ac7a314c57d5227b4315d6d21640dd86bc680f.tar.gz |
bug 335752 - patch for shorter version of all.sh; r=nelson, sr=alexei
-rwxr-xr-x | security/nss/tests/cert/cert.sh | 14 | ||||
-rwxr-xr-x | security/nss/tests/ssl/ssl.sh | 62 |
2 files changed, 56 insertions, 20 deletions
diff --git a/security/nss/tests/cert/cert.sh b/security/nss/tests/cert/cert.sh index e667be958..ca80d6ae0 100755 --- a/security/nss/tests/cert/cert.sh +++ b/security/nss/tests/cert/cert.sh @@ -22,6 +22,7 @@ # # Contributor(s): # Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories +# Slavomir Katuscak <slavomir.katuscak@sun.com>, Sun Microsystems # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -1316,12 +1317,15 @@ cert_smime_client cert_fips cert_eccurves cert_extensions -cert_crl_ssl + +if [ -z "$NSS_TEST_DISABLE_CRL" ] ; then + cert_crl_ssl +else + echo "$SCRIPTNAME: Skipping CRL Tests" +fi + if [ -n "$DO_DIST_ST" -a "$DO_DIST_ST" = "TRUE" ] ; then cert_stresscerts - #following lines to be used when databases are to be reused - #cp -r /u/sonmi/tmp/stress/kentuckyderby.13/* $HOSTDIR - #cp -r $HOSTDIR/../${HOST}.2/* $HOSTDIR - fi + cert_cleanup diff --git a/security/nss/tests/ssl/ssl.sh b/security/nss/tests/ssl/ssl.sh index 9603f1805..32253a81d 100755 --- a/security/nss/tests/ssl/ssl.sh +++ b/security/nss/tests/ssl/ssl.sh @@ -22,6 +22,7 @@ # # Contributor(s): # Dr Vipul Gupta <vipul.gupta@sun.com>, Sun Microsystems Laboratories +# Slavomir Katuscak <slavomir.katuscak@sun.com>, Sun Microsystems # # Alternatively, the contents of this file may be used under the terms of # either the GNU General Public License Version 2 or later (the "GPL"), or @@ -74,12 +75,18 @@ ssl_init() SCRIPTNAME=ssl.sh echo "$SCRIPTNAME: SSL tests ===============================" - grep "SUCCESS: SSL passed" $CERT_LOG_FILE >/dev/null && - grep "SUCCESS: SSL CRL prep passed" $CERT_LOG_FILE >/dev/null || { + grep "SUCCESS: SSL passed" $CERT_LOG_FILE >/dev/null || { html_head "SSL Test failure" - Exit 8 "Fatal - SSL of cert.sh needs to pass first" + Exit 8 "Fatal - cert.sh needs to pass first" } + if [ -z "$NSS_TEST_DISABLE_CRL" ] ; then + grep "SUCCESS: SSL CRL prep passed" $CERT_LOG_FILE >/dev/null || { + html_head "SSL Test failure" + Exit 8 "Fatal - SSL of cert.sh needs to pass first" + } + fi + PORT=${PORT-8443} # Test case files @@ -781,18 +788,43 @@ if [ -z "$DO_REM_ST" -a -z "$DO_DIST_ST" ] ; then ORIG_P_R_SERVERDIR=$P_R_SERVERDIR ORIG_P_R_CLIENTDIR=$P_R_CLIENTDIR - ssl_crl_ssl - ssl_crl_cache - - # Test all combinations of server bypass and client bypass - CLIENT_OPTIONS="-B -s" - SERVER_OPTIONS="" - BYPASS_STRING="Client Bypass" - ssl_run - SERVER_OPTIONS="-B -s" - CLIENT_OPTIONS="" - BYPASS_STRING="Server Bypass" - ssl_run + if [ -z "$NSS_TEST_DISABLE_CRL" ] ; then + ssl_crl_ssl + ssl_crl_cache + else + echo "$SCRIPTNAME: Skipping CRL Client Tests" + fi + + # Test all combinations of client bypass and server bypass + + if [ -z "$NSS_TEST_DISABLE_CIPHERS" ] ; then + if [ -n "$NSS_TEST_DISABLE_BYPASS" ] ; then + SERVER_OPTIONS="" + CLIENT_OPTIONS="" + BYPASS_STRING="No Bypass" + ssl_run + fi + + if [ -z "$NSS_TEST_DISABLE_BYPASS" -a -z "$NSS_TEST_DISABLE_CLIENT_BYPASS" ] ; then + CLIENT_OPTIONS="-B -s" + SERVER_OPTIONS="" + BYPASS_STRING="Client Bypass" + ssl_run + else + echo "$SCRIPTNAME: Skipping Cipher Coverage - Client Bypass Tests" + fi + + if [ -z "$NSS_TEST_DISABLE_BYPASS" -a -z "$NSS_TEST_DISABLE_SERVER_BYPASS" ] ; then + SERVER_OPTIONS="-B -s" + CLIENT_OPTIONS="" + BYPASS_STRING="Server Bypass" + ssl_run + else + echo "$SCRIPTNAME: Skipping Cipher Coverage - Server Bypass Tests" + fi + else + echo "$SCRIPTNAME: Skipping Cipher Coverage Tests" + fi ssl_cleanup fi |