1#  Copyright (c) 2013, 2021, Oracle and/or its affiliates. All rights reserved.
2#  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3#
4#  This code is free software; you can redistribute it and/or modify it
5#  under the terms of the GNU General Public License version 2 only, as
6#  published by the Free Software Foundation.
7#
8#  This code is distributed in the hope that it will be useful, but WITHOUT
9#  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10#  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
11#  version 2 for more details (a copy is included in the LICENSE file that
12#  accompanied this code).
13#
14#  You should have received a copy of the GNU General Public License version
15#  2 along with this work; if not, write to the Free Software Foundation,
16#  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
17#
18#  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
19#  or visit www.oracle.com if you need additional information or have any
20#  questions.
21#
22
23###############################################################################
24#
25# Tiered testing definitions
26#
27
28# When adding tests to tier1, make sure they end up in one of the tier1_partX groups
29tier1 = \
30    :tier1_part1 \
31    :tier1_part2 \
32    :tier1_part3
33
34tier1_part1 = \
35    :jdk_lang
36
37tier1_part2 = \
38    :jdk_util
39
40tier1_part3 = \
41    :jdk_math \
42    :jdk_svc_sanity \
43    :jdk_foreign \
44    java/nio/Buffer \
45    com/sun/crypto/provider/Cipher \
46    sun/nio/cs/ISO8859x.java
47
48# When adding tests to tier2, make sure they end up in one of the tier2_partX groups
49tier2 = \
50    :tier2_part1 \
51    :tier2_part2 \
52    :tier2_part3
53
54# com/sun/crypto/provider/Cipher is in tier1 because of JDK-8132855
55tier2_part1 = \
56    :jdk_security \
57    -com/sun/crypto/provider/Cipher
58
59# sun/nio/cs/ISO8859x.java and java/nio/Buffer are in tier1 because of JDK-8132854
60tier2_part2 = \
61    :core_tools \
62    :jdk_io \
63    :jdk_nio \
64    -java/nio/Buffer \
65    -sun/nio/cs/ISO8859x.java \
66    :jdk_other \
67    :jdk_text \
68    :jdk_time
69
70tier2_part3 = \
71    :jdk_net
72
73tier3 = \
74    :build \
75    :jdk_vector \
76    :jdk_rmi \
77    :jdk_beans \
78    :jdk_imageio \
79    :jdk_sound \
80    :jdk_client_sanity \
81    :jdk_jfr_tier3
82
83###############################################################################
84#
85# Other test definitions; generally smaller granularity than tiers
86#
87
88# Build source checking
89build = \
90    build
91
92# java.lang package and VM runtime support
93jdk_lang = \
94    java/lang \
95    -java/lang/management \
96    -java/lang/instrument \
97    sun/invoke \
98    sun/misc \
99    sun/reflect \
100    jdk/internal/reflect \
101    jdk/lambda \
102    jdk/internal/loader \
103    jdk/internal/misc \
104    jdk/internal/ref \
105    jdk/internal/jimage \
106    jdk/internal/math \
107    jdk/modules
108
109# All of the java.util package
110jdk_util = \
111    :jdk_util_other \
112    :jdk_collections \
113    :jdk_concurrent \
114    :jdk_stream
115
116# All util components not part of some other util category
117jdk_util_other = \
118    java/util \
119    sun/util \
120    -:jdk_collections \
121    -:jdk_concurrent \
122    -:jdk_stream
123
124# All collections, core and concurrent
125jdk_collections = \
126    :jdk_collections_core \
127    :jdk_concurrent
128
129# java.util.concurrent
130# Includes concurrent collections plus other stuff
131# Maintained by JSR-166 EG (Doug Lea et al)
132jdk_concurrent = \
133    java/util/concurrent
134
135# Java Collections Framework core classes
136jdk_collections_core = \
137    java/util/AbstractCollection \
138    java/util/AbstractList \
139    java/util/AbstractMap \
140    java/util/AbstractSequentialList \
141    java/util/ArrayDeque \
142    java/util/ArrayList \
143    java/util/Arrays \
144    java/util/BitSet \
145    java/util/Collection \
146    java/util/Collections \
147    java/util/Comparator \
148    java/util/Deque \
149    java/util/EnumMap \
150    java/util/EnumSet \
151    java/util/HashMap \
152    java/util/HashSet \
153    java/util/Hashtable \
154    java/util/IdentityHashMap \
155    java/util/Iterator \
156    java/util/LinkedHashMap \
157    java/util/LinkedHashSet \
158    java/util/LinkedList \
159    java/util/List \
160    java/util/Map \
161    java/util/NavigableMap \
162    java/util/PriorityQueue \
163    java/util/TimSort \
164    java/util/TreeMap \
165    java/util/Vector \
166    java/util/WeakHashMap
167
168# java.util.stream (JSR-335)
169jdk_stream = \
170    java/util/Optional \
171    java/util/function \
172    java/util/stream
173
174jdk_math = \
175    java/math
176
177jdk_io = \
178    java/io
179
180jdk_nio = \
181    java/nio \
182    sun/nio \
183    jdk/nio
184
185jdk_net = \
186    java/net \
187    com/sun/net/httpserver \
188    sun/net \
189    jdk/net
190
191jdk_time = \
192    java/time
193
194jdk_rmi = \
195    java/rmi \
196    sun/rmi
197
198jdk_security1 = \
199    java/security
200
201jdk_security2 = \
202    javax/crypto \
203    javax/xml/crypto \
204    com/sun/crypto
205
206jdk_security3 = \
207    javax/security  \
208    -javax/security/auth/kerberos \
209    com/sun/jarsigner \
210    com/sun/security \
211    -com/sun/security/jgss \
212    com/sun/org/apache/xml/internal/security \
213    jdk/security \
214    sun/security \
215    -sun/security/krb5 \
216    -sun/security/jgss \
217    javax/net
218
219jdk_security4 = \
220    com/sun/security/jgss \
221    javax/security/auth/kerberos \
222    sun/security/krb5 \
223    sun/security/jgss
224
225jdk_security = \
226    :jdk_security1 \
227    :jdk_security2 \
228    :jdk_security3 \
229    :jdk_security4
230
231jdk_security_infra = \
232    security/infra/java/security/cert/CertPathValidator/certification
233
234jdk_text = \
235    java/text \
236    sun/text
237
238jdk_management = \
239    java/lang/management \
240    com/sun/management \
241    sun/management \
242    jdk/internal/agent
243
244jdk_instrument = \
245    java/lang/instrument
246
247jdk_jmx = \
248    javax/management \
249    com/sun/jmx
250
251jdk_jdi = \
252    com/sun/jdi
253
254jdk_native_sanity = \
255    native_sanity
256
257# java launcher specific tests.
258jdk_launcher = \
259    tools/launcher \
260    sun/tools
261
262#
263# Tool (and tool API) tests are split into core and svc groups
264#
265core_tools = \
266    tools \
267    jdk/internal/jrtfs \
268    sun/tools/jrunscript
269
270svc_tools = \
271    com/sun/tools/attach \
272    sun/tools \
273    -sun/tools/jrunscript \
274    sun/jvmstat
275
276jdk_tools = \
277    :core_tools \
278    :svc_tools
279
280jdk_jfr = \
281    jdk/jfr
282
283jdk_jfr_tier3 = \
284    jdk/jfr/event/metadata/TestLookForUntestedEvents.java
285
286#
287# Catch-all for other areas with a small number of tests
288#
289jdk_other = \
290    java/sql \
291    javax/sql \
292    javax/transaction \
293    javax/rmi \
294    javax/naming \
295    javax/script \
296    javax/smartcardio \
297    javax/xml \
298    -javax/xml/crypto \
299    jdk/dynalink \
300    jdk/internal/jline \
301    com/sun/jndi \
302    lib/testlibrary
303
304#
305# SCTP is its own group as it is highly sensitive to kernel/network config
306#
307jdk_sctp = \
308    com/sun/nio/sctp
309
310
311#
312# core group to run all core area tests
313#
314jdk_core = \
315    :jdk_lang \
316    :jdk_util \
317    :jdk_math \
318    :jdk_io \
319    :jdk_nio \
320    :jdk_net \
321    :jdk_rmi \
322    :jdk_time \
323    :jdk_security \
324    :jdk_text \
325    :core_tools \
326    :jdk_other
327
328#
329# svc group to run all serviceability area tests
330#
331jdk_svc = \
332    :jdk_management \
333    :jdk_instrument \
334    :jdk_jmx \
335    :jdk_jdi \
336    :jdk_jfr \
337    :svc_tools
338
339jdk_foreign = \
340    java/foreign
341
342jdk_vector = \
343    jdk/incubator/vector
344
345#############################
346
347#
348# Client area groups
349#
350
351jdk_awt = \
352    java/awt \
353    com/apple/eawt \
354    com/apple/laf \
355    sun/awt
356
357jdk_2d = \
358    javax/print \
359    sun/java2d
360
361jdk_beans = \
362    java/beans
363
364jdk_swing = \
365    javax/swing \
366    com/sun/java/swing
367
368jdk_sound = \
369    javax/sound
370
371jdk_imageio = \
372    javax/imageio
373
374jdk_accessibility = \
375    javax/accessibility \
376    com/sun/java/accessibility
377
378jfc_demo = \
379     demo/jfc
380
381jdk_desktop = \
382    :jdk_awt \
383    :jdk_2d \
384    :jdk_beans \
385    :jdk_swing \
386    :jdk_sound \
387    :jdk_imageio \
388    :jdk_accessibility \
389    :jfc_demo \
390    :jdk_client_sanity
391
392# SwingSet3 tests.
393jdk_client_sanity = \
394    sanity/client/SwingSet
395
396# This test group represents a subset of tests which are expected to
397# exercise most of the most commonly used code in Swing applications.
398# New failures in this area may be a problem.
399jdk_swing_core = \
400     :jdk_client_sanity \
401     javax/swing
402
403# The most commonly used printing APIs are included here along with swing core.
404jdk_desktop_core = \
405    :jdk_swing_core \
406    java/awt/print
407
408###############################################################################
409#
410# Serviceability sanity groups
411#
412# These groups specify a subset of Serviceability tests that are supposed to
413# guard against breakage of Serviceability features by other component teams.
414
415jdk_svc_sanity = \
416    :jdk_management_sanity \
417    :jdk_instrument_sanity \
418    :jdk_jmx_sanity \
419    :jdk_jdi_sanity \
420    :jdk_jfr_sanity \
421    :svc_tools_sanity
422
423jdk_management_sanity =
424
425jdk_instrument_sanity =
426
427jdk_jmx_sanity =
428
429jdk_jdi_sanity = \
430    com/sun/jdi/AcceptTimeout.java \
431    com/sun/jdi/AccessSpecifierTest.java \
432    com/sun/jdi/AfterThreadDeathTest.java \
433    com/sun/jdi/ArrayRangeTest.java \
434    com/sun/jdi/ConstantPoolInfo.java \
435    com/sun/jdi/CountFilterTest.java \
436    com/sun/jdi/EarlyReturnNegativeTest.java \
437    com/sun/jdi/EarlyReturnTest.java \
438    com/sun/jdi/FieldWatchpoints.java \
439    com/sun/jdi/FramesTest.java \
440    com/sun/jdi/InstanceFilter.java \
441    com/sun/jdi/InterfaceMethodsTest.java \
442    com/sun/jdi/InvokeTest.java \
443    com/sun/jdi/LocalVariableEqual.java \
444    com/sun/jdi/LocationTest.java \
445    com/sun/jdi/ModificationWatchpoints.java \
446    com/sun/jdi/MonitorEventTest.java \
447    com/sun/jdi/MonitorFrameInfo.java \
448    com/sun/jdi/NullThreadGroupNameTest.java \
449    com/sun/jdi/PopAndStepTest.java \
450    com/sun/jdi/PopAsynchronousTest.java \
451    com/sun/jdi/ProcessAttachTest.java \
452    com/sun/jdi/ReferrersTest.java \
453    com/sun/jdi/RequestReflectionTest.java \
454    com/sun/jdi/ResumeOneThreadTest.java \
455    com/sun/jdi/RunToExit.java \
456    com/sun/jdi/SourceNameFilterTest.java \
457    com/sun/jdi/VarargsTest.java \
458    com/sun/jdi/Vars.java \
459    com/sun/jdi/redefineMethod/RedefineTest.java \
460    com/sun/jdi/sde/MangleTest.java \
461    com/sun/jdi/sde/TemperatureTableTest.java
462
463jdk_jfr_sanity = \
464    jdk/jfr/api/recording/event/TestLoadEventAfterStart.java \
465    jdk/jfr/api/recording/state/TestState.java \
466    jdk/jfr/event/os/TestCPULoad.java \
467    jdk/jfr/event/allocation/TestObjectAllocationSampleEvent.java \
468    jdk/jfr/jcmd/TestJcmdStartStopDefault.java \
469    jdk/jfr/event/io/TestFileStreamEvents.java \
470    jdk/jfr/event/compiler/TestCompilerCompile.java \
471    jdk/jfr/event/gc/collection/TestGCGarbageCollectionEvent.java \
472    jdk/jfr/event/runtime/TestClassLoadEvent.java \
473    jdk/jfr/event/runtime/TestJavaBlockedEvent.java \
474    jdk/jfr/event/gc/collection/TestGCWithFasttime.java \
475    jdk/jfr/event/gc/configuration/TestGCConfigurationEvent.java \
476    jdk/jfr/event/metadata/TestDefaultConfigurations.java \
477    jdk/jfr/startupargs/TestDumpOnExit.java \
478    jdk/jfr/api/consumer/recordingstream/TestBasics.java
479
480svc_tools_sanity =
481
482#############################
483#
484# Stable test groups
485#
486
487jdk_stable = \
488    :jdk_core \
489    :jdk_svc \
490    :jdk_beans \
491    :jdk_imageio \
492    :jdk_sound \
493    :jdk_sctp \
494    javax/accessibility \
495    com/sun/java/swing
496
497needs_g1gc = \
498  jdk/jfr/event/gc/refstat/TestRefStatEventWithG1ConcurrentMark.java \
499  jdk/jfr/event/gc/refstat/TestRefStatEventWithG1FullCollection.java \
500  jdk/jfr/event/gc/refstat/TestRefStatEventWithG1New.java \
501  jdk/jfr/event/gc/detailed/TestEvacuationFailedEvent.java \
502  jdk/jfr/event/gc/detailed/TestEvacuationInfoEvent.java \
503  jdk/jfr/event/gc/detailed/TestG1ConcurrentModeFailureEvent.java \
504  jdk/jfr/event/gc/collection/TestGCCauseWithG1ConcurrentMark.java \
505  jdk/jfr/event/gc/collection/TestGCCauseWithG1FullCollection.java \
506  jdk/jfr/event/gc/collection/TestYoungGarbageCollectionEventWithG1New.java \
507  jdk/jfr/event/gc/collection/TestGCEventMixedWithG1FullCollection.java \
508  jdk/jfr/event/gc/collection/TestGCEventMixedWithG1ConcurrentMark.java \
509  jdk/jfr/event/gc/collection/TestG1ParallelPhases.java \
510  jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1FullCollection.java \
511  jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1ConcurrentMark.java \
512  jdk/jfr/event/gc/heapsummary/TestHeapSummaryEventG1.java
513
514jdk_core_manual = \
515    :jdk_core_manual_no_input \
516    :jdk_core_manual_no_input_security \
517    :jdk_core_manual_requires_human_input
518
519jdk_core_manual_no_input = \
520    java/net/HugeDataTransferTest.java \
521    java/net/httpclient/BodyProcessorInputStreamTest.java \
522    java/net/httpclient/HttpInputStreamTest.java \
523    java/nio/MappedByteBuffer/PmemTest.java \
524    java/rmi/activation/nonLocalActivation/NonLocalActivationTest.java \
525    java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java \
526    java/util/zip/ZipFile/TestZipFile.java \
527    javax/net/ssl/compatibility/AlpnTest.java \
528    javax/net/ssl/compatibility/BasicConnectTest.java \
529    javax/net/ssl/compatibility/HrrTest.java \
530    javax/net/ssl/compatibility/SniTest.java \
531    jdk/nio/zipfs/TestLocOffsetFromZip64EF.java
532
533jdk_core_manual_no_input_security = \
534    com/sun/crypto/provider/Cipher/DES/PerformanceTest.java \
535    com/sun/security/auth/callback/TextCallbackHandler/Default.java \
536    com/sun/security/auth/callback/TextCallbackHandler/Password.java \
537    com/sun/security/sasl/gsskerb/AuthOnly.java \
538    com/sun/security/sasl/gsskerb/ConfSecurityLayer.java \
539    com/sun/security/sasl/gsskerb/NoSecurityLayer.java \
540    sun/security/provider/PolicyFile/GrantAllPermToExtWhenNoPolicy.java \
541    sun/security/provider/PolicyParser/ExtDirs.java \
542    sun/security/provider/PolicyParser/ExtDirsChange.java \
543    sun/security/provider/PolicyParser/ExtDirsDefaultPolicy.java \
544    sun/security/provider/PolicyParser/PrincipalExpansionError.java \
545    sun/security/smartcardio/TestChannel.java \
546    sun/security/smartcardio/TestConnect.java \
547    sun/security/smartcardio/TestConnectAgain.java \
548    sun/security/smartcardio/TestControl.java \
549    sun/security/smartcardio/TestDefault.java \
550    sun/security/smartcardio/TestDirect.java \
551    sun/security/smartcardio/TestExclusive.java \
552    sun/security/smartcardio/TestMultiplePresent.java \
553    sun/security/smartcardio/TestPresent.java \
554    sun/security/smartcardio/TestTransmit.java \
555    sun/security/tools/jarsigner/compatibility/Compatibility.java \
556    sun/security/tools/keytool/i18n.java
557
558jdk_core_manual_requires_human_input = \
559    com/sun/jndi/dns/Test6991580.java \
560    java/util/TimeZone/DefaultTimeZoneTest.java
561
562
563