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