Mercurial > hg > graal-compiler
comparison test/runtime/6929067/Test6929067.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 | f08d439fab8c |
children | 6acee021f5ac |
comparison
equal
deleted
inserted
replaced
6073:78d2ae5ab35b | 6074:037973617842 |
---|---|
16 PARENT=`dirname \`which java\`` | 16 PARENT=`dirname \`which java\`` |
17 TESTJAVA=`dirname ${PARENT}` | 17 TESTJAVA=`dirname ${PARENT}` |
18 echo "TESTJAVA not set, selecting " ${TESTJAVA} | 18 echo "TESTJAVA not set, selecting " ${TESTJAVA} |
19 echo "If this is incorrect, try setting the variable manually." | 19 echo "If this is incorrect, try setting the variable manually." |
20 fi | 20 fi |
21 | |
22 BIT_FLAG="" | |
23 | 21 |
24 # set platform-dependent variables | 22 # set platform-dependent variables |
25 OS=`uname -s` | 23 OS=`uname -s` |
26 case "$OS" in | 24 case "$OS" in |
27 Linux) | 25 Linux) |
40 echo "Unrecognized system!" | 38 echo "Unrecognized system!" |
41 exit 1; | 39 exit 1; |
42 ;; | 40 ;; |
43 esac | 41 esac |
44 | 42 |
45 LD_LIBRARY_PATH=.:${TESTJAVA}/jre/lib/i386/client:/usr/openwin/lib:/usr/dt/lib:/usr/lib:$LD_LIBRARY_PATH | 43 # Choose arch: i386 or amd64 (test is Linux-specific) |
44 # Cannot simply look at TESTVMOPTS as -d64 is not | |
45 # passed if there is only a 64-bit JVM available. | |
46 | |
47 ${TESTJAVA}/bin/java ${TESTVMOPTS} -version 2>1 | grep "64-Bit" >/dev/null | |
48 if [ "$?" = "0" ] | |
49 then | |
50 ARCH=amd64 | |
51 else | |
52 ARCH=i386 | |
53 fi | |
54 | |
55 LD_LIBRARY_PATH=.:${TESTJAVA}/jre/lib/${ARCH}/client:/usr/openwin/lib:/usr/dt/lib:/usr/lib:$LD_LIBRARY_PATH | |
46 export LD_LIBRARY_PATH | 56 export LD_LIBRARY_PATH |
47 | 57 |
48 THIS_DIR=`pwd` | 58 THIS_DIR=`pwd` |
49 | 59 |
50 cp ${TESTSRC}${FS}invoke.c ${THIS_DIR} | 60 cp ${TESTSRC}${FS}invoke.c ${THIS_DIR} |
51 cp ${TESTSRC}${FS}T.java ${THIS_DIR} | 61 cp ${TESTSRC}${FS}T.java ${THIS_DIR} |
52 | 62 |
53 | 63 |
54 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -fullversion | 64 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -fullversion |
55 | 65 |
56 ${TESTJAVA}${FS}bin${FS}javac T.java | 66 ${TESTJAVA}${FS}bin${FS}javac T.java |
57 | 67 |
58 gcc -o invoke -I${TESTJAVA}/include -I${TESTJAVA}/include/linux invoke.c ${TESTJAVA}/jre/lib/i386/client/libjvm.so | 68 gcc -o invoke -I${TESTJAVA}/include -I${TESTJAVA}/include/linux invoke.c ${TESTJAVA}/jre/lib/${ARCH}/client/libjvm.so |
59 ./invoke | 69 ./invoke |
60 exit $? | 70 exit $? |