32 33 # Verify directory context variables are set 34 if [ "${TESTJAVA}" = "" ] 35 then 36 echo "TESTJAVA not set. Test cannot execute. Failed." 37 exit 1 38 fi 39 40 if [ "${TESTSRC}" = "" ] 41 then 42 echo "TESTSRC not set. Test cannot execute. Failed." 43 exit 1 44 fi 45 46 if [ "${TESTCLASSES}" = "" ] 47 then 48 echo "TESTCLASSES not set. Test cannot execute. Failed." 49 exit 1 50 fi 51 52 JAVAEXE="$TESTJAVA/bin/java" 53 JAVA="$TESTJAVA/bin/java -classpath $TESTCLASSES" 54 JAR="$TESTJAVA/bin/jar" 55 OS=`uname -s`; 56 57 # 58 # Tests whether we are on windows (true) or not. 59 # 60 IsWindows() { 61 case "$OS" in 62 Windows* | CYGWIN* ) 63 printf "true" 64 ;; 65 * ) 66 printf "false" 67 ;; 68 esac 69 } 70 71 # 72 # Shell routine to test for the proper rejection of syntactically incorrect 73 # version specifications. | 32 33 # Verify directory context variables are set 34 if [ "${TESTJAVA}" = "" ] 35 then 36 echo "TESTJAVA not set. Test cannot execute. Failed." 37 exit 1 38 fi 39 40 if [ "${TESTSRC}" = "" ] 41 then 42 echo "TESTSRC not set. Test cannot execute. Failed." 43 exit 1 44 fi 45 46 if [ "${TESTCLASSES}" = "" ] 47 then 48 echo "TESTCLASSES not set. Test cannot execute. Failed." 49 exit 1 50 fi 51 52 JAVAEXE="$TESTJAVA/bin/java ${TESTVMOPTS}" 53 JAVA="$TESTJAVA/bin/java ${TESTVMOPTS} -classpath $TESTCLASSES" 54 JAR="$TESTJAVA/bin/jar" 55 OS=`uname -s`; 56 57 # 58 # Tests whether we are on windows (true) or not. 59 # 60 IsWindows() { 61 case "$OS" in 62 Windows* | CYGWIN* ) 63 printf "true" 64 ;; 65 * ) 66 printf "false" 67 ;; 68 esac 69 } 70 71 # 72 # Shell routine to test for the proper rejection of syntactically incorrect 73 # version specifications. |