trying a version that can test tip as default for tinderbox and 341
authorsonja.mirtitsch%sun.com
Thu, 25 Apr 2002 01:04:10 +0000
changeset 3051 018fc7671d9f0dbdc152f2d2f0aa116d7b761340
parent 3050 41fc9bb4460e9d4f01158ad4db14a1ed3fb4f4af
child 3052 b0b1f385747b8803ab40cfc1abcf6d9f74c75c72
push idunknown
push userunknown
push dateunknown
trying a version that can test tip as default for tinderbox and 341 as default for nightly QA
security/nss/tests/header
--- a/security/nss/tests/header
+++ b/security/nss/tests/header
@@ -565,17 +565,17 @@ init_dirs()
     fi
     #set -x
 
     set_daily_build_dirs
 
     if [ -z "${BCDIST}" ] ; then
         #BCDIST=/share/builds/mccrel3/nss/${BC_MASTER}/mozilla/dist
         BCDIST=${NSS_VER_DIR}/../${BC_MASTER}/mozilla/dist
-        if [ ! -d $BCDIST ] ; then
+        if [ ! -d $BCDIST -a `basename $0` != jssqa ] ; then
             ask "Backward compatibility directory $BCDIST does not exist, continue" "y" "n" || Exit
         fi
     fi
 
     UX_MASTERDIR=${DAILY_BUILD}/${UX_MASTERBUILD}
     find_nt_masterbuild
 
     if [ "$O_WIN" = "ON" ]
@@ -597,17 +597,17 @@ init_dirs()
         if [ "$O_WIN" = "ON" ] ; then
             JSS_NSS_SRC_DIR=$JSS_NSS_NT_SRC_DIR
         fi
         TESTSCRIPTDIR=${NSS_VER_DIR}/../${JSS_NSS_SRC_DIR}/mozilla/security/nss/tests
     else
         TESTSCRIPTDIR=${MOZILLA_ROOT}/security/nss/tests
     fi
 
-    if [ ! -d $TESTSCRIPTDIR ] ; then
+    if [ ! -d $TESTSCRIPTDIR -a `basename $0` != jssqa ] ; then
         if [ "$O_WIN" = "ON" -a "$WIN_WAIT_FOREVER" = "ON" ]
         then
             WaitForever $TESTSCRIPTDIR/all.sh 1
         else
             Exit "Test directory $TESTSCRIPTDIR does not exist"
         fi
     fi
 
@@ -866,51 +866,50 @@ eval_opts()
         -p)
             shift
             PORT=$1
             export PORT
             ;;
         -*)
             glob_usage "Error: Can't handle option $1"
             ;;
-        ?*)
+        tip|3.|3..)
             NSSVER=$1
-            if [ -z "$NSSVER" ]        
-            then
-                NSSVER="tip"
-                Debug "NSS Version: Parameters missing - defaulting to tip!"
-            else
-                BUILDDATE=$2
-                if [ -z "$BUILDDATE" ] 
-                then
-                    BUILDDATE=`date +%m%d`
-                    Debug "Builddate: Parameters missing - defaulting to today!"
-                else
-                    shift
-                fi
+            if [ -z "$NSSVER" ] ; then
+                glob_usage "Error: illegal parameter"
             fi
             ;;
+        [01][0-9][0123][0-9])
+            BUILDDATE=$1
+            if [ -z "$BUILDDATE" ] ; then
+                glob_usage "Error: illegal parameter"
+            fi
+            ;;
+        ?*)
+            glob_usage "Error: Can't handle parameter $1"
+            ;;
     esac
     shift
   done
 
   if [ -z "$PORT" -a "$O_TBX" = "ON" ] ; then
       PORT=8444
       export PORT
+      if [ -z "$NSSVER" ] ; then
+          NSSVER="tip"
+          Debug "NSS Version: Parameters missing - defaulting to tip!"
+      fi
+  elif [ -z "$NSSVER" ] ; then
+      NSSVER="341"
+      Debug "NSS Version: Parameters missing - defaulting to 341!"
   fi
-  if [ -z "$BUILDDATE" ]         
-  then
+  if [ -z "$BUILDDATE" ] ; then
       BUILDDATE=`date +%m%d`
       Debug "Builddate: Parameters missing - defaulting to today!"
   fi
-  if [ -z "$NSSVER" ]            
-  then
-      NSSVER="tip"
-      Debug "NSS Version: Parameters missing - defaulting to tip!"
-  fi
   
   Debug "Builddate $BUILDDATE NssVersion $NSSVER"
   export BUILDDATE NSSVER
   export O_CRON O_SILENT O_DEBUG O_ALWAYS_YES O_TBX
 }
 
 win_set_tmp()
 {