TestHelper.java revision 4854
4609N/A * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. 647N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 647N/A * This code is free software; you can redistribute it and/or modify it 647N/A * under the terms of the GNU General Public License version 2 only, as 647N/A * published by the Free Software Foundation. 647N/A * This code is distributed in the hope that it will be useful, but WITHOUT 647N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 647N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 647N/A * version 2 for more details (a copy is included in the LICENSE file that 647N/A * accompanied this code). 647N/A * You should have received a copy of the GNU General Public License version 647N/A * 2 along with this work; if not, write to the Free Software Foundation, 647N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 3986N/A * This class provides some common utilities for the launcher tests. 4854N/A // commonly used jtreg constants 4854N/A // make a note of the golden default locale 4854N/A throw new Error(
"property test.classes not defined ??");
4854N/A throw new Error(
"property test.src not defined ??");
4854N/A "> must exist and should be executable");
4854N/A "> must exist and should be executable");
4854N/A "> must exist and should be executable");
3986N/A * is a dual mode available in the test jdk 3986N/A * get the complementary jre arch ie. if sparc then return sparcv9 and 1945N/A * A convenience method to create a jar with jar file name and defs 653N/A * A convenience method to create a java file, compile and jar it up, using 653N/A * the sole class file name in the jar, as the Main-Class attribute value. 4854N/A * A convenience method to compile java files. 653N/A * A generic jar file creator to create a java file, compile it 653N/A * and jar it up, a specific Main-Class entry name in the 653N/A * manifest can be specified or a null to use the sole class file name 653N/A * as the Main-Class attribute value. 653N/A * A method which executes a java cmd and returns the results in a container 647N/A * A class to encapsulate the test results and stuff, with some ease 647N/A * of use methods to check the test results.