1 #  Copyright (c) 2013, 2020, 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_rmi \
  76     :jdk_beans \
  77     :jdk_imageio \
  78     :jdk_sound \
  79     :jdk_client_sanity \
  80     :jdk_jfr_tier3
  81 
  82 ###############################################################################
  83 #
  84 # Other test definitions; generally smaller granularity than tiers
  85 #
  86 
  87 # Build source checking
  88 build = \
  89     build
  90 
  91 # java.lang package and VM runtime support
  92 jdk_lang = \
  93     java/lang \
  94     -java/lang/management \
  95     -java/lang/instrument \
  96     sun/invoke \
  97     sun/misc \
  98     sun/reflect \
  99     jdk/internal/reflect \
 100     jdk/lambda \
 101     jdk/internal/loader \
 102     jdk/internal/misc \
 103     jdk/internal/ref \
 104     jdk/internal/jimage \
 105     jdk/internal/math \
 106     jdk/modules
 107 
 108 # All of the java.util package
 109 jdk_util = \
 110     :jdk_util_other \
 111     :jdk_collections \
 112     :jdk_concurrent \
 113     :jdk_stream
 114 
 115 # All util components not part of some other util category
 116 jdk_util_other = \
 117     java/util \
 118     sun/util \
 119     -:jdk_collections \
 120     -:jdk_concurrent \
 121     -:jdk_stream
 122 
 123 # All collections, core and concurrent
 124 jdk_collections = \
 125     :jdk_collections_core \
 126     :jdk_concurrent
 127 
 128 # java.util.concurrent
 129 # Includes concurrent collections plus other stuff
 130 # Maintained by JSR-166 EG (Doug Lea et al)
 131 jdk_concurrent = \
 132     java/util/concurrent
 133 
 134 # Java Collections Framework core classes
 135 jdk_collections_core = \
 136     java/util/AbstractCollection \
 137     java/util/AbstractList \
 138     java/util/AbstractMap \
 139     java/util/AbstractSequentialList \
 140     java/util/ArrayDeque \
 141     java/util/ArrayList \
 142     java/util/Arrays \
 143     java/util/BitSet \
 144     java/util/Collection \
 145     java/util/Collections \
 146     java/util/Comparator \
 147     java/util/Deque \
 148     java/util/EnumMap \
 149     java/util/EnumSet \
 150     java/util/HashMap \
 151     java/util/HashSet \
 152     java/util/Hashtable \
 153     java/util/IdentityHashMap \
 154     java/util/Iterator \
 155     java/util/LinkedHashMap \
 156     java/util/LinkedHashSet \
 157     java/util/LinkedList \
 158     java/util/List \
 159     java/util/Map \
 160     java/util/NavigableMap \
 161     java/util/PriorityQueue \
 162     java/util/TimSort \
 163     java/util/TreeMap \
 164     java/util/Vector \
 165     java/util/WeakHashMap
 166 
 167 # java.util.stream (JSR-335)
 168 jdk_stream = \
 169     java/util/Optional \
 170     java/util/function \
 171     java/util/stream
 172 
 173 jdk_math = \
 174     java/math
 175 
 176 jdk_io = \
 177     java/io
 178 
 179 jdk_nio = \
 180     java/nio \
 181     sun/nio \
 182     jdk/nio
 183 
 184 jdk_net = \
 185     java/net \
 186     com/sun/net/httpserver \
 187     sun/net \
 188     jdk/net
 189 
 190 jdk_time = \
 191     java/time
 192 
 193 jdk_rmi = \
 194     java/rmi \
 195     sun/rmi
 196 
 197 jdk_security1 = \
 198     java/security
 199 
 200 jdk_security2 = \
 201     javax/crypto \
 202     javax/xml/crypto \
 203     com/sun/crypto
 204 
 205 jdk_security3 = \
 206     javax/security  \
 207     -javax/security/auth/kerberos \
 208     com/sun/jarsigner \
 209     com/sun/security \
 210     -com/sun/security/jgss \
 211     com/sun/org/apache/xml/internal/security \
 212     jdk/security \
 213     sun/security \
 214     -sun/security/krb5 \
 215     -sun/security/jgss \
 216     javax/net
 217 
 218 jdk_security4 = \
 219     com/sun/security/jgss \
 220     javax/security/auth/kerberos \
 221     sun/security/krb5 \
 222     sun/security/jgss
 223 
 224 jdk_security = \
 225     :jdk_security1 \
 226     :jdk_security2 \
 227     :jdk_security3 \
 228     :jdk_security4
 229 
 230 jdk_security_infra = \
 231     security/infra/java/security/cert/CertPathValidator/certification
 232 
 233 jdk_text = \
 234     java/text \
 235     sun/text
 236 
 237 jdk_management = \
 238     java/lang/management \
 239     com/sun/management \
 240     sun/management \
 241     jdk/internal/agent
 242 
 243 jdk_instrument = \
 244     java/lang/instrument
 245 
 246 jdk_jmx = \
 247     javax/management \
 248     com/sun/jmx
 249 
 250 jdk_jdi = \
 251     com/sun/jdi
 252 
 253 jdk_native_sanity = \
 254     native_sanity
 255 
 256 # java launcher specific tests.
 257 jdk_launcher = \
 258     tools/launcher \
 259     sun/tools
 260 
 261 #
 262 # Tool (and tool API) tests are split into core and svc groups
 263 #
 264 core_tools = \
 265     tools \
 266     jdk/internal/jrtfs \
 267     sun/tools/jrunscript
 268 
 269 svc_tools = \
 270     com/sun/tools/attach \
 271     sun/tools \
 272     -sun/tools/jrunscript \
 273     sun/jvmstat
 274 
 275 jdk_tools = \
 276     :core_tools \
 277     :svc_tools
 278 
 279 jdk_jfr = \
 280     jdk/jfr
 281 
 282 jdk_jfr_tier3 = \
 283     jdk/jfr/event/metadata/TestLookForUntestedEvents.java
 284 
 285 jdk_jep8249196 = \
 286     java/lang/RuntimeTests/Ofs/ \
 287     java/lang/instrument/NullGetObjectSizeTest.java \
 288     java/lang/instrument/GetObjectSizeTest.java \
 289     java/lang/instrument/StressGetObjectSizeTest.sh
 290 
 291 #
 292 # Catch-all for other areas with a small number of tests
 293 #
 294 jdk_other = \
 295     java/sql \
 296     javax/sql \
 297     javax/transaction \
 298     javax/rmi \
 299     javax/naming \
 300     javax/script \
 301     javax/smartcardio \
 302     javax/xml \
 303     -javax/xml/crypto \
 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 
 346 #############################
 347 
 348 #
 349 # Client area groups
 350 #
 351 
 352 jdk_awt = \
 353     java/awt \
 354     com/apple/eawt \
 355     com/apple/laf \
 356     sun/awt
 357 
 358 jdk_2d = \
 359     javax/print \
 360     sun/java2d
 361 
 362 jdk_beans = \
 363     java/beans
 364 
 365 jdk_swing = \
 366     javax/swing \
 367     com/sun/java/swing
 368 
 369 jdk_sound = \
 370     javax/sound
 371 
 372 jdk_imageio = \
 373     javax/imageio
 374 
 375 jdk_accessibility = \
 376     javax/accessibility \
 377     com/sun/java/accessibility
 378 
 379 jfc_demo = \
 380      demo/jfc
 381 
 382 jdk_desktop = \
 383     :jdk_awt \
 384     :jdk_2d \
 385     :jdk_beans \
 386     :jdk_swing \
 387     :jdk_sound \
 388     :jdk_imageio \
 389     :jdk_accessibility \
 390     :jfc_demo \
 391     :jdk_client_sanity
 392 
 393 # SwingSet3 tests.
 394 jdk_client_sanity = \
 395     sanity/client/SwingSet
 396 
 397 # This test group represents a subset of tests which are expected to
 398 # exercise most of the most commonly used code in Swing applications.
 399 # New failures in this area may be a problem.
 400 jdk_swing_core = \
 401      :jdk_client_sanity \
 402      javax/swing
 403 
 404 # The most commonly used printing APIs are included here along with swing core.
 405 jdk_desktop_core = \
 406     :jdk_swing_core \
 407     java/awt/print
 408 
 409 ###############################################################################
 410 #
 411 # Serviceability sanity groups
 412 #
 413 # These groups specify a subset of Serviceability tests that are supposed to
 414 # guard against breakage of Serviceability features by other component teams.
 415 
 416 jdk_svc_sanity = \
 417     :jdk_management_sanity \
 418     :jdk_instrument_sanity \
 419     :jdk_jmx_sanity \
 420     :jdk_jdi_sanity \
 421     :jdk_jfr_sanity \
 422     :svc_tools_sanity
 423 
 424 jdk_management_sanity =
 425 
 426 jdk_instrument_sanity =
 427 
 428 jdk_jmx_sanity =
 429 
 430 jdk_jdi_sanity = \
 431     com/sun/jdi/AcceptTimeout.java \
 432     com/sun/jdi/AccessSpecifierTest.java \
 433     com/sun/jdi/AfterThreadDeathTest.java \
 434     com/sun/jdi/ArrayRangeTest.java \
 435     com/sun/jdi/ConstantPoolInfo.java \
 436     com/sun/jdi/CountFilterTest.java \
 437     com/sun/jdi/EarlyReturnNegativeTest.java \
 438     com/sun/jdi/EarlyReturnTest.java \
 439     com/sun/jdi/FieldWatchpoints.java \
 440     com/sun/jdi/FramesTest.java \
 441     com/sun/jdi/InstanceFilter.java \
 442     com/sun/jdi/InterfaceMethodsTest.java \
 443     com/sun/jdi/InvokeTest.java \
 444     com/sun/jdi/LocalVariableEqual.java \
 445     com/sun/jdi/LocationTest.java \
 446     com/sun/jdi/ModificationWatchpoints.java \
 447     com/sun/jdi/MonitorEventTest.java \
 448     com/sun/jdi/MonitorFrameInfo.java \
 449     com/sun/jdi/NullThreadGroupNameTest.java \
 450     com/sun/jdi/PopAndStepTest.java \
 451     com/sun/jdi/PopAsynchronousTest.java \
 452     com/sun/jdi/ProcessAttachTest.java \
 453     com/sun/jdi/ReferrersTest.java \
 454     com/sun/jdi/RequestReflectionTest.java \
 455     com/sun/jdi/ResumeOneThreadTest.java \
 456     com/sun/jdi/RunToExit.java \
 457     com/sun/jdi/SourceNameFilterTest.java \
 458     com/sun/jdi/VarargsTest.java \
 459     com/sun/jdi/Vars.java \
 460     com/sun/jdi/redefineMethod/RedefineTest.java \
 461     com/sun/jdi/sde/MangleTest.java \
 462     com/sun/jdi/sde/TemperatureTableTest.java
 463 
 464 jdk_jfr_sanity = \
 465     jdk/jfr/api/recording/event/TestLoadEventAfterStart.java \
 466     jdk/jfr/api/recording/state/TestState.java \
 467     jdk/jfr/event/os/TestCPULoad.java \
 468     jdk/jfr/event/compiler/TestAllocInNewTLAB.java \
 469     jdk/jfr/jcmd/TestJcmdStartStopDefault.java \
 470     jdk/jfr/event/io/TestFileStreamEvents.java \
 471     jdk/jfr/event/compiler/TestCompilerCompile.java \
 472     jdk/jfr/event/gc/collection/TestGCGarbageCollectionEvent.java \
 473     jdk/jfr/event/runtime/TestClassLoadEvent.java \
 474     jdk/jfr/event/runtime/TestJavaBlockedEvent.java \
 475     jdk/jfr/event/gc/collection/TestGCWithFasttime.java \
 476     jdk/jfr/event/gc/configuration/TestGCConfigurationEvent.java \
 477     jdk/jfr/event/metadata/TestDefaultConfigurations.java \
 478     jdk/jfr/startupargs/TestDumpOnExit.java \
 479     jdk/jfr/api/consumer/recordingstream/TestBasics.java
 480 
 481 svc_tools_sanity =
 482 
 483 #############################
 484 #
 485 # Stable test groups
 486 #
 487 
 488 jdk_stable = \
 489     :jdk_core \
 490     :jdk_svc \
 491     :jdk_beans \
 492     :jdk_imageio \
 493     :jdk_sound \
 494     :jdk_sctp \
 495     javax/accessibility \
 496     com/sun/java/swing
 497 
 498 needs_g1gc = \
 499   jdk/jfr/event/gc/refstat/TestRefStatEventWithG1ConcurrentMark.java \
 500   jdk/jfr/event/gc/refstat/TestRefStatEventWithG1FullCollection.java \
 501   jdk/jfr/event/gc/refstat/TestRefStatEventWithG1New.java \
 502   jdk/jfr/event/gc/detailed/TestEvacuationFailedEvent.java \
 503   jdk/jfr/event/gc/detailed/TestEvacuationInfoEvent.java \
 504   jdk/jfr/event/gc/detailed/TestG1ConcurrentModeFailureEvent.java \
 505   jdk/jfr/event/gc/collection/TestGCCauseWithG1ConcurrentMark.java \
 506   jdk/jfr/event/gc/collection/TestGCCauseWithG1FullCollection.java \
 507   jdk/jfr/event/gc/collection/TestYoungGarbageCollectionEventWithG1New.java \
 508   jdk/jfr/event/gc/collection/TestGCEventMixedWithG1FullCollection.java \
 509   jdk/jfr/event/gc/collection/TestGCEventMixedWithG1ConcurrentMark.java \
 510   jdk/jfr/event/gc/collection/TestG1ParallelPhases.java \
 511   jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1FullCollection.java \
 512   jdk/jfr/event/gc/objectcount/TestObjectCountAfterGCEventWithG1ConcurrentMark.java \
 513   jdk/jfr/event/gc/heapsummary/TestHeapSummaryEventG1.java