test/sun/security/mscapi/IsSunMSCAPIAvailable.sh

Print this page




  23 # questions.
  24 #
  25 
  26 
  27 # @test
  28 # @bug 6318171 6931562
  29 # @run shell IsSunMSCAPIAvailable.sh
  30 # @summary Basic test of the Microsoft CryptoAPI provider.
  31 
  32 OS=`uname -s`
  33 case "$OS" in
  34     Windows* | CYGWIN* )
  35 
  36     # 'uname -m' does not give us enough information -
  37     #  should rely on $PROCESSOR_IDENTIFIER (as is done in Defs-windows.gmk),
  38     #  but JTREG does not pass this env variable when executing a shell script.
  39     #
  40     #  execute test program - rely on it to exit if platform unsupported
  41 
  42         ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . ${TESTSRC}\\IsSunMSCAPIAvailable.java
  43         ${TESTJAVA}/bin/java ${TESTVMOPTS} IsSunMSCAPIAvailable
  44         exit
  45         ;;
  46 
  47     * )
  48         echo "This test is not intended for '$OS' - passing test"
  49         exit 0
  50         ;;
  51 esac
  52 


  23 # questions.
  24 #
  25 
  26 
  27 # @test
  28 # @bug 6318171 6931562
  29 # @run shell IsSunMSCAPIAvailable.sh
  30 # @summary Basic test of the Microsoft CryptoAPI provider.
  31 
  32 OS=`uname -s`
  33 case "$OS" in
  34     Windows* | CYGWIN* )
  35 
  36     # 'uname -m' does not give us enough information -
  37     #  should rely on $PROCESSOR_IDENTIFIER (as is done in Defs-windows.gmk),
  38     #  but JTREG does not pass this env variable when executing a shell script.
  39     #
  40     #  execute test program - rely on it to exit if platform unsupported
  41 
  42         ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . ${TESTSRC}\\IsSunMSCAPIAvailable.java
  43         ${TESTJAVA}/bin/java ${TESTVMOPTS} ${TESTJAVAOPTS} IsSunMSCAPIAvailable
  44         exit
  45         ;;
  46 
  47     * )
  48         echo "This test is not intended for '$OS' - passing test"
  49         exit 0
  50         ;;
  51 esac
  52