equal
deleted
inserted
replaced
59 */ |
59 */ |
60 @BeforeTest |
60 @BeforeTest |
61 public void compileAll() throws Exception { |
61 public void compileAll() throws Exception { |
62 for (String mn : modules) { |
62 for (String mn : modules) { |
63 Path msrc = SRC_DIR.resolve(mn); |
63 Path msrc = SRC_DIR.resolve(mn); |
64 assertTrue(CompilerUtils.compile(msrc, MODS_DIR, "-modulesourcepath", SRC_DIR.toString())); |
64 assertTrue(CompilerUtils.compile(msrc, MODS_DIR, "--module-source-path", SRC_DIR.toString())); |
65 } |
65 } |
66 } |
66 } |
67 |
67 |
68 /** |
68 /** |
69 * Run the modular test |
69 * Run the modular test |
70 */ |
70 */ |
71 @Test |
71 @Test |
72 public void runTest() throws Exception { |
72 public void runTest() throws Exception { |
73 int exitValue = executeTestJava("-cp", CPATH_DIR.toString(), |
73 int exitValue = executeTestJava("-cp", CPATH_DIR.toString(), |
74 "-mp", MODS_DIR.toString(), |
74 "--module-path", MODS_DIR.toString(), |
75 "-m", "test/jdk.test.Main") |
75 "-m", "test/jdk.test.Main") |
76 .outputTo(System.out) |
76 .outputTo(System.out) |
77 .errorTo(System.out) |
77 .errorTo(System.out) |
78 .getExitValue(); |
78 .getExitValue(); |
79 |
79 |