Mercurial > hg > graal-compiler
comparison test/runtime/7020373/Test7020373.sh @ 8831:04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
Summary: Added a new test_env.txt file to capture common shell variable. Added concept of COMPILEJAVA for use when TESTJAVA is a JRE. If COMPILEJAVA not set then TESTJAVA will be the default with assumption it is a JDK.
Reviewed-by: kvn, brutisso, coleenp
author | collins |
---|---|
date | Wed, 27 Mar 2013 09:49:51 -0700 |
parents | 83b6305a5638 |
children |
comparison
equal
deleted
inserted
replaced
8830:7ca101eef24a | 8831:04d6d4322c6a |
---|---|
8 ## @ignore Ignore it as 7053586 test uses lots of memory. See bug report for detail. | 8 ## @ignore Ignore it as 7053586 test uses lots of memory. See bug report for detail. |
9 ## @run shell Test7020373.sh | 9 ## @run shell Test7020373.sh |
10 ## | 10 ## |
11 | 11 |
12 if [ "${TESTSRC}" = "" ] | 12 if [ "${TESTSRC}" = "" ] |
13 then TESTSRC=. | 13 then |
14 TESTSRC=${PWD} | |
15 echo "TESTSRC not set. Using "${TESTSRC}" as default" | |
14 fi | 16 fi |
17 echo "TESTSRC=${TESTSRC}" | |
18 ## Adding common setup Variables for running shell tests. | |
19 . ${TESTSRC}/../../test_env.sh | |
15 | 20 |
16 if [ "${TESTJAVA}" = "" ] | 21 ${COMPILEJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar |
17 then | |
18 PARENT=`dirname \`which java\`` | |
19 TESTJAVA=`dirname ${PARENT}` | |
20 echo "TESTJAVA not set, selecting " ${TESTJAVA} | |
21 echo "If this is incorrect, try setting the variable manually." | |
22 fi | |
23 | |
24 if [ "${TESTCLASSES}" = "" ] | |
25 then | |
26 echo "TESTCLASSES not set. Test cannot execute. Failed." | |
27 exit 1 | |
28 fi | |
29 | |
30 # set platform-dependent variables | |
31 OS=`uname -s` | |
32 case "$OS" in | |
33 SunOS | Linux | Darwin ) | |
34 NULL=/dev/null | |
35 PS=":" | |
36 FS="/" | |
37 ;; | |
38 Windows_* ) | |
39 NULL=NUL | |
40 PS=";" | |
41 FS="\\" | |
42 ;; | |
43 CYGWIN_* ) | |
44 NULL=/dev/null | |
45 PS=";" | |
46 FS="/" | |
47 ;; | |
48 * ) | |
49 echo "Unrecognized system!" | |
50 exit 1; | |
51 ;; | |
52 esac | |
53 | |
54 JEMMYPATH=${CPAPPEND} | |
55 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH | |
56 | |
57 THIS_DIR=`pwd` | |
58 | |
59 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version | |
60 | |
61 ${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar | |
62 | 22 |
63 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1 | 23 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass4000_1 > test.out 2>&1 |
64 | 24 |
65 cat test.out | 25 cat test.out |
66 | 26 |