author | jlaskey |
Tue, 23 Jul 2013 12:00:29 -0300 | |
changeset 19089 | 51cfdcf21d35 |
parent 16457 | 92af83361777 |
child 21769 | 61c68af507c9 |
permissions | -rw-r--r-- |
6467 | 1 |
# |
12729
684b5857e506
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
6467
diff
changeset
|
2 |
# Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved. |
6467 | 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 |
# |
|
6257 | 23 |
|
6467 | 24 |
|
6257 | 25 |
# @test @(#)Test6626217.sh |
26 |
# @bug 6626217 |
|
27 |
# @summary Loader-constraint table allows arrays instead of only the base-classes |
|
28 |
# @run shell Test6626217.sh |
|
29 |
# |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
30 |
## some tests require path to find test source dir |
6257 | 31 |
if [ "${TESTSRC}" = "" ] |
32 |
then |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
33 |
TESTSRC=${PWD} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
34 |
echo "TESTSRC not set. Using "${TESTSRC}" as default" |
6257 | 35 |
fi |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
36 |
echo "TESTSRC=${TESTSRC}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
37 |
## Adding common setup Variables for running shell tests. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
38 |
. ${TESTSRC}/../../test_env.sh |
6257 | 39 |
|
40 |
JAVA=${TESTJAVA}${FS}bin${FS}java |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
41 |
JAVAC=${COMPILEJAVA}${FS}bin${FS}javac |
6257 | 42 |
|
43 |
# Current directory is scratch directory, copy all the test source there |
|
44 |
# (for the subsequent moves to work). |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
45 |
${CP} ${TESTSRC}${FS}* ${THIS_DIR} |
6257 | 46 |
|
47 |
# A Clean Compile: this line will probably fail within jtreg as have a clean dir: |
|
48 |
${RM} -f *.class *.impl many_loader.java |
|
49 |
||
50 |
# Compile all the usual suspects, including the default 'many_loader' |
|
51 |
${CP} many_loader1.java.foo many_loader.java |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
52 |
${JAVAC} ${TESTJAVACOPTS} -source 1.4 -target 1.4 -Xlint *.java |
6257 | 53 |
|
54 |
# Rename the class files, so the custom loader (and not the system loader) will find it |
|
55 |
${MV} from_loader2.class from_loader2.impl2 |
|
56 |
||
57 |
# Compile the next version of 'many_loader' |
|
58 |
${MV} many_loader.class many_loader.impl1 |
|
59 |
${CP} many_loader2.java.foo many_loader.java |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
13523
diff
changeset
|
60 |
${JAVAC} ${TESTJAVACOPTS} -source 1.4 -target 1.4 -Xlint many_loader.java |
6257 | 61 |
|
62 |
# Rename the class file, so the custom loader (and not the system loader) will find it |
|
63 |
${MV} many_loader.class many_loader.impl2 |
|
64 |
${MV} many_loader.impl1 many_loader.class |
|
65 |
${RM} many_loader.java |
|
66 |
||
12729
684b5857e506
7157734: hotspot test scripts not testing 64-bit JVM under JPRT/JTREG.
kevinw
parents:
6467
diff
changeset
|
67 |
${JAVA} ${TESTVMOPTS} -Xverify -Xint -cp . bug_21227 >test.out 2>&1 |
6467 | 68 |
grep "loader constraint" test.out |
6257 | 69 |
exit $? |
70 |