author | mchung |
Tue, 06 Nov 2018 10:01:16 -0800 | |
changeset 52427 | 3c6aa484536c |
parent 47766 | bfba73a06c8c |
child 54386 | 00fc7ba000b4 |
permissions | -rw-r--r-- |
47766
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
1 |
#!/bin/bash |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
2 |
# |
52427
3c6aa484536c
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
mchung
parents:
47766
diff
changeset
|
3 |
# Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
47766
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
4 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
5 |
# |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
6 |
# This code is free software; you can redistribute it and/or modify it |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
7 |
# under the terms of the GNU General Public License version 2 only, as |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
8 |
# published by the Free Software Foundation. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
9 |
# |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
10 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
11 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
12 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
13 |
# version 2 for more details (a copy is included in the LICENSE file that |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
14 |
# accompanied this code). |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
15 |
# |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
16 |
# You should have received a copy of the GNU General Public License version |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
17 |
# 2 along with this work; if not, write to the Free Software Foundation, |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
18 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
19 |
# |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
21 |
# or visit www.oracle.com if you need additional information or have any |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
22 |
# questions. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
23 |
# |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
24 |
|
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
25 |
# generates CTW tests for modules passed as argument |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
26 |
|
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
27 |
for module in $@ |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
28 |
do |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
29 |
file=${module//./_}.java |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
30 |
echo creating $file for $module... |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
31 |
cat > $file <<EOF |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
32 |
/* |
52427
3c6aa484536c
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
mchung
parents:
47766
diff
changeset
|
33 |
* Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved. |
47766
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
34 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
35 |
* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
36 |
* This code is free software; you can redistribute it and/or modify it |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
37 |
* under the terms of the GNU General Public License version 2 only, as |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
38 |
* published by the Free Software Foundation. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
39 |
* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
40 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
41 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
42 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
43 |
* version 2 for more details (a copy is included in the LICENSE file that |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
44 |
* accompanied this code). |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
45 |
* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
46 |
* You should have received a copy of the GNU General Public License version |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
47 |
* 2 along with this work; if not, write to the Free Software Foundation, |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
48 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
49 |
* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
50 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
51 |
* or visit www.oracle.com if you need additional information or have any |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
52 |
* questions. |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
53 |
*/ |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
54 |
|
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
55 |
/* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
56 |
* @test |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
57 |
* @summary run CTW for all classes from $module module |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
58 |
* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
59 |
* @library /test/lib / /testlibrary/ctw/src |
52427
3c6aa484536c
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
mchung
parents:
47766
diff
changeset
|
60 |
* @modules java.base/jdk.internal.access |
3c6aa484536c
8211122: Reduce the number of internal classes made accessible to jdk.unsupported
mchung
parents:
47766
diff
changeset
|
61 |
* java.base/jdk.internal.jimage |
47766
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
62 |
* java.base/jdk.internal.misc |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
63 |
* java.base/jdk.internal.reflect |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
64 |
* @modules $module |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
65 |
* |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
66 |
* @build sun.hotspot.WhiteBox |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
67 |
* @run driver ClassFileInstaller sun.hotspot.WhiteBox |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
68 |
* sun.hotspot.WhiteBox\$WhiteBoxPermission |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
69 |
* @run main/timeout=7200 sun.hotspot.tools.ctw.CtwRunner modules:$module |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
70 |
*/ |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
71 |
EOF |
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
72 |
|
bfba73a06c8c
8186618: [TESTBUG] Test applications/ctw/Modules.java doesn't have timeout and hang on windows
iignatyev
parents:
diff
changeset
|
73 |
done |