hotspot/test/serviceability/dcmd/framework/VMVersionTest.java
changeset 40631 ed82623d7831
parent 39273 1d8c0c1e59d6
child 43467 f91da24c6bca
equal deleted inserted replaced
40629:514bf0744294 40631:ed82623d7831
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 import jdk.test.lib.OutputAnalyzer;
    24 import jdk.test.lib.process.OutputAnalyzer;
    25 import jdk.test.lib.dcmd.CommandExecutor;
    25 import jdk.test.lib.dcmd.CommandExecutor;
    26 import jdk.test.lib.dcmd.PidJcmdExecutor;
    26 import jdk.test.lib.dcmd.PidJcmdExecutor;
    27 import jdk.test.lib.dcmd.MainClassJcmdExecutor;
    27 import jdk.test.lib.dcmd.MainClassJcmdExecutor;
    28 import jdk.test.lib.dcmd.FileJcmdExecutor;
    28 import jdk.test.lib.dcmd.FileJcmdExecutor;
    29 import jdk.test.lib.dcmd.JMXExecutor;
    29 import jdk.test.lib.dcmd.JMXExecutor;
    31 import org.testng.annotations.Test;
    31 import org.testng.annotations.Test;
    32 
    32 
    33 /*
    33 /*
    34  * @test
    34  * @test
    35  * @summary Test of diagnostic command VM.version (tests all DCMD executors)
    35  * @summary Test of diagnostic command VM.version (tests all DCMD executors)
    36  * @library /testlibrary
    36  * @library /test/lib
    37  * @modules java.base/jdk.internal.misc
    37  * @modules java.base/jdk.internal.misc
    38  *          java.compiler
    38  *          java.compiler
    39  *          java.management
    39  *          java.management
    40  *          jdk.jvmstat/sun.jvmstat.monitor
    40  *          jdk.jvmstat/sun.jvmstat.monitor
    41  * @build jdk.test.lib.*
       
    42  * @build jdk.test.lib.dcmd.*
       
    43  * @run testng/othervm -XX:+UsePerfData VMVersionTest
    41  * @run testng/othervm -XX:+UsePerfData VMVersionTest
    44  */
    42  */
    45 public class VMVersionTest {
    43 public class VMVersionTest {
    46     public void run(CommandExecutor executor) {
    44     public void run(CommandExecutor executor) {
    47         OutputAnalyzer output = executor.execute("VM.version");
    45         OutputAnalyzer output = executor.execute("VM.version");