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