Mercurial > hg > graal-compiler
comparison test/runtime/6878713/Test6878713.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 | d1897e7e0488 |
comparison
equal
deleted
inserted
replaced
8830:7ca101eef24a | 8831:04d6d4322c6a |
---|---|
4 ## @test | 4 ## @test |
5 ## @bug 6878713 | 5 ## @bug 6878713 |
6 ## @summary Verifier heap corruption, relating to backward jsrs | 6 ## @summary Verifier heap corruption, relating to backward jsrs |
7 ## @run shell/timeout=120 Test6878713.sh | 7 ## @run shell/timeout=120 Test6878713.sh |
8 ## | 8 ## |
9 ## some tests require path to find test source dir | |
10 if [ "${TESTSRC}" = "" ] | |
11 then | |
12 TESTSRC=${PWD} | |
13 echo "TESTSRC not set. Using "${TESTSRC}" as default" | |
14 fi | |
15 echo "TESTSRC=${TESTSRC}" | |
16 ## Adding common setup Variables for running shell tests. | |
17 . ${TESTSRC}/../../test_env.sh | |
9 | 18 |
10 if [ "${TESTSRC}" = "" ] | 19 ${COMPILEJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar |
11 then TESTSRC=. | |
12 fi | |
13 | |
14 if [ "${TESTJAVA}" = "" ] | |
15 then | |
16 PARENT=`dirname \`which java\`` | |
17 TESTJAVA=`dirname ${PARENT}` | |
18 echo "TESTJAVA not set, selecting " ${TESTJAVA} | |
19 echo "If this is incorrect, try setting the variable manually." | |
20 fi | |
21 | |
22 if [ "${TESTCLASSES}" = "" ] | |
23 then | |
24 echo "TESTCLASSES not set. Test cannot execute. Failed." | |
25 exit 1 | |
26 fi | |
27 | |
28 # set platform-dependent variables | |
29 OS=`uname -s` | |
30 case "$OS" in | |
31 SunOS | Linux | Darwin ) | |
32 NULL=/dev/null | |
33 PS=":" | |
34 FS="/" | |
35 ;; | |
36 Windows_* ) | |
37 NULL=NUL | |
38 PS=";" | |
39 FS="\\" | |
40 ;; | |
41 CYGWIN_* ) | |
42 NULL=/dev/null | |
43 PS=";" | |
44 FS="/" | |
45 ;; | |
46 * ) | |
47 echo "Unrecognized system!" | |
48 exit 1; | |
49 ;; | |
50 esac | |
51 | |
52 JEMMYPATH=${CPAPPEND} | |
53 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH | |
54 | |
55 THIS_DIR=`pwd` | |
56 | |
57 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version | |
58 | |
59 ${TESTJAVA}${FS}bin${FS}jar xvf ${TESTSRC}${FS}testcase.jar | |
60 | 20 |
61 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass1960_2 > test.out 2>&1 | 21 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} OOMCrashClass1960_2 > test.out 2>&1 |
62 | 22 |
63 if [ -s core -o -s "hs_*.log" ] | 23 if [ -s core -o -s "hs_*.log" ] |
64 then | 24 then |