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