Mercurial > hg > graal-jvmci-8
comparison test/runtime/6626217/Test6626217.sh @ 6074:037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
Reviewed-by: kvn
author | kevinw |
---|---|
date | Fri, 11 May 2012 17:24:32 +0100 |
parents | 883a82d6d41d |
children | 6acee021f5ac |
comparison
equal
deleted
inserted
replaced
6073:78d2ae5ab35b | 6074:037973617842 |
---|---|
1 # | 1 # |
2 # Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. | 2 # Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | 4 # |
5 # This code is free software; you can redistribute it and/or modify it | 5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as | 6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. | 7 # published by the Free Software Foundation. |
44 then | 44 then |
45 echo "TESTCLASSES not set. Test cannot execute. Failed." | 45 echo "TESTCLASSES not set. Test cannot execute. Failed." |
46 exit 1 | 46 exit 1 |
47 fi | 47 fi |
48 | 48 |
49 BIT_FLAG="" | |
50 | |
51 # set platform-dependent variables | 49 # set platform-dependent variables |
52 OS=`uname -s` | 50 OS=`uname -s` |
53 case "$OS" in | 51 case "$OS" in |
54 SunOS | Linux ) | 52 SunOS | Linux ) |
55 NULL=/dev/null | 53 NULL=/dev/null |
56 PS=":" | 54 PS=":" |
57 FS="/" | 55 FS="/" |
58 RM=/bin/rm | 56 RM=/bin/rm |
59 CP=/bin/cp | 57 CP=/bin/cp |
60 MV=/bin/mv | 58 MV=/bin/mv |
61 ## for solaris, linux it's HOME | |
62 FILE_LOCATION=$HOME | |
63 if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" ] | |
64 then | |
65 BIT_FLAG=`cat ${FILE_LOCATION}${FS}JDK64BIT` | |
66 fi | |
67 ;; | 59 ;; |
68 Windows_* ) | 60 Windows_* ) |
69 NULL=NUL | 61 NULL=NUL |
70 PS=";" | 62 PS=";" |
71 FS="\\" | 63 FS="\\" |
85 THIS_DIR=`pwd` | 77 THIS_DIR=`pwd` |
86 | 78 |
87 JAVA=${TESTJAVA}${FS}bin${FS}java | 79 JAVA=${TESTJAVA}${FS}bin${FS}java |
88 JAVAC=${TESTJAVA}${FS}bin${FS}javac | 80 JAVAC=${TESTJAVA}${FS}bin${FS}javac |
89 | 81 |
90 ${JAVA} ${BIT_FLAG} -version | 82 ${JAVA} ${TESTVMOPTS} -version |
91 | 83 |
92 # Current directory is scratch directory, copy all the test source there | 84 # Current directory is scratch directory, copy all the test source there |
93 # (for the subsequent moves to work). | 85 # (for the subsequent moves to work). |
94 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} | 86 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} |
95 | 87 |
111 # Rename the class file, so the custom loader (and not the system loader) will find it | 103 # Rename the class file, so the custom loader (and not the system loader) will find it |
112 ${MV} many_loader.class many_loader.impl2 | 104 ${MV} many_loader.class many_loader.impl2 |
113 ${MV} many_loader.impl1 many_loader.class | 105 ${MV} many_loader.impl1 many_loader.class |
114 ${RM} many_loader.java | 106 ${RM} many_loader.java |
115 | 107 |
116 ${JAVA} ${BIT_FLAG} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 | 108 ${JAVA} ${TESTVMOPTS} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 |
117 grep "loader constraint" test.out | 109 grep "loader constraint" test.out |
118 exit $? | 110 exit $? |
119 | 111 |