hotspot/test/testlibrary_tests/ctw/JarsTest.java
changeset 40631 ed82623d7831
parent 40048 7e816aed8ba8
child 43414 bd9a5a9dc9bc
equal deleted inserted replaced
40629:514bf0744294 40631:ed82623d7831
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8012447
    26  * @bug 8012447
    27  * @library /testlibrary /test/lib /testlibrary/ctw/src
    27  * @library /test/lib /testlibrary/ctw/src
    28  * @modules java.base/jdk.internal.jimage
    28  * @modules java.base/jdk.internal.jimage
    29  *          java.base/jdk.internal.misc
    29  *          java.base/jdk.internal.misc
    30  *          java.base/jdk.internal.reflect
    30  *          java.base/jdk.internal.reflect
    31  *          java.compiler
    31  *          java.compiler
    32  *          java.management
    32  *          java.management
    33  *          jdk.jvmstat/sun.jvmstat.monitor
    33  *          jdk.jvmstat/sun.jvmstat.monitor
    34  * @build ClassFileInstaller jdk.test.lib.* sun.hotspot.tools.ctw.CompileTheWorld sun.hotspot.WhiteBox Foo Bar
    34  * @build sun.hotspot.WhiteBox Foo Bar
    35  * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar
    35  * @run main ClassFileInstaller sun.hotspot.WhiteBox Foo Bar
    36  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    36  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
    37  * @run main JarsTest prepare
    37  * @run main JarsTest prepare
    38  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld foo.jar bar.jar
    38  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Dsun.hotspot.tools.ctw.logfile=ctw.log sun.hotspot.tools.ctw.CompileTheWorld foo.jar bar.jar
    39  * @run main JarsTest check ctw.log
    39  * @run main JarsTest check ctw.log
    40  * @summary testing of CompileTheWorld :: jars
    40  * @summary testing of CompileTheWorld :: jars
    41  * @author igor.ignatyev@oracle.com
    41  * @author igor.ignatyev@oracle.com
    42  */
    42  */
    43 
    43 
    44 import jdk.test.lib.OutputAnalyzer;
    44 import jdk.test.lib.process.OutputAnalyzer;
    45 
    45 
    46 public class JarsTest extends CtwTest {
    46 public class JarsTest extends CtwTest {
    47     private static final String[] SHOULD_CONTAIN
    47     private static final String[] SHOULD_CONTAIN
    48             = {"# jar: foo.jar", "# jar: bar.jar",
    48             = {"# jar: foo.jar", "# jar: bar.jar",
    49                     "Done (4 classes, 12 methods, "};
    49                     "Done (4 classes, 12 methods, "};