Mercurial > hg > graal-compiler
annotate test/compiler/6894807/Test6894807.sh @ 10236:a258a8351528
Merge
author | vladidan |
---|---|
date | Tue, 07 May 2013 10:36:20 -0400 |
parents | 83b6305a5638 |
children |
rev | line source |
---|---|
1715 | 1 #!/bin/sh |
2 | |
3 if [ "${TESTSRC}" = "" ] | |
4 then TESTSRC=. | |
5 fi | |
6 | |
7 if [ "${TESTJAVA}" = "" ] | |
8 then | |
9 PARENT=`dirname \`which java\`` | |
10 TESTJAVA=`dirname ${PARENT}` | |
11 echo "TESTJAVA not set, selecting " ${TESTJAVA} | |
12 echo "If this is incorrect, try setting the variable manually." | |
13 fi | |
14 | |
15 if [ "${TESTCLASSES}" = "" ] | |
16 then | |
17 echo "TESTCLASSES not set. Test cannot execute. Failed." | |
18 exit 1 | |
19 fi | |
20 | |
21 # set platform-dependent variables | |
22 OS=`uname -s` | |
23 case "$OS" in | |
6598
6acee021f5ac
7129723: MAC: Some regression tests need to recognize Mac OS X platform
coleenp
parents:
6074
diff
changeset
|
24 SunOS | Linux | Darwin ) |
1715 | 25 NULL=/dev/null |
26 PS=":" | |
27 FS="/" | |
28 ;; | |
29 Windows_* ) | |
30 NULL=NUL | |
31 PS=";" | |
32 FS="\\" | |
33 ;; | |
6635
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
34 CYGWIN_* ) |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
35 NULL=/dev/null |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
36 PS=";" |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
37 FS="/" |
83b6305a5638
7191926: Remove MKS dependency in Hotspot regression tests
coleenp
parents:
6598
diff
changeset
|
38 ;; |
1715 | 39 * ) |
40 echo "Unrecognized system!" | |
41 exit 1; | |
42 ;; | |
43 esac | |
44 | |
45 JEMMYPATH=${CPAPPEND} | |
46 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH | |
47 | |
48 THIS_DIR=`pwd` | |
49 | |
6074
037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
1715
diff
changeset
|
50 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
1715 | 51 |
6074
037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
1715
diff
changeset
|
52 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} IsInstanceTest > test.out 2>&1 |
1715 | 53 |
54 cat test.out | |
55 | |
56 grep "Failed at index" test.out | |
57 | |
58 if [ $? = 0 ] | |
59 then | |
60 echo "Test Failed" | |
61 exit 1 | |
62 else | |
63 echo "Test Passed" | |
64 exit 0 | |
65 fi |