Mercurial > hg > graal-compiler
annotate test/runtime/6626217/Test6626217.sh @ 18254:01e268964aa4
Merge.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 05 Nov 2014 12:26:35 +0100 |
parents | 89152779163c |
children |
rev | line source |
---|---|
1797 | 1 # |
17524 | 2 # Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved. |
1797 | 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # | |
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 | |
7 # published by the Free Software Foundation. | |
8 # | |
9 # This code is distributed in the hope that it will be useful, but WITHOUT | |
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 # version 2 for more details (a copy is included in the LICENSE file that | |
13 # accompanied this code). | |
14 # | |
15 # You should have received a copy of the GNU General Public License version | |
16 # 2 along with this work; if not, write to the Free Software Foundation, | |
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 # | |
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 # or visit www.oracle.com if you need additional information or have any | |
21 # questions. | |
22 # | |
1715 | 23 |
13402
e567d5afd4dd
8028160: [TESTBUG] Exclude failing (runtime) jtreg tests using @ignore
hseigel
parents:
8831
diff
changeset
|
24 |
e567d5afd4dd
8028160: [TESTBUG] Exclude failing (runtime) jtreg tests using @ignore
hseigel
parents:
8831
diff
changeset
|
25 # @ignore 8028733 |
1715 | 26 # @test @(#)Test6626217.sh |
27 # @bug 6626217 | |
28 # @summary Loader-constraint table allows arrays instead of only the base-classes | |
29 # @run shell Test6626217.sh | |
30 # | |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
31 ## some tests require path to find test source dir |
1715 | 32 if [ "${TESTSRC}" = "" ] |
33 then | |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
34 TESTSRC=${PWD} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
35 echo "TESTSRC not set. Using "${TESTSRC}" as default" |
1715 | 36 fi |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
37 echo "TESTSRC=${TESTSRC}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
38 ## Adding common setup Variables for running shell tests. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
39 . ${TESTSRC}/../../test_env.sh |
1715 | 40 |
41 JAVA=${TESTJAVA}${FS}bin${FS}java | |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
42 JAVAC=${COMPILEJAVA}${FS}bin${FS}javac |
1715 | 43 |
44 # Current directory is scratch directory, copy all the test source there | |
45 # (for the subsequent moves to work). | |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
46 ${CP} ${TESTSRC}${FS}* ${THIS_DIR} |
1715 | 47 |
48 # A Clean Compile: this line will probably fail within jtreg as have a clean dir: | |
49 ${RM} -f *.class *.impl many_loader.java | |
50 | |
51 # Compile all the usual suspects, including the default 'many_loader' | |
52 ${CP} many_loader1.java.foo many_loader.java | |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
53 ${JAVAC} ${TESTJAVACOPTS} -source 1.4 -target 1.4 -Xlint *.java |
1715 | 54 |
55 # Rename the class files, so the custom loader (and not the system loader) will find it | |
56 ${MV} from_loader2.class from_loader2.impl2 | |
57 | |
58 # Compile the next version of 'many_loader' | |
59 ${MV} many_loader.class many_loader.impl1 | |
60 ${CP} many_loader2.java.foo many_loader.java | |
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
6635
diff
changeset
|
61 ${JAVAC} ${TESTJAVACOPTS} -source 1.4 -target 1.4 -Xlint many_loader.java |
1715 | 62 |
63 # Rename the class file, so the custom loader (and not the system loader) will find it | |
64 ${MV} many_loader.class many_loader.impl2 | |
65 ${MV} many_loader.impl1 many_loader.class | |
66 ${RM} many_loader.java | |
67 | |
6074
037973617842
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
1797
diff
changeset
|
68 ${JAVA} ${TESTVMOPTS} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 |
1797 | 69 grep "loader constraint" test.out |
1715 | 70 exit $? |
71 |