< prev index next >

test/sun/security/mscapi/SignUsingNONEwithRSA.sh

Print this page
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>


  45    echo "FAILED!!!"
  46    exit 1
  47 fi
  48 
  49 OS=`uname -s`
  50 case "$OS" in
  51     Windows* | CYGWIN* )
  52 
  53         echo "Creating a temporary RSA keypair in the Windows-My store..."
  54         ${TESTJAVA}/bin/keytool \
  55             -genkeypair \
  56             -storetype Windows-My \
  57             -keyalg RSA \
  58             -alias 6578658 \
  59             -dname "cn=6578658,c=US" \
  60             -noprompt
  61 
  62         echo
  63         echo "Running the test..."
  64         ${TESTJAVA}/bin/javac -d . ${TESTSRC}\\SignUsingNONEwithRSA.java
  65         ${TESTJAVA}/bin/java SignUsingNONEwithRSA
  66 
  67         rc=$?
  68 
  69         echo
  70         echo "Removing the temporary RSA keypair from the Windows-My store..."
  71         ${TESTJAVA}/bin/keytool \
  72             -delete \
  73             -storetype Windows-My \
  74             -alias 6578658
  75 
  76         echo done.
  77         exit $rc
  78         ;;
  79 
  80     * )
  81         echo "This test is not intended for '$OS' - passing test"
  82         exit 0
  83         ;;
  84 esac


  45    echo "FAILED!!!"
  46    exit 1
  47 fi
  48 
  49 OS=`uname -s`
  50 case "$OS" in
  51     Windows* | CYGWIN* )
  52 
  53         echo "Creating a temporary RSA keypair in the Windows-My store..."
  54         ${TESTJAVA}/bin/keytool \
  55             -genkeypair \
  56             -storetype Windows-My \
  57             -keyalg RSA \
  58             -alias 6578658 \
  59             -dname "cn=6578658,c=US" \
  60             -noprompt
  61 
  62         echo
  63         echo "Running the test..."
  64         ${TESTJAVA}/bin/javac -d . ${TESTSRC}\\SignUsingNONEwithRSA.java
  65         ${TESTJAVA}/bin/java ${TESTVMOPTS} SignUsingNONEwithRSA
  66 
  67         rc=$?
  68 
  69         echo
  70         echo "Removing the temporary RSA keypair from the Windows-My store..."
  71         ${TESTJAVA}/bin/keytool \
  72             -delete \
  73             -storetype Windows-My \
  74             -alias 6578658
  75 
  76         echo done.
  77         exit $rc
  78         ;;
  79 
  80     * )
  81         echo "This test is not intended for '$OS' - passing test"
  82         exit 0
  83         ;;
  84 esac
< prev index next >