1 # Copyright (c) 2013, 2025, 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 # All tests
26 #
27
28 all = \
29 :jdk_all
30
31 jdk_all = \
32 /
33
34 ###############################################################################
35 #
36 # Tiered testing definitions
37 #
38
39 # When adding tests to tier1, make sure they end up in one of the tier1_partX groups
40 tier1 = \
41 :tier1_part1 \
42 :tier1_part2 \
43 :tier1_part3
44
45 tier1_part1 = \
46 :jdk_lang
47
48 tier1_part1_no_valhalla = \
49 :tier1_part1 \
50 -:jdk_valhalla
51
52 tier1_part2 = \
53 :jdk_util
54
55 tier1_part2_no_valhalla = \
56 :tier1_part2 \
57 -:jdk_valhalla
58
59 tier1_part3 = \
60 :jdk_math \
61 :jdk_svc_sanity \
62 :jdk_foreign \
63 :jdk_vector_sanity \
64 java/nio/Buffer \
65 com/sun/crypto/provider/Cipher \
66 jdk/classfile \
67 sun/nio/cs/ISO8859x.java
68
69 tier1_part3_no_valhalla = \
70 :tier1_part3 \
71 -:jdk_valhalla
72
73 tier1_no_valhalla = \
74 :tier1 \
75 -:jdk_valhalla
76
77 # When adding tests to tier2, make sure they end up in one of the tier2_partX groups
78 tier2 = \
79 :tier2_part1 \
80 :tier2_part2 \
81 :tier2_part3
82
83 # com/sun/crypto/provider/Cipher is in tier1 because of JDK-8132855
84 tier2_part1 = \
85 :jdk_security \
86 -com/sun/crypto/provider/Cipher
87
88 # sun/nio/cs/ISO8859x.java and java/nio/Buffer are in tier1 because of JDK-8132854
89 tier2_part2 = \
90 :core_tools \
91 :jdk_io \
92 :jdk_nio \
93 -java/nio/Buffer \
94 -sun/nio/cs/ISO8859x.java \
95 :jdk_other \
96 :jdk_text \
97 :jdk_time
98
99 tier2_part3 = \
100 :jdk_net
101
102 # These sub groups of tier3 allow for running certain tests separately from the
103 # rest. When adding tests to tier3, in most cases they should be added to
104 # tier3_part1.
105 tier3 = \
106 :tier3_part1 \
107 :tier3_jpackage
108
109 tier3_part1 = \
110 :build \
111 :jdk_vector \
112 -:jdk_vector_sanity \
113 :jdk_rmi \
114 :jdk_svc \
115 -:jdk_svc_sanity \
116 -:svc_tools \
117 :jdk_since_checks
118
119 # The jpackage tests on Windows require permissions that aren't always present
120 tier3_jpackage = \
121 :jdk_jpackage
122
123 # Everything not in other tiers
124 tier4 = \
125 / \
126 -:tier1 \
127 -:tier2 \
128 -:tier3 \
129 :jdk_foreign_stress
130
131 ###############################################################################
132 #
133 # Other test definitions; generally smaller granularity than tiers
134 #
135
136 # Build source checking
137 build = \
138 build
139
140 # java.lang package and VM runtime support
141 jdk_lang = \
142 java/lang \
143 -java/lang/management \
144 -java/lang/instrument \
145 sun/invoke \
146 sun/misc \
147 sun/reflect \
148 jdk/internal/reflect \
149 jdk/lambda \
150 jdk/internal/loader \
151 jdk/internal/misc \
152 jdk/internal/ref \
153 jdk/internal/jimage \
154 jdk/internal/math \
155 jdk/internal/vm \
156 jdk/modules \
157 jni/nullCaller \
158 valhalla
159
160 # valhalla lworld tests
161 jdk_valhalla = \
162 java/lang/invoke \
163 valhalla \
164 java/lang/instrument/valhalla \
165 java/lang/reflect/valhalla
166
167
168 # All of the java.util package
169 jdk_util = \
170 :jdk_util_other \
171 :jdk_collections \
172 :jdk_concurrent \
173 :jdk_stream
174
175 # All util components not part of some other util category
176 jdk_util_other = \
177 java/util \
178 sun/util \
179 jdk/internal/util \
180 -:jdk_collections \
181 -:jdk_concurrent \
182 -:jdk_stream
183
184 # All collections, core and concurrent
185 jdk_collections = \
186 :jdk_collections_core \
187 :jdk_concurrent
188
189 # java.util.concurrent
190 # Includes concurrent collections plus other stuff
191 # Maintained by JSR-166 EG (Doug Lea et al)
192 jdk_concurrent = \
193 java/util/concurrent
194
195 # Java Collections Framework core classes
196 jdk_collections_core = \
197 java/util/AbstractCollection \
198 java/util/AbstractList \
199 java/util/AbstractMap \
200 java/util/AbstractSequentialList \
201 java/util/ArrayDeque \
202 java/util/ArrayList \
203 java/util/Arrays \
204 java/util/BitSet \
205 java/util/Collection \
206 java/util/Collections \
207 java/util/Comparator \
208 java/util/Deque \
209 java/util/EnumMap \
210 java/util/EnumSet \
211 java/util/HashMap \
212 java/util/HashSet \
213 java/util/Hashtable \
214 java/util/IdentityHashMap \
215 java/util/Iterator \
216 java/util/LinkedHashMap \
217 java/util/LinkedHashSet \
218 java/util/LinkedList \
219 java/util/List \
220 java/util/Map \
221 java/util/NavigableMap \
222 java/util/PriorityQueue \
223 java/util/SequencedCollection \
224 java/util/TimSort \
225 java/util/TreeMap \
226 java/util/Vector \
227 java/util/WeakHashMap
228
229 # java.util.stream (JSR-335)
230 jdk_stream = \
231 java/util/Optional \
232 java/util/function \
233 java/util/stream
234
235 jdk_math = \
236 java/math
237
238 jdk_io = \
239 java/io
240
241 jdk_nio = \
242 java/nio \
243 sun/nio \
244 jdk/nio
245
246 jdk_net = \
247 java/net \
248 com/sun/net/httpserver \
249 sun/net \
250 jdk/net
251
252 jdk_time = \
253 java/time
254
255 jdk_rmi = \
256 java/rmi \
257 sun/rmi
258
259 jdk_security1 = \
260 java/security
261
262 jdk_security2 = \
263 javax/crypto \
264 javax/xml/crypto \
265 com/sun/org/apache/xml/internal/security \
266 com/sun/crypto
267
268 jdk_security3 = \
269 javax/security \
270 -javax/security/auth/kerberos \
271 com/sun/security \
272 -com/sun/security/jgss \
273 jdk/security \
274 sun/security \
275 -sun/security/krb5 \
276 -sun/security/jgss \
277 javax/net
278
279 jdk_security4 = \
280 com/sun/security/jgss \
281 javax/security/auth/kerberos \
282 sun/security/krb5 \
283 sun/security/jgss
284
285 jdk_security = \
286 :jdk_security1 \
287 :jdk_security2 \
288 :jdk_security3 \
289 :jdk_security4
290
291 # Tests in this group are manual as they depend on external infra
292 # and may fail with external reasons, for instance - change in CA test portal.
293 jdk_security_infra = \
294 security/infra
295
296 jdk_text = \
297 java/text \
298 sun/text
299
300 jdk_management = \
301 java/lang/management \
302 jdk/management \
303 com/sun/management \
304 sun/management \
305 jdk/internal/agent
306
307 jdk_instrument = \
308 java/lang/instrument
309
310 jdk_jmx = \
311 javax/management \
312 com/sun/jmx
313
314 jdk_jdi = \
315 com/sun/jdi
316
317 jdk_native_sanity = \
318 native_sanity
319
320 # java launcher specific tests.
321 jdk_launcher = \
322 tools/launcher \
323 sun/tools
324
325 jdk_loom = \
326 com/sun/management/HotSpotDiagnosticMXBean \
327 com/sun/management/ThreadMXBean \
328 jdk/management/VirtualThreadSchedulerMXBean \
329 java/lang/Thread \
330 java/lang/ThreadGroup \
331 java/lang/management/ThreadMXBean \
332 java/util/concurrent \
333 java/net/vthread \
334 java/nio/channels/vthread \
335 jdk/internal/misc/ThreadFlock \
336 jdk/internal/vm/Continuation \
337 jdk/jfr/threading
338
339 #
340 # Tool (and tool API) tests are mostly split into core and svc groups
341 #
342 core_tools = \
343 tools \
344 -tools/jpackage \
345 jdk/internal/jrtfs
346
347 svc_tools = \
348 com/sun/tools/attach \
349 sun/tools \
350 sun/jvmstat
351
352 jdk_tools = \
353 :core_tools \
354 :svc_tools \
355 :jdk_jpackage
356
357 jdk_jfr = \
358 jdk/jfr
359
360 jdk_jpackage = \
361 tools/jpackage
362
363 #
364 # Catch-all for other areas with a small number of tests
365 #
366 jdk_other = \
367 java/sql \
368 javax/sql \
369 javax/transaction \
370 javax/rmi \
371 javax/naming \
372 javax/script \
373 javax/smartcardio \
374 javax/xml \
375 -javax/xml/crypto \
376 jdk/dynalink \
377 jdk/internal/jline \
378 com/sun/jndi \
379 lib/testlibrary
380
381 #
382 # SCTP is its own group as it is highly sensitive to kernel/network config
383 #
384 jdk_sctp = \
385 com/sun/nio/sctp
386
387
388 #
389 # core group to run all core area tests
390 #
391 jdk_core = \
392 :jdk_lang \
393 :jdk_util \
394 :jdk_math \
395 :jdk_io \
396 :jdk_nio \
397 :jdk_net \
398 :jdk_rmi \
399 :jdk_time \
400 :jdk_security \
401 :jdk_text \
402 :core_tools \
403 :jdk_other
404
405 #
406 # svc group to run all serviceability area tests
407 #
408 jdk_svc = \
409 :jdk_management \
410 :jdk_instrument \
411 :jdk_jmx \
412 :jdk_jdi \
413 :jdk_jfr \
414 :svc_tools
415
416 jdk_foreign = \
417 java/foreign \
418 jdk/internal/reflect/CallerSensitive/CheckCSMs.java \
419 -java/foreign/TestMatrix.java \
420 -java/foreign/TestUpcallStress.java
421
422 jdk_foreign_stress = \
423 java/foreign/TestUpcallStress.java
424
425 jdk_vector = \
426 jdk/incubator/vector
427
428 jdk_vector_sanity = \
429 jdk/incubator/vector/PreferredSpeciesTest.java \
430 jdk/incubator/vector/VectorHash.java \
431 jdk/incubator/vector/VectorRuns.java
432
433 #############################
434
435 #
436 # Client area groups
437 #
438
439 jdk_awt = \
440 java/awt \
441 com/apple/eawt \
442 com/apple/laf \
443 sun/awt
444
445 jdk_2d = \
446 javax/print \
447 sun/java2d
448
449 jdk_beans = \
450 java/beans
451
452 jdk_swing = \
453 javax/swing \
454 com/sun/java/swing
455
456 jdk_sound = \
457 javax/sound
458
459 jdk_imageio = \
460 javax/imageio
461
462 jdk_accessibility = \
463 javax/accessibility
464
465 jfc_demo = \
466 demo/jfc
467
468 jdk_editpad = \
469 jdk/editpad
470
471 jdk_desktop = \
472 :jdk_desktop_part1 \
473 :jdk_desktop_part2 \
474 :jdk_desktop_part3
475
476 jdk_desktop_part1 = \
477 :jdk_client_sanity \
478 :jdk_swing \
479 :jdk_2d \
480 :jdk_sound \
481 :jdk_imageio \
482 :jdk_editpad \
483 :jfc_demo \
484 :jdk_accessibility \
485 :jdk_beans
486
487 jdk_desktop_part2 = \
488 :jdk_awt \
489 -java/awt/Component \
490 -java/awt/Modal \
491 -java/awt/datatransfer \
492 -java/awt/Window
493
494 jdk_desktop_part3 = \
495 java/awt/Component \
496 java/awt/Modal \
497 java/awt/datatransfer \
498 java/awt/Window
499
500 # SwingSet3 tests.
501 jdk_client_sanity = \
502 sanity/client/SwingSet
503
504 # This test group represents a subset of tests which are expected to
505 # exercise most of the most commonly used code in Swing applications.
506 # New failures in this area may be a problem.
507 jdk_swing_core = \
508 :jdk_client_sanity \
509 javax/swing
510
511 # The most commonly used printing APIs are included here along with swing core.
512 jdk_desktop_core = \
513 :jdk_swing_core \
514 java/awt/print
515
516 ###############################################################################
517 #
518 # Serviceability sanity groups
519 #
520 # These groups specify a subset of Serviceability tests that are supposed to
521 # guard against breakage of Serviceability features by other component teams.
522
523 jdk_svc_sanity = \
524 :jdk_management_sanity \
525 :jdk_instrument_sanity \
526 :jdk_jmx_sanity \
527 :jdk_jdi_sanity \
528 :jdk_jfr_sanity \
529 :svc_tools_sanity
530
531 jdk_management_sanity =
532
533 jdk_instrument_sanity =
534
535 jdk_jmx_sanity =
536
537 jdk_jdi_sanity = \
538 com/sun/jdi/AcceptTimeout.java \
539 com/sun/jdi/AccessSpecifierTest.java \
540 com/sun/jdi/AfterThreadDeathTest.java \
541 com/sun/jdi/ArrayRangeTest.java \
542 com/sun/jdi/ConstantPoolInfo.java \
543 com/sun/jdi/CountFilterTest.java \
544 com/sun/jdi/EarlyReturnNegativeTest.java \
545 com/sun/jdi/EarlyReturnTest.java \
546 com/sun/jdi/FieldWatchpoints.java \
547 com/sun/jdi/FramesTest.java \
548 com/sun/jdi/InstanceFilter.java \
549 com/sun/jdi/InterfaceMethodsTest.java \
550 com/sun/jdi/InvokeTest.java \
551 com/sun/jdi/LocalVariableEqual.java \
552 com/sun/jdi/LocationTest.java \
553 com/sun/jdi/ModificationWatchpoints.java \
554 com/sun/jdi/MonitorEventTest.java \
555 com/sun/jdi/MonitorFrameInfo.java \
556 com/sun/jdi/NullThreadGroupNameTest.java \
557 com/sun/jdi/PopAndStepTest.java \
558 com/sun/jdi/PopAsynchronousTest.java \
559 com/sun/jdi/ProcessAttachTest.java \
560 com/sun/jdi/ReferrersTest.java \
561 com/sun/jdi/RequestReflectionTest.java \
562 com/sun/jdi/ResumeOneThreadTest.java \
563 com/sun/jdi/RunToExit.java \
564 com/sun/jdi/SourceNameFilterTest.java \
565 com/sun/jdi/SuspendAfterDeath.java \
566 com/sun/jdi/VarargsTest.java \
567 com/sun/jdi/Vars.java \
568 com/sun/jdi/redefineMethod/RedefineTest.java \
569 com/sun/jdi/sde/MangleTest.java \
570 com/sun/jdi/sde/TemperatureTableTest.java
571
572 jdk_jfr_sanity = \
573 jdk/jfr/api/recording/event/TestLoadEventAfterStart.java \
574 jdk/jfr/api/recording/state/TestState.java \
575 jdk/jfr/event/os/TestCPULoad.java \
576 jdk/jfr/event/allocation/TestObjectAllocationSampleEvent.java \
577 jdk/jfr/jcmd/TestJcmdStartStopDefault.java \
578 jdk/jfr/event/io/TestFileStreamEvents.java \
579 jdk/jfr/event/compiler/TestCompilerCompile.java \
580 jdk/jfr/event/gc/collection/TestGCGarbageCollectionEvent.java \
581 jdk/jfr/event/runtime/TestClassLoadEvent.java \
582 jdk/jfr/event/runtime/TestJavaBlockedEvent.java \
583 jdk/jfr/event/gc/collection/TestGCWithFasttime.java \
584 jdk/jfr/event/gc/configuration/TestGCConfigurationEvent.java \
585 jdk/jfr/event/metadata/TestDefaultConfigurations.java \
586 jdk/jfr/startupargs/TestDumpOnExit.java \
587 jdk/jfr/api/consumer/recordingstream/TestBasics.java
588
589 svc_tools_sanity =
590
591 #############################
592 #
593 # Stable test groups
594 #
595
596 jdk_stable = \
597 :jdk_core \
598 :jdk_svc \
599 :jdk_beans \
600 :jdk_imageio \
601 :jdk_sound \
602 :jdk_sctp \
603 javax/accessibility \
604 com/sun/java/swing
605
606 needs_g1gc = \
607 jdk/jfr/event/gc/refstat/TestRefStatEventWithG1ConcurrentMark.java \
608 jdk/jfr/event/gc/refstat/TestRefStatEventWithG1FullCollection.java \
609 jdk/jfr/event/gc/refstat/TestRefStatEventWithG1New.java \
610 jdk/jfr/event/gc/detailed/TestEvacuationFailedEvent.java \
611 jdk/jfr/event/gc/detailed/TestEvacuationInfoEvent.java \
612 jdk/jfr/event/gc/detailed/TestG1ConcurrentModeFailureEvent.java \
613 jdk/jfr/event/gc/collection/TestGCCauseWithG1ConcurrentMark.java \
614 jdk/jfr/event/gc/collection/TestGCCauseWithG1FullCollection.java \
615 jdk/jfr/event/gc/collection/TestYoungGarbageCollectionEventWithG1New.java \
616 jdk/jfr/event/gc/collection/TestGCEventMixedWithG1FullCollection.java \
617 jdk/jfr/event/gc/collection/TestGCEventMixedWithG1ConcurrentMark.java \
618 jdk/jfr/event/gc/collection/TestG1ParallelPhases.java \
619 jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1FullCollection.java \
620 jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1ConcurrentMark.java \
621 jdk/jfr/event/gc/heapsummary/TestHeapSummaryEventG1.java
622
623 # This set of tests will be executed in an ipv6 only environment
624
625 jdk_ipv6_only = \
626 :jdk_net \
627 :jdk_nio_networkchannel
628
629 jdk_nio_networkchannel = \
630 java/nio/channels/AsyncCloseAndInterrupt.java \
631 java/nio/channels/AsynchronousServerSocketChannel \
632 java/nio/channels/AsynchronousSocketChannel \
633 java/nio/channels/DatagramChannel \
634 java/nio/channels/ServerSocketChannel \
635 java/nio/channels/SocketChannel \
636 java/nio/channels/Selector \
637 java/nio/channels/etc
638
639 jdk_core_manual = \
640 :jdk_core_manual_no_input \
641 :jdk_security_manual_no_input \
642 :jdk_core_manual_interactive \
643 :jdk_security_manual_interactive
644
645 jdk_core_manual_no_input = \
646 java/net/HugeDataTransferTest.java \
647 java/net/httpclient/BodyProcessorInputStreamTest.java \
648 java/net/httpclient/HttpInputStreamTest.java \
649 java/util/zip/ZipFile/TestZipFile.java \
650 javax/net/ssl/compatibility/AlpnTest.java \
651 javax/net/ssl/compatibility/BasicConnectTest.java \
652 javax/net/ssl/compatibility/HrrTest.java \
653 javax/net/ssl/compatibility/SniTest.java \
654 jdk/nio/zipfs/LargeCompressedEntrySizeTest.java \
655 java/util/ArrayList/Bug8146568.java \
656 java/util/Vector/Bug8148174.java \
657 com/sun/net/httpserver/simpleserver/CommandLinePortNotSpecifiedTest.java \
658 com/sun/net/httpserver/simpleserver/jwebserver/CommandLinePortNotSpecifiedTest.java \
659 com/sun/net/httpserver/simpleserver/DocRootDirPermissionsWinTest.java \
660 javax/xml/jaxp/datatype/8033980/GregorianCalAndDurSerDataUtil.java \
661 java/util/zip/ZipFile/CenSizeMaximum.java
662
663 jdk_security_manual_no_input = \
664 :jdk_security_infra \
665 com/sun/crypto/provider/Cipher/AEAD/GCMIncrementByte4.java \
666 com/sun/crypto/provider/Cipher/AEAD/GCMIncrementDirect4.java \
667 sun/security/smartcardio/TestChannel.java \
668 sun/security/smartcardio/TestConnect.java \
669 sun/security/smartcardio/TestConnectAgain.java \
670 sun/security/smartcardio/TestControl.java \
671 sun/security/smartcardio/TestDefault.java \
672 sun/security/smartcardio/TestDirect.java \
673 sun/security/smartcardio/TestExclusive.java \
674 sun/security/smartcardio/TestMultiplePresent.java \
675 sun/security/smartcardio/TestPresent.java \
676 sun/security/smartcardio/TestTransmit.java \
677 sun/security/tools/jarsigner/compatibility/Compatibility.java \
678 sun/security/tools/keytool/ListKeyChainStore.java
679
680 jdk_core_manual_interactive = \
681 com/sun/jndi/dns/Test6991580.java \
682 java/util/TimeZone/DefaultTimeZoneTest.java \
683 java/nio/MappedByteBuffer/PmemTest.java \
684 java/rmi/registry/nonLocalRegistry/NonLocalRegistryTest.java \
685 java/rmi/registry/nonLocalRegistry/NonLocalSkeletonTest.java \
686 java/foreign/TestMatrix.java \
687 java/nio/channels/FileChannel/BlockDeviceSize.java
688
689 jdk_security_manual_interactive = \
690 sun/security/tools/keytool/i18n.java \
691 com/sun/security/auth/callback/TextCallbackHandler/Password.java \
692 sun/security/krb5/config/native/TestDynamicStore.java
693
694 # Test sets for running inside container environment
695 jdk_containers_extended = \
696 :jdk_io \
697 :jdk_nio \
698 :jdk_svc
699
700 jdk_core_no_security = \
701 :jdk_core \
702 -:jdk_security
703
704 # Set of tests for `@since` checks in source code documentation
705 jdk_since_checks = \
706 tools/sincechecker/