< prev index next >

test/sun/management/jmxremote/bootstrap/LocalManagementTest.sh

Print this page
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>

*** 41,52 **** outputfile=${TESTCLASSES}/Test.out rm -f ${outputfile} # Start VM with given options ! echo "+ $JAVA $1 Test" ! $JAVA $1 TestApplication > ${outputfile}& pid=$! # Wait for managed VM to startup echo "Waiting for VM to startup..." attempts=0 --- 41,52 ---- outputfile=${TESTCLASSES}/Test.out rm -f ${outputfile} # Start VM with given options ! echo "+ $JAVA ${TESTVMOPTS} $1 Test" ! $JAVA ${TESTVMOPTS} $1 TestApplication > ${outputfile}& pid=$! # Wait for managed VM to startup echo "Waiting for VM to startup..." attempts=0
*** 62,72 **** attempts=`expr $attempts + 1` echo "Waiting $attempts second(s) ..." done # Start the manager - this should connect to VM ! sh -xc "$JAVA -classpath ${TESTCLASSES}:${TESTJAVA}/lib/tools.jar \ TestManager $pid $port" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi } --- 62,72 ---- attempts=`expr $attempts + 1` echo "Waiting $attempts second(s) ..." done # Start the manager - this should connect to VM ! sh -xc "$JAVA ${TESTVMOPTS} -classpath ${TESTCLASSES}:${TESTJAVA}/lib/tools.jar \ TestManager $pid $port" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi }
*** 110,120 **** # Test 3 - no args (blank) - manager should attach and start agent doTest " " # Test 4 - sanity check arguments to management-agent.jar echo ' ' ! sh -xc "${JAVA} -javaagent:${AGENT}=com.sun.management.jmxremote.port=7775,\ com.sun.management.jmxremote.authenticate=false,com.sun.management.jmxremote.ssl=false \ TestApplication -exit" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi # Test 5 - use DNS-only name service --- 110,120 ---- # Test 3 - no args (blank) - manager should attach and start agent doTest " " # Test 4 - sanity check arguments to management-agent.jar echo ' ' ! sh -xc "${JAVA} ${TESTVMOPTS} -javaagent:${AGENT}=com.sun.management.jmxremote.port=7775,\ com.sun.management.jmxremote.authenticate=false,com.sun.management.jmxremote.ssl=false \ TestApplication -exit" 2>&1 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi # Test 5 - use DNS-only name service
< prev index next >