author | coleenp |
Wed, 01 Aug 2012 16:52:43 -0400 | |
changeset 13469 | 9a2973794d8c |
parent 12729 | 684b5857e506 |
child 13523 | 6a7f3e56a242 |
permissions | -rw-r--r-- |
6257 | 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 |
|
13469
9a2973794d8c
7129723: MAC: Some regression tests need to recognize Mac OS X platform
coleenp
parents:
12729
diff
changeset
|
24 |
SunOS | Linux | Darwin ) |
6257 | 25 |
NULL=/dev/null |
26 |
PS=":" |
|
27 |
FS="/" |
|
28 |
;; |
|
29 |
Windows_* ) |
|
30 |
NULL=NUL |
|
31 |
PS=";" |
|
32 |
FS="\\" |
|
33 |
;; |
|
34 |
* ) |
|
35 |
echo "Unrecognized system!" |
|
36 |
exit 1; |
|
37 |
;; |
|
38 |
esac |
|
39 |
||
40 |
JEMMYPATH=${CPAPPEND} |
|
41 |
CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH |
|
42 |
||
43 |
THIS_DIR=`pwd` |
|
44 |
||
12729
684b5857e506
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
6257
diff
changeset
|
45 |
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
6257 | 46 |
|
12729
684b5857e506
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
6257
diff
changeset
|
47 |
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} IsInstanceTest > test.out 2>&1 |
6257 | 48 |
|
49 |
cat test.out |
|
50 |
||
51 |
grep "Failed at index" test.out |
|
52 |
||
53 |
if [ $? = 0 ] |
|
54 |
then |
|
55 |
echo "Test Failed" |
|
56 |
exit 1 |
|
57 |
else |
|
58 |
echo "Test Passed" |
|
59 |
exit 0 |
|
60 |
fi |