28 import java.nio.file.Path;
29 import java.nio.file.Paths;
30 import java.nio.file.StandardCopyOption;
31 import java.util.ArrayList;
32 import java.util.List;
33 import java.util.stream.Stream;
34
35 import jdk.testlibrary.JDKToolFinder;
36
37 import static jdk.testlibrary.ProcessTools.executeCommand;
38
39 /*
40 * @test
41 * @modules jdk.compiler
42 * @summary Test cases which run against the JDK image, check the situation where
43 * 1. logger providers are in named module,
44 * 2. clients are in named/unnamed module,
45 * patched system module, or Xbootclasspath
46 * This test does not require existence of java.logging module,
47 * but require jdk.compiler module
48 * @library /lib/testlibrary
49 * @build Base CompilerUtils jdk.testlibrary.*
50 * @run main/othervm NamedLoggerForJDKTest
51 */
52
53 public class NamedLoggerForJDKTest extends Base {
54
55 public static void main(String args[]) throws Throwable {
56 NamedLoggerForJDKTest t = new NamedLoggerForJDKTest();
57 t.setup();
58 t.test();
59 }
60
61 private void setup() throws Throwable {
62 setupAllClient();
63
64 setupNamedLogger();
65 }
66
67 private void test() throws Throwable {
68 // logger client is in named module m.t.a
69 runTest(JDK_IMAGE,
|
28 import java.nio.file.Path;
29 import java.nio.file.Paths;
30 import java.nio.file.StandardCopyOption;
31 import java.util.ArrayList;
32 import java.util.List;
33 import java.util.stream.Stream;
34
35 import jdk.testlibrary.JDKToolFinder;
36
37 import static jdk.testlibrary.ProcessTools.executeCommand;
38
39 /*
40 * @test
41 * @modules jdk.compiler
42 * @summary Test cases which run against the JDK image, check the situation where
43 * 1. logger providers are in named module,
44 * 2. clients are in named/unnamed module,
45 * patched system module, or Xbootclasspath
46 * This test does not require existence of java.logging module,
47 * but require jdk.compiler module
48 * @library /lib/testlibrary /test/lib
49 * @build Base jdk.test.lib.compiler.CompilerUtils jdk.testlibrary.*
50 * @run main/othervm NamedLoggerForJDKTest
51 */
52
53 public class NamedLoggerForJDKTest extends Base {
54
55 public static void main(String args[]) throws Throwable {
56 NamedLoggerForJDKTest t = new NamedLoggerForJDKTest();
57 t.setup();
58 t.test();
59 }
60
61 private void setup() throws Throwable {
62 setupAllClient();
63
64 setupNamedLogger();
65 }
66
67 private void test() throws Throwable {
68 // logger client is in named module m.t.a
69 runTest(JDK_IMAGE,
|