Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/readme.txt
12462 views
1
2
#
3
# Copyright (c) 2001, 2018 IBM Corp. and others
4
#
5
# This program and the accompanying materials are made available under
6
# the terms of the Eclipse Public License 2.0 which accompanies this
7
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
8
# or the Apache License, Version 2.0 which accompanies this distribution and
9
# is available at https://www.apache.org/licenses/LICENSE-2.0.
10
#
11
# This Source Code may also be made available under the following
12
# Secondary Licenses when the conditions for such availability set
13
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
14
# General Public License, version 2 with the GNU Classpath
15
# Exception [1] and GNU General Public License, version 2 with the
16
# OpenJDK Assembly Exception [2].
17
#
18
# [1] https://www.gnu.org/software/classpath/license.html
19
# [2] http://openjdk.java.net/legal/assembly-exception.html
20
#
21
# 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-exception
22
#
23
24
These tests are designed to check the implementation of class sharing in URLClassLoader.
25
A readme.txt is added to each directory to describe in more detail what each test does.
26
27
Test groups:
28
29
Sanity
30
Basic tests to ensure that the support is actually present and working. These tests are a prereq to running the other tests.
31
FindStore
32
Tests which exercise storing and finding of classes in the cache using various different classpath configurations.
33
JarExt
34
Tests which ensure that the Jar Extensions mechanism and Jar Indexing work correctly
35
SignedSealed
36
Tests which ensure that signed jars and sealed packages work correct
37
NonExistJar
38
Tests which ensure that Jars missing from the classpath or which appear on the classpath do not break the support
39
JVMTI
40
Tests the JVMTI functions which can add classpath entries to the bootstrap and system classloaders (Java6 only)
41
42
Prereqs:
43
44
The tests have a few prereqs before they can all run successfully:
45
46
1) A reference JDK containing javac, jar and jarsigner in the /bin directory
47
2) A Test JDK which must contain a jre/lib/ext directory
48
3) For the FindStore tests on Windows, a mapped network drive must be provided in the format //machine/share/directory which is writable.
49
50
Running the tests:
51
52
Example batch files have been provided which run the tests. The locations of the testsuite and JDKs are set in these batch files:
53
54
set BASEDIR=C:\ben\URLClassLoaderTests /* The location of the test-suite */
55
56
set NETUSEDIR=\\OTT6F\IRIS\BLUEJ\team\ben /* The location of a mapped network drive */
57
58
set TESTJREBASE=C:\ben\j9vmwi3223\sdk /* The root of the test JRE */
59
set REFJREBASE=C:\ben\j9vmwi3223\sr3 /* The root of the reference JDK */
60
61
set REFJREBIN=%REFJREBASE%\jre\bin /* The location of reference JRE jre/bin */
62
set REFBIN=%REFJREBASE%\bin /* The location of reference JRE bin */
63
set TESTEXE=%TESTJREBASE%\jre\bin\java /* The location of the test executable */
64
set TESTEXTDIR=%TESTJREBASE%\jre\lib\ext /* The location of the lib/ext directory in the test JRE */
65
66
set EXCLUDEFILE=excludeJava5.xml /* The exclude file to use */
67
68
69