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