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