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 JAVA="${TESTJAVA}"/bin/java
53
54 "${JAVA}" ${TESTVMOPTS} -javaagent:basicAgent.jar \
55 -classpath "${TESTCLASSES}" StressGetObjectSizeApp StressGetObjectSizeApp \
56 > output.log 2>&1
57 cat output.log
58
59 MESG="ASSERTION FAILED"
60 grep "$MESG" output.log
61 result=$?
62 if [ "$result" = 0 ]; then
63 echo "FAIL: found '$MESG' in the test output"
64 result=1
65 else
66 echo "PASS: did NOT find '$MESG' in the test output"
67 result=0
68 fi
69
70 exit $result
|
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 JAVA="${TESTJAVA}"/bin/java
53
54 "${JAVA}" ${TESTVMOPTS} ${TESTJAVAOPTS} -javaagent:basicAgent.jar \
55 -classpath "${TESTCLASSES}" StressGetObjectSizeApp StressGetObjectSizeApp \
56 > output.log 2>&1
57 cat output.log
58
59 MESG="ASSERTION FAILED"
60 grep "$MESG" output.log
61 result=$?
62 if [ "$result" = 0 ]; then
63 echo "FAIL: found '$MESG' in the test output"
64 result=1
65 else
66 echo "PASS: did NOT find '$MESG' in the test output"
67 result=0
68 fi
69
70 exit $result
|