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 */
23
24 /*
25 * @test
26 * @bug 8012447
27 * @library /test/lib /testlibrary/ctw/src
28 * @modules java.base/jdk.internal.jimage
29 * java.base/jdk.internal.misc
30 * java.base/jdk.internal.reflect
31 * java.compiler
32 * java.management
33 * jdk.jvmstat/sun.jvmstat.monitor
34 * @build sun.hotspot.WhiteBox Foo Bar
35 * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar
36 * sun.hotspot.WhiteBox$WhiteBoxPermission
37 * @run main JarDirTest prepare
38 * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld jars/*
39 * @run main JarDirTest check ctw.log
40 * @summary testing of CompileTheWorld :: jars in directory
41 * @author igor.ignatyev@oracle.com
42 */
43
44 import java.io.File;
45 import java.nio.file.Files;
46 import java.nio.file.Paths;
47
48 import jdk.test.lib.process.OutputAnalyzer;
49
50 public class JarDirTest extends CtwTest {
51 private static final String[] SHOULD_CONTAIN
52 = {"# jar_in_dir: jars",
53 "# jar: jars" + File.separator +"foo.jar",
54 "# jar: jars" + File.separator +"bar.jar",
55 "Done (4 classes, 12 methods, "};
56
57 private JarDirTest() {
58 super(SHOULD_CONTAIN);
59 }
|
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 */
23
24 /*
25 * @test
26 * @bug 8012447
27 * @library /test/lib /testlibrary/ctw/src
28 * @modules java.base/jdk.internal.jimage
29 * java.base/jdk.internal.misc
30 * java.base/jdk.internal.reflect
31 * java.compiler
32 * java.management
33 * jdk.jvmstat/sun.jvmstat.monitor
34 * @build sun.hotspot.WhiteBox Foo Bar
35 * @run driver ClassFileInstaller sun.hotspot.WhiteBox Foo Bar
36 * sun.hotspot.WhiteBox$WhiteBoxPermission
37 * @run driver JarDirTest prepare
38 * @run driver JarDirTest compile jars/*
39 * @run driver JarDirTest check
40 * @summary testing of CompileTheWorld :: jars in directory
41 * @author igor.ignatyev@oracle.com
42 */
43
44 import java.io.File;
45 import java.nio.file.Files;
46 import java.nio.file.Paths;
47
48 import jdk.test.lib.process.OutputAnalyzer;
49
50 public class JarDirTest extends CtwTest {
51 private static final String[] SHOULD_CONTAIN
52 = {"# jar_in_dir: jars",
53 "# jar: jars" + File.separator +"foo.jar",
54 "# jar: jars" + File.separator +"bar.jar",
55 "Done (4 classes, 12 methods, "};
56
57 private JarDirTest() {
58 super(SHOULD_CONTAIN);
59 }
|