Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/readme.txt
12462 views
1#2# Copyright (c) 2001, 2018 IBM Corp. and others3#4# This program and the accompanying materials are made available under5# the terms of the Eclipse Public License 2.0 which accompanies this6# distribution and is available at https://www.eclipse.org/legal/epl-2.0/7# or the Apache License, Version 2.0 which accompanies this distribution and8# is available at https://www.apache.org/licenses/LICENSE-2.0.9#10# This Source Code may also be made available under the following11# Secondary Licenses when the conditions for such availability set12# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU13# General Public License, version 2 with the GNU Classpath14# Exception [1] and GNU General Public License, version 2 with the15# OpenJDK Assembly Exception [2].16#17# [1] https://www.gnu.org/software/classpath/license.html18# [2] http://openjdk.java.net/legal/assembly-exception.html19#20# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception21#2223These tests are designed to check the implementation of class sharing in URLClassLoader.24A readme.txt is added to each directory to describe in more detail what each test does.2526Test groups:2728Sanity29Basic tests to ensure that the support is actually present and working. These tests are a prereq to running the other tests.30FindStore31Tests which exercise storing and finding of classes in the cache using various different classpath configurations.32JarExt33Tests which ensure that the Jar Extensions mechanism and Jar Indexing work correctly34SignedSealed35Tests which ensure that signed jars and sealed packages work correct36NonExistJar37Tests which ensure that Jars missing from the classpath or which appear on the classpath do not break the support38JVMTI39Tests the JVMTI functions which can add classpath entries to the bootstrap and system classloaders (Java6 only)4041Prereqs:4243The tests have a few prereqs before they can all run successfully:44451) A reference JDK containing javac, jar and jarsigner in the /bin directory462) A Test JDK which must contain a jre/lib/ext directory473) For the FindStore tests on Windows, a mapped network drive must be provided in the format //machine/share/directory which is writable.4849Running the tests:5051Example batch files have been provided which run the tests. The locations of the testsuite and JDKs are set in these batch files:5253set BASEDIR=C:\ben\URLClassLoaderTests /* The location of the test-suite */5455set NETUSEDIR=\\OTT6F\IRIS\BLUEJ\team\ben /* The location of a mapped network drive */5657set TESTJREBASE=C:\ben\j9vmwi3223\sdk /* The root of the test JRE */58set REFJREBASE=C:\ben\j9vmwi3223\sr3 /* The root of the reference JDK */5960set REFJREBIN=%REFJREBASE%\jre\bin /* The location of reference JRE jre/bin */61set REFBIN=%REFJREBASE%\bin /* The location of reference JRE bin */62set TESTEXE=%TESTJREBASE%\jre\bin\java /* The location of the test executable */63set TESTEXTDIR=%TESTJREBASE%\jre\lib\ext /* The location of the lib/ext directory in the test JRE */6465set EXCLUDEFILE=excludeJava5.xml /* The exclude file to use */66676869