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