test/sun/management/jmxremote/startstop/JMXStartStopTest.sh

Print this page

        

*** 49,59 **** fi rm -f ${_testclasses}/JMXStartStopTest.class # Compile testcase ! ${TESTJAVA}/bin/javac -d ${_testclasses} JMXStartStopDoSomething.java JMXStartStopTest.java if [ ! -f ${_testclasses}/JMXStartStopTest.class ] then echo "ERROR: Can't compile" exit -1 --- 49,60 ---- fi rm -f ${_testclasses}/JMXStartStopTest.class # Compile testcase ! ${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d ${_testclasses} \ ! JMXStartStopDoSomething.java JMXStartStopTest.java if [ ! -f ${_testclasses}/JMXStartStopTest.class ] then echo "ERROR: Can't compile" exit -1
*** 80,90 **** sleep 1 done } _get_pid(){ ! ${TESTJAVA}/bin/jps | sed -n "/JMXStartStopDoSomething/s/ .*//p" } _app_stop(){ rm ${_lockFileName} --- 81,91 ---- sleep 1 done } _get_pid(){ ! ${COMPILEJAVA}/bin/jps ${TESTTOOLVMOPTS} | sed -n "/JMXStartStopDoSomething/s/ .*//p" } _app_stop(){ rm ${_lockFileName}
*** 113,123 **** ${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${_testclasses} JMXStartStopTest $* } _jcmd(){ ! ${TESTJAVA}/bin/jcmd JMXStartStopDoSomething $* > /dev/null 2>/dev/null } _echo(){ echo "$*" echo "$*" >> ${_logname} --- 114,124 ---- ${TESTJAVA}/bin/java ${TESTVMOPTS} -cp ${_testclasses} JMXStartStopTest $* } _jcmd(){ ! ${TESTJAVA}/bin/jcmd ${TESTTOOLVMOPTS} JMXStartStopDoSomething $* > /dev/null 2>/dev/null } _echo(){ echo "$*" echo "$*" >> ${_logname}
*** 443,453 **** res1=`_testme $2` _jcmd ManagementAgent.stop ! pid=`${TESTJAVA}/bin/jps | sed -n "/JMXStartStopDoSomething/s/ .*//p"` res2=`_testme local ${pid}` if [ "${res1}" = "OK_CONN" -a "${res2}" = "OK_CONN" ] then _echo "Passed" --- 444,454 ---- res1=`_testme $2` _jcmd ManagementAgent.stop ! pid=`${COMPILEJAVA}/bin/jps ${TESTTOOLVMOPTS} | sed -n "/JMXStartStopDoSomething/s/ .*//p"` res2=`_testme local ${pid}` if [ "${res1}" = "OK_CONN" -a "${res2}" = "OK_CONN" ] then _echo "Passed"
*** 526,535 **** --- 527,537 ---- if [ ! -x "${TESTJAVA}/bin/jcmd" ] then echo "${TESTJAVA}/bin/jcmd" echo "Doesn't exist or not an executable" + exit fi #------------------------------------------------------------------------------ # reading parameters