|
1 #!/bin/bash |
|
2 # |
|
3 # Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
|
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
5 # |
|
6 # This code is free software; you can redistribute it and/or modify it |
|
7 # under the terms of the GNU General Public License version 2 only, as |
|
8 # published by the Free Software Foundation. |
|
9 # |
|
10 # This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 # version 2 for more details (a copy is included in the LICENSE file that |
|
14 # accompanied this code). |
|
15 # |
|
16 # You should have received a copy of the GNU General Public License version |
|
17 # 2 along with this work; if not, write to the Free Software Foundation, |
|
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 # |
|
20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
21 # or visit www.oracle.com if you need additional information or have any |
|
22 # questions. |
|
23 # |
|
24 |
|
25 while read -r fName pName requireInfo |
|
26 do |
|
27 fName="${fName}Test.java" |
|
28 echo "Generate $fName for $pName ..." |
|
29 |
|
30 cat << EOF | sed 's/[[:blank:]]*$//' > $fName |
|
31 /* |
|
32 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
|
33 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
|
34 * |
|
35 * This code is free software; you can redistribute it and/or modify it |
|
36 * under the terms of the GNU General Public License version 2 only, as |
|
37 * published by the Free Software Foundation. |
|
38 * |
|
39 * This code is distributed in the hope that it will be useful, but WITHOUT |
|
40 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
41 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
42 * version 2 for more details (a copy is included in the LICENSE file that |
|
43 * accompanied this code). |
|
44 * |
|
45 * You should have received a copy of the GNU General Public License version |
|
46 * 2 along with this work; if not, write to the Free Software Foundation, |
|
47 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
48 * |
|
49 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
|
50 * or visit www.oracle.com if you need additional information or have any |
|
51 * questions. |
|
52 */ |
|
53 |
|
54 /* |
|
55 * @test |
|
56 * @summary |
|
57 * @requires vm.opt.final.EnableJVMCI |
|
58 * $requireInfo |
|
59 * @modules jdk.internal.vm.compiler |
|
60 * |
|
61 * @library /test/lib /compiler/graalunit / |
|
62 * |
|
63 * @build compiler.graalunit.common.GraalUnitTestLauncher |
|
64 * |
|
65 * @run driver jdk.test.lib.FileInstaller ../../ProblemList-graal.txt ExcludeList.txt |
|
66 * |
|
67 * @run main/othervm compiler.graalunit.common.GraalUnitTestLauncher -prefix $pName -exclude ExcludeList.txt |
|
68 */ |
|
69 EOF |
|
70 |
|
71 done < TestPackages.txt |
|
72 |