133 pid=$!
134
135 # Wait for managed VM to startup (although this looks like a potentially
136 # infinate loop, the framework will eventually kill it)
137 echo "Waiting for TestAppication to test..."
138 attempts=0
139 while true; do
140 sleep 1
141 port=`tail -1 ${outputfile}`
142 if [ ! -z "$port" ]; then
143 # In case of errors wait time for output to be flushed
144 sleep 1
145 cat ${outputfile}
146 break
147 fi
148 attempts=`expr $attempts + 1`
149 echo "Waiting $attempts second(s) ..."
150 done
151
152 # Start the manager - this should connect to VM
153 ${TESTJAVA}/bin/java -classpath ${TESTCLASSES}:${TESTJAVA}/lib/tools.jar \
154 TestManager $pid $port true
155 if [ $? != 0 ]; then
156 echo "Test failed"
157 exit 1
158 fi
159 exit 0
|
133 pid=$!
134
135 # Wait for managed VM to startup (although this looks like a potentially
136 # infinate loop, the framework will eventually kill it)
137 echo "Waiting for TestAppication to test..."
138 attempts=0
139 while true; do
140 sleep 1
141 port=`tail -1 ${outputfile}`
142 if [ ! -z "$port" ]; then
143 # In case of errors wait time for output to be flushed
144 sleep 1
145 cat ${outputfile}
146 break
147 fi
148 attempts=`expr $attempts + 1`
149 echo "Waiting $attempts second(s) ..."
150 done
151
152 # Start the manager - this should connect to VM
153 ${TESTJAVA}/bin/java ${TESTVMOPTS} -classpath ${TESTCLASSES}:${TESTJAVA}/lib/tools.jar \
154 TestManager $pid $port true
155 if [ $? != 0 ]; then
156 echo "Test failed"
157 exit 1
158 fi
159 exit 0
|