< prev index next >

test/javax/crypto/SecretKeyFactory/FailOverTest.sh

Print this page
rev 1540 : 6867657: Many JSN tests do not run under cygwin
Reviewed-by: ohair
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>
rev 1547 : 8155973: Tighten jar checks
Reviewed-by: mullan, igerasim, ahgross


  39 then
  40     TESTSRC="."
  41 fi
  42 echo "TESTSRC=${TESTSRC}"
  43 
  44 
  45 if [ "${TESTCLASSES}" = "" ]
  46 then
  47     TESTCLASSES="."
  48 fi
  49 echo "TESTCLASSES=${TESTCLASSES}"
  50 
  51 # set platform-dependent variables
  52 OS=`uname -s`
  53 case "$OS" in
  54   SunOS | Linux | Darwin | AIX )
  55     NULL=/dev/null
  56     PS=":"
  57     FS="/"
  58     ;;





  59   Windows* )
  60     NULL=NUL
  61     PS=";"
  62     FS="\\"
  63     ;;
  64   * )
  65     echo "Unrecognized system!"
  66     exit 1;
  67     ;;
  68 esac
  69 
  70 ${TESTJAVA}${FS}bin${FS}javac \
  71     -d . \
  72     -classpath ${TESTSRC}${FS}P1.jar${PS}${TESTSRC}${FS}P2.jar \
  73     ${TESTSRC}${FS}FailOverTest.java
  74 
  75 if [ $? -ne 0 ]; then
  76     exit 1
  77 fi
  78 
  79 ${TESTJAVA}${FS}bin${FS}java \
  80     -classpath ${TESTSRC}${FS}P1.jar${PS}${TESTSRC}${FS}P2.jar${PS}. \


  81     FailOverTest
  82 result=$?
  83 
  84 if [ $result -eq 0 ]
  85 then
  86   echo "Passed"
  87 else
  88   echo "Failed"
  89 fi
  90 exit $result


  39 then
  40     TESTSRC="."
  41 fi
  42 echo "TESTSRC=${TESTSRC}"
  43 
  44 
  45 if [ "${TESTCLASSES}" = "" ]
  46 then
  47     TESTCLASSES="."
  48 fi
  49 echo "TESTCLASSES=${TESTCLASSES}"
  50 
  51 # set platform-dependent variables
  52 OS=`uname -s`
  53 case "$OS" in
  54   SunOS | Linux | Darwin | AIX )
  55     NULL=/dev/null
  56     PS=":"
  57     FS="/"
  58     ;;
  59   CYGWIN* )
  60     NULL=/dev/null
  61     PS=";"
  62     FS="/"
  63     ;;
  64   Windows* )
  65     NULL=NUL
  66     PS=";"
  67     FS="\\"
  68     ;;
  69   * )
  70     echo "Unrecognized system!"
  71     exit 1;
  72     ;;
  73 esac
  74 
  75 ${TESTJAVA}${FS}bin${FS}javac \
  76     -d . \
  77     -classpath "${TESTSRC}${FS}P1.jar${PS}${TESTSRC}${FS}P2.jar" \
  78     ${TESTSRC}${FS}FailOverTest.java
  79 
  80 if [ $? -ne 0 ]; then
  81     exit 1
  82 fi
  83 
  84 ${TESTJAVA}${FS}bin${FS}java \
  85     ${TESTVMOPTS} \
  86     -Djava.security.properties=${TESTSRC}${FS}security.properties \
  87     -classpath "${TESTSRC}${FS}P1.jar${PS}${TESTSRC}${FS}P2.jar${PS}." \
  88     FailOverTest
  89 result=$?
  90 
  91 if [ $result -eq 0 ]
  92 then
  93   echo "Passed"
  94 else
  95   echo "Failed"
  96 fi
  97 exit $result
< prev index next >