39
40 # set platform-dependent variables
41 OS=`uname -s`
42 case "$OS" in
43 SunOS | Linux | Darwin )
44 FS="/"
45 ;;
46 CYGWIN* )
47 FS="/"
48 ;;
49 Windows_* )
50 FS="\\"
51 ;;
52 * )
53 echo "Unrecognized operating system!"
54 exit 1;
55 ;;
56 esac
57
58 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . ${TESTSRC}${FS}PrintSSL.java || exit 10
59 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Dtest.src=$TESTSRC PrintSSL | ( read PORT; ${TESTJAVA}${FS}bin${FS}keytool -printcert -sslserver localhost:$PORT )
60 status=$?
61
62 rm PrintSSL*.class
63
64 exit $status
|
39
40 # set platform-dependent variables
41 OS=`uname -s`
42 case "$OS" in
43 SunOS | Linux | Darwin )
44 FS="/"
45 ;;
46 CYGWIN* )
47 FS="/"
48 ;;
49 Windows_* )
50 FS="\\"
51 ;;
52 * )
53 echo "Unrecognized operating system!"
54 exit 1;
55 ;;
56 esac
57
58 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . ${TESTSRC}${FS}PrintSSL.java || exit 10
59 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${TESTJAVAOPTS} -Dtest.src=$TESTSRC PrintSSL | ( read PORT; ${TESTJAVA}${FS}bin${FS}keytool -printcert -sslserver localhost:$PORT )
60 status=$?
61
62 rm PrintSSL*.class
63
64 exit $status
|