CompileOnlyTest.java revision 11707:ad7af1afda7a
1168754Sbushman/*
2168754Sbushman * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
3168754Sbushman * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4168754Sbushman *
5168754Sbushman * This code is free software; you can redistribute it and/or modify it
6168754Sbushman * under the terms of the GNU General Public License version 2 only, as
7168754Sbushman * published by the Free Software Foundation.
8168754Sbushman *
9168754Sbushman * This code is distributed in the hope that it will be useful, but WITHOUT
10168754Sbushman * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11168754Sbushman * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12168754Sbushman * version 2 for more details (a copy is included in the LICENSE file that
13168754Sbushman * accompanied this code).
14168754Sbushman *
15168754Sbushman * You should have received a copy of the GNU General Public License version
16168754Sbushman * 2 along with this work; if not, write to the Free Software Foundation,
17168754Sbushman * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18168754Sbushman *
19168754Sbushman * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20168754Sbushman * or visit www.oracle.com if you need additional information or have any
21168754Sbushman * questions.
22168754Sbushman */
23168754Sbushman
24168754Sbushman/*
25168754Sbushman * @test
26168754Sbushman * @bug 8137167
27168754Sbushman * @summary Tests CompileCommand=compileonly
28168754Sbushman * @modules java.base/jdk.internal.misc
29168754Sbushman * @library /testlibrary /test/lib /
30 *
31 * @build compiler.compilercontrol.commandfile.CompileOnlyTest
32 *        compiler.compilercontrol.share.pool.sub.*
33 *        compiler.compilercontrol.share.pool.subpack.*
34 *        sun.hotspot.WhiteBox
35 *        compiler.testlibrary.CompilerUtils
36 *        compiler.compilercontrol.share.actions.*
37 * @run driver ClassFileInstaller sun.hotspot.WhiteBox
38 *                                sun.hotspot.WhiteBox$WhiteBoxPermission
39 * @run driver compiler.compilercontrol.commandfile.CompileOnlyTest
40 */
41
42package compiler.compilercontrol.commandfile;
43
44import compiler.compilercontrol.share.SingleCommand;
45import compiler.compilercontrol.share.scenario.Command;
46import compiler.compilercontrol.share.scenario.Scenario;
47
48public class CompileOnlyTest {
49    public static void main(String[] args) {
50        new SingleCommand(Command.COMPILEONLY, Scenario.Type.FILE).test();
51    }
52}
53