LogTest.java revision 11707:ad7af1afda7a
121259Swollman/*
221259Swollman * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
321259Swollman * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
421259Swollman *
521259Swollman * This code is free software; you can redistribute it and/or modify it
621259Swollman * under the terms of the GNU General Public License version 2 only, as
721259Swollman * published by the Free Software Foundation.
821259Swollman *
921259Swollman * This code is distributed in the hope that it will be useful, but WITHOUT
1021259Swollman * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1121259Swollman * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1221259Swollman * version 2 for more details (a copy is included in the LICENSE file that
1321259Swollman * accompanied this code).
1421259Swollman *
1521259Swollman * You should have received a copy of the GNU General Public License version
1621259Swollman * 2 along with this work; if not, write to the Free Software Foundation,
1721259Swollman * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1821259Swollman *
1921259Swollman * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2021259Swollman * or visit www.oracle.com if you need additional information or have any
2121259Swollman * questions.
2221259Swollman */
2321259Swollman
2421259Swollman/*
2521259Swollman * @test
2621259Swollman * @bug 8137167
2721259Swollman * @summary Tests directives to be able to turn on LogCompilation
2821259Swollman * @modules java.base/jdk.internal.misc
2921259Swollman * @library /testlibrary /test/lib /
3021259Swollman *
3121259Swollman * @build compiler.compilercontrol.directives.LogTest
3221259Swollman *        compiler.compilercontrol.share.pool.sub.*
3321259Swollman *        compiler.compilercontrol.share.pool.subpack.*
3450477Speter *        sun.hotspot.WhiteBox
3521259Swollman *        compiler.testlibrary.CompilerUtils
3621259Swollman *        compiler.compilercontrol.share.actions.*
3721259Swollman * @run driver ClassFileInstaller sun.hotspot.WhiteBox
3821259Swollman *                                sun.hotspot.WhiteBox$WhiteBoxPermission
3921259Swollman * @run driver compiler.compilercontrol.directives.LogTest
4021259Swollman */
4121259Swollman
4221259Swollmanpackage compiler.compilercontrol.directives;
4321259Swollman
4421259Swollmanimport compiler.compilercontrol.share.SingleCommand;
4521259Swollmanimport compiler.compilercontrol.share.scenario.Command;
4621259Swollmanimport compiler.compilercontrol.share.scenario.Scenario;
4721259Swollman
4821259Swollmanpublic class LogTest {
4921259Swollman    public static void main(String[] args) {
5021259Swollman        new SingleCommand(Command.LOG, Scenario.Type.DIRECTIVE).test();
5121259Swollman    }
5221259Swollman}
5321259Swollman