hotspot/test/compiler/aot/cli/jaotc/CompileJarTest.java
changeset 43464 f38fde4a6b52
parent 42650 1f304d0c888b
child 46289 1904e7ec236e
equal deleted inserted replaced
43462:cde11973a86a 43464:f38fde4a6b52
    46 public class CompileJarTest {
    46 public class CompileJarTest {
    47     private static final String JAR_NAME = "test.jar";
    47     private static final String JAR_NAME = "test.jar";
    48 
    48 
    49     public static void main(String[] args) {
    49     public static void main(String[] args) {
    50         createJar();
    50         createJar();
    51         OutputAnalyzer oa = JaotcTestHelper.compileLibrary(JAR_NAME);
    51         OutputAnalyzer oa = JaotcTestHelper.compileLibrary("--jar", JAR_NAME);
    52         oa.shouldHaveExitValue(0);
    52         oa.shouldHaveExitValue(0);
    53         File compiledLibrary = new File(JaotcTestHelper.DEFAULT_LIB_PATH);
    53         File compiledLibrary = new File(JaotcTestHelper.DEFAULT_LIB_PATH);
    54         Asserts.assertTrue(compiledLibrary.exists(), "Compiled library file missing");
    54         Asserts.assertTrue(compiledLibrary.exists(), "Compiled library file missing");
    55         Asserts.assertGT(compiledLibrary.length(), 0L, "Unexpected compiled library size");
    55         Asserts.assertGT(compiledLibrary.length(), 0L, "Unexpected compiled library size");
    56         JaotcTestHelper.checkLibraryUsage(HelloWorldOne.class.getName());
    56         JaotcTestHelper.checkLibraryUsage(HelloWorldOne.class.getName());