31 # @build BasicTests
32 # @run shell BasicTests.sh
33
34 if [ "${TESTSRC}" = "" ]
35 then
36 echo "TESTSRC not set. Test cannot execute. Failed."
37 exit 1
38 fi
39
40 . ${TESTSRC}/CommonSetup.sh
41 . ${TESTSRC}/ApplicationSetup.sh
42 . ${TESTSRC}/AgentSetup.sh
43
44 startApplication -Dattach.test=true
45 # pid = process-id, port = shutdown port
46
47 failures=0
48
49 echo "Running tests ..."
50
51 $JAVA -classpath ${TESTCLASSES}${PS}${TESTJAVA}/lib/tools.jar \
52 BasicTests $pid $agent $badagent $redefineagent 2>&1
53 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
54
55 stopApplication $port
56
57 if [ $failures = 0 ];
58 then echo "All tests passed.";
59 else echo "$failures test(s) failed:"; cat ${OUTPUTFILE};
60 fi
61 exit $failures
|
31 # @build BasicTests
32 # @run shell BasicTests.sh
33
34 if [ "${TESTSRC}" = "" ]
35 then
36 echo "TESTSRC not set. Test cannot execute. Failed."
37 exit 1
38 fi
39
40 . ${TESTSRC}/CommonSetup.sh
41 . ${TESTSRC}/ApplicationSetup.sh
42 . ${TESTSRC}/AgentSetup.sh
43
44 startApplication -Dattach.test=true
45 # pid = process-id, port = shutdown port
46
47 failures=0
48
49 echo "Running tests ..."
50
51 $JAVA -classpath "${TESTCLASSES}${PS}${TESTJAVA}/lib/tools.jar" \
52 BasicTests $pid $agent $badagent $redefineagent 2>&1
53 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
54
55 stopApplication $port
56
57 if [ $failures = 0 ];
58 then echo "All tests passed.";
59 else echo "$failures test(s) failed:"; cat ${OUTPUTFILE};
60 fi
61 exit $failures
|