Mercurial > hg > truffle
comparison test/compiler/6894807/Test6894807.sh @ 6076:b4f7c4315c36
Merge
author | zgu |
---|---|
date | Sat, 12 May 2012 06:50:41 -0400 |
parents | 037973617842 |
children | 6acee021f5ac |
comparison
equal
deleted
inserted
replaced
6075:2f4819f92dc7 | 6076:b4f7c4315c36 |
---|---|
16 then | 16 then |
17 echo "TESTCLASSES not set. Test cannot execute. Failed." | 17 echo "TESTCLASSES not set. Test cannot execute. Failed." |
18 exit 1 | 18 exit 1 |
19 fi | 19 fi |
20 | 20 |
21 BIT_FLAG="" | |
22 | |
23 # set platform-dependent variables | 21 # set platform-dependent variables |
24 OS=`uname -s` | 22 OS=`uname -s` |
25 case "$OS" in | 23 case "$OS" in |
26 SunOS | Linux ) | 24 SunOS | Linux ) |
27 NULL=/dev/null | 25 NULL=/dev/null |
28 PS=":" | 26 PS=":" |
29 FS="/" | 27 FS="/" |
30 ## for solaris, linux it's HOME | |
31 FILE_LOCATION=$HOME | |
32 if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" ] | |
33 then | |
34 BIT_FLAG=`cat ${FILE_LOCATION}${FS}JDK64BIT | grep -v '^#'` | |
35 fi | |
36 ;; | 28 ;; |
37 Windows_* ) | 29 Windows_* ) |
38 NULL=NUL | 30 NULL=NUL |
39 PS=";" | 31 PS=";" |
40 FS="\\" | 32 FS="\\" |
48 JEMMYPATH=${CPAPPEND} | 40 JEMMYPATH=${CPAPPEND} |
49 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH | 41 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH |
50 | 42 |
51 THIS_DIR=`pwd` | 43 THIS_DIR=`pwd` |
52 | 44 |
53 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version | 45 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
54 | 46 |
55 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -server IsInstanceTest > test.out 2>&1 | 47 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} IsInstanceTest > test.out 2>&1 |
56 | 48 |
57 cat test.out | 49 cat test.out |
58 | 50 |
59 grep "Failed at index" test.out | 51 grep "Failed at index" test.out |
60 | 52 |