hotspot/test/compiler/compilercontrol/jcmd/AddLogTest.java
author neliasso
Wed, 16 Mar 2016 10:45:43 +0100
changeset 36796 c751f445f5d4
parent 35753 ee7921f045d2
child 38152 80e5da81fb2c
permissions -rw-r--r--
8150054: Make compilercontrol test ignore xcomp Summary: Add -Xmixed and use jtreg driver Reviewed-by: kvn
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
33453
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     1
/*
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     2
 * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     4
 *
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     7
 * published by the Free Software Foundation.
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     8
 *
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    13
 * accompanied this code).
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    14
 *
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    18
 *
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    21
 * questions.
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    22
 */
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    23
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    24
/*
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    25
 * @test
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    26
 * @bug 8137167
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    27
 * @summary Tests jcmd to be able to add a directive to log only specified methods
35753
ee7921f045d2 8148012: get rid of slash-dot-dot in @library directives
iignatyev
parents: 35597
diff changeset
    28
 * @library /testlibrary /test/lib /compiler/testlibrary ../share /
35597
0174e7c4489f 8148136: compile control tests have incorrect @build directives
iignatyev
parents: 33453
diff changeset
    29
 * @build compiler.compilercontrol.jcmd.AddLogTest
0174e7c4489f 8148136: compile control tests have incorrect @build directives
iignatyev
parents: 33453
diff changeset
    30
 *        pool.sub.* pool.subpack.* sun.hotspot.WhiteBox
33453
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    31
 *        compiler.testlibrary.CompilerUtils compiler.compilercontrol.share.actions.*
36796
c751f445f5d4 8150054: Make compilercontrol test ignore xcomp
neliasso
parents: 35753
diff changeset
    32
 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
33453
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    33
 *                              sun.hotspot.WhiteBox$WhiteBoxPermission
36796
c751f445f5d4 8150054: Make compilercontrol test ignore xcomp
neliasso
parents: 35753
diff changeset
    34
 * @run driver compiler.compilercontrol.jcmd.AddLogTest
33453
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    35
 */
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    36
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    37
package compiler.compilercontrol.jcmd;
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    38
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    39
import compiler.compilercontrol.share.SingleCommand;
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    40
import compiler.compilercontrol.share.scenario.Command;
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    41
import compiler.compilercontrol.share.scenario.Scenario;
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    42
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    43
public class AddLogTest {
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    44
    public static void main(String[] args) {
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    45
        new SingleCommand(Command.LOG, Scenario.Type.JCMD)
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    46
                .test();
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    47
    }
b62df32d4af8 8066166: JEP-JDK-8046155: Test task: dcmd tests
ppunegov
parents:
diff changeset
    48
}