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