Mercurial > hg > truffle
comparison test/runtime/7158988/TestFieldMonitor.sh @ 6074:037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
Reviewed-by: kvn
author | kevinw |
---|---|
date | Fri, 11 May 2012 17:24:32 +0100 |
parents | 19e197e2a1af |
children | 6acee021f5ac |
comparison
equal
deleted
inserted
replaced
6073:78d2ae5ab35b | 6074:037973617842 |
---|---|
16 then | 16 then |
17 echo "TESTCLASSES not set. Test cannot execute. Failed." | 17 echo "TESTCLASSES not set. Test cannot execute. Failed." |
18 exit 1 | 18 exit 1 |
19 fi | 19 fi |
20 | 20 |
21 BIT_FLAG="" | |
22 | |
23 # set platform-dependent variables | 21 # set platform-dependent variables |
24 OS=`uname -s` | 22 OS=`uname -s` |
25 case "$OS" in | 23 case "$OS" in |
26 SunOS | Linux ) | 24 SunOS | Linux ) |
27 NULL=/dev/null | 25 NULL=/dev/null |
28 PS=":" | 26 PS=":" |
29 FS="/" | 27 FS="/" |
30 ## for solaris, linux it's HOME | |
31 FILE_LOCATION=$HOME | |
32 if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" -a `uname -p`='sparc' ] | |
33 then | |
34 BIT_FLAG="-d64" | |
35 fi | |
36 ;; | 28 ;; |
37 Windows_95 | Windows_98 | Windows_ME ) | 29 Windows_95 | Windows_98 | Windows_ME ) |
38 NULL=NUL | 30 NULL=NUL |
39 PS=";" | 31 PS=";" |
40 FS="\\" | 32 FS="\\" |
54 | 46 |
55 #CLASSPATH=.${PS}${TESTCLASSES} ; export CLASSPATH | 47 #CLASSPATH=.${PS}${TESTCLASSES} ; export CLASSPATH |
56 | 48 |
57 cp ${TESTSRC}${FS}*.java . | 49 cp ${TESTSRC}${FS}*.java . |
58 | 50 |
59 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -fullversion | 51 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -fullversion |
60 | 52 |
61 ${TESTJAVA}${FS}bin${FS}javac -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar *.java | 53 ${TESTJAVA}${FS}bin${FS}javac -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar *.java |
62 | 54 |
63 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar FieldMonitor > test.out 2>&1 & | 55 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -classpath .${PS}$TESTJAVA${FS}lib${FS}tools.jar FieldMonitor > test.out 2>&1 & |
64 | 56 |
65 P_PID=$! | 57 P_PID=$! |
66 | 58 |
67 sleep 60 | 59 sleep 60 |
68 STATUS=0 | 60 STATUS=0 |