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