1 #
   2 # Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # Profile-based Test Group Definitions
  25 #
  26 # These groups define the tests that cover the different possible runtimes:
  27 # - compact1, compact2, compact3, full JRE, JDK
  28 #
  29 # In addition they support testing of the minimal VM on compact1 and compact2.
  30 # Essentially this defines groups based around the specified API's and VM
  31 # services available in the runtime.
  32 #
  33 # The groups are defined hierarchically in two forms:
  34 # - The need_xxx groups list all the tests that have a dependency on
  35 # a specific profile. This is either because it tests a feature in
  36 # that profile, or the test infrastructure uses a feature in that
  37 # profile.
  38 # - The primary groups are defined in terms of the other primary groups
  39 # combined with the needs_xxx groups (including and excluding them as
  40 # appropriate). For example the jre can run all tests from compact3, plus
  41 # those from needs_jre, but excluding those from need_jdk.
  42 #
  43 # The bottom group defines all the actual tests to be considered, simply
  44 # by listing the top-level test directories.
  45 #
  46 # To use a group simply list it on the jtreg command line eg:
  47 #   jtreg :jdk
  48 # runs all tests. While
  49 #   jtreg :compact2
  50 # runs those tests that only require compact1 and compact2 API's.
  51 #
  52 
  53 hotspot_all = \
  54   /
  55   
  56 hotspot_compiler = \
  57   compiler
  58   
  59 hotspot_gc = \
  60   gc
  61 
  62 hotspot_runtime = \
  63   runtime
  64   
  65 hotspot_serviceability = \
  66   serviceability
  67   
  68 hotspot_misc = \
  69   / \
  70  -:hotspot_compiler \
  71  -:hotspot_gc \
  72  -:hotspot_runtime \
  73  -:hotspot_serviceability
  74 
  75 # Full JDK can run all tests
  76 #
  77 jdk = \
  78   :jre \
  79   :needs_jdk
  80 
  81 # Tests that require a full JDK to execute. Either they test a feature
  82 # only in the JDK or they use tools that are only in the JDK. The latter
  83 # can be resolved in some cases by using tools from the compile-jdk.
  84 #
  85 needs_jdk = \
  86   gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java \
  87   gc/metaspace/TestMetaspacePerfCounters.java \
  88   gc/metaspace/TestPerfCountersAndMemoryPools.java \
  89   runtime/6819213/TestBootNativeLibraryPath.java \
  90   runtime/7158988/FieldMonitor.java \
  91   runtime/Metaspace/FragmentMetaspace.java \
  92   runtime/NMT/BaselineWithParameter.java \
  93   runtime/NMT/JcmdBaselineDetail.java \
  94   runtime/NMT/JcmdDetailDiff.java \
  95   runtime/NMT/JcmdScaleDetail.java \
  96   runtime/NMT/JcmdScale.java \
  97   runtime/NMT/JcmdSummaryDiff.java \
  98   runtime/NMT/JcmdWithNMTDisabled.java \
  99   runtime/NMT/MallocRoundingReportTest.java \
 100   runtime/NMT/MallocSiteHashOverflow.java \
 101   runtime/NMT/MallocStressTest.java \
 102   runtime/NMT/MallocTestType.java \
 103   runtime/NMT/MallocTrackingVerify.java \
 104   runtime/NMT/ReleaseCommittedMemory.java \
 105   runtime/NMT/ReleaseNoCommit.java \
 106   runtime/NMT/ShutdownTwice.java \
 107   runtime/NMT/SummaryAfterShutdown.java \
 108   runtime/NMT/SummarySanityCheck.java \
 109   runtime/NMT/ThreadedMallocTestType.java \
 110   runtime/NMT/ThreadedVirtualAllocTestType.java \
 111   runtime/NMT/VirtualAllocCommitUncommitRecommit.java \
 112   runtime/NMT/VirtualAllocTestType.java \
 113   runtime/RedefineObject/TestRedefineObject.java \
 114   runtime/Thread/TestThreadDumpMonitorContention.java \
 115   runtime/Thread/ThreadPriorities.java \
 116   runtime/XCheckJniJsig/XCheckJSig.java \
 117   serviceability/attach/AttachWithStalePidFile.java \
 118   serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java \
 119   serviceability/dcmd/vm/DynLibsTest.java \
 120   serviceability/tmtools
 121 
 122 
 123 # JRE adds further tests to compact3
 124 #
 125 jre = \
 126   :compact3 \
 127   :needs_jre \
 128  -:needs_jdk
 129 
 130 # Tests that require the full JRE
 131 #
 132 needs_jre = \
 133   compiler/c2/Test6852078.java \
 134   compiler/c2/Test7047069.java \
 135   runtime/6294277/SourceDebugExtension.java \
 136   runtime/ClassFile/JsrRewriting.java \
 137   runtime/ClassFile/OomWhileParsingRepeatedJsr.java \
 138   runtime/SharedArchiveFile/LimitSharedSizes.java \
 139   runtime/SharedArchiveFile/SpaceUtilizationCheck.java
 140 
 141 # Compact 3 adds further tests to compact2
 142 #
 143 compact3 = \
 144   :compact2 \
 145   :needs_compact3 \
 146  -:needs_jre \
 147  -:needs_jdk
 148 
 149 
 150 # Tests that require compact3 API's
 151 #
 152 needs_compact3 = \
 153   gc/TestFullGCCount.java \
 154   gc/arguments/TestG1HeapRegionSize.java \
 155   gc/arguments/TestDynMinHeapFreeRatio.java \
 156   gc/arguments/TestDynMaxHeapFreeRatio.java \
 157   gc/cms/TestMBeanCMS.java \
 158   gc/g1/TestHumongousAllocInitialMark.java \
 159   gc/g1/TestShrinkAuxiliaryData00.java \
 160   gc/g1/TestShrinkAuxiliaryData05.java \
 161   gc/g1/TestShrinkAuxiliaryData10.java \
 162   gc/g1/TestShrinkAuxiliaryData15.java \
 163   gc/g1/TestShrinkAuxiliaryData20.java \
 164   gc/g1/TestShrinkAuxiliaryData25.java \
 165   gc/g1/TestShrinkAuxiliaryData30.java \
 166   gc/metaspace/TestMetaspaceMemoryPool.java \
 167   gc/survivorAlignment \
 168   runtime/InternalApi/ThreadCpuTimesDeadlock.java \
 169   runtime/NMT/JcmdSummaryDiff.java \
 170   runtime/RedefineTests/RedefineAnnotations.java \
 171   serviceability/sa/jmap-hashcode/Test8028623.java \
 172   serviceability/threads/TestFalseDeadLock.java \
 173   compiler/codecache/jmx \
 174   compiler/jsr292/RedefineMethodUsedByMultipleMethodHandles.java \
 175   compiler/rangechecks/TestRangeCheckSmearing.java \
 176   compiler/whitebox/DeoptimizeMultipleOSRTest.java \
 177   serviceability/dcmd \
 178   testlibrary_tests/whitebox/vm_flags
 179 
 180 # Compact 2 adds full VM tests
 181 compact2 = \
 182   :compact2_minimal \
 183   :compact1 \
 184   :needs_full_vm_compact2 \
 185  -:needs_compact3 \
 186  -:needs_jre \
 187  -:needs_jdk
 188 
 189 # Tests that require compact2 API's and a full VM
 190 #
 191 needs_full_vm_compact2 =
 192 
 193 # Compact 1 adds full VM tests
 194 #
 195 compact1 = \
 196   :compact1_minimal \
 197   :needs_full_vm_compact1 \
 198  -:needs_compact2 \
 199  -:needs_full_vm_compact2 \
 200  -:needs_compact3 \
 201  -:needs_jre \
 202  -:needs_jdk
 203 
 204 # Tests that require compact1 API's and a full VM
 205 #
 206 needs_full_vm_compact1 = \
 207   runtime/NMT \
 208   gc/g1/TestRegionAlignment.java \
 209   gc/g1/TestShrinkToOneRegion.java \
 210   gc/metaspace/G1AddMetaspaceDependency.java \
 211   gc/startup_warnings/TestCMS.java \
 212   gc/startup_warnings/TestDefNewCMS.java \
 213   gc/startup_warnings/TestParallelGC.java \
 214   gc/startup_warnings/TestParallelScavengeSerialOld.java \
 215   gc/startup_warnings/TestParNewCMS.java \
 216   gc/startup_warnings/TestParNewSerialOld.java \
 217   runtime/SharedArchiveFile/SharedArchiveFile.java
 218 
 219 # Minimal VM on Compact 2 adds in some compact2 tests
 220 #
 221 compact2_minimal = \
 222   :compact1_minimal \
 223   :needs_compact2 \
 224  -:needs_full_vm_compact2 \
 225  -:needs_compact3 \
 226  -:needs_jre \
 227  -:needs_jdk
 228 
 229 # Tests that require compact2 API's
 230 #
 231 needs_compact2 = \
 232   compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java
 233 
 234 # All tests that run on the most minimal configuration: Minimal VM on Compact 1
 235 compact1_minimal = \
 236   serviceability/ \
 237   compiler/ \
 238   sanity/ \
 239   runtime/ \
 240   gc/ \
 241  -:needs_full_vm_compact1 \
 242  -:needs_full_vm_compact2 \
 243  -:needs_compact2 \
 244  -:needs_compact3 \
 245  -:needs_jre \
 246  -:needs_jdk
 247 
 248 # All tests that explicitly set the G1 GC
 249 #
 250 needs_g1gc = \
 251   compiler/regalloc/C1ObjectSpillInLogicOp.java \
 252   gc/TestHumongousReferenceObject.java \
 253   gc/TestSmallHeap.java \
 254   gc/TestSystemGC.java \
 255   gc/arguments/TestAlignmentToUseLargePages.java \
 256   gc/arguments/TestG1ConcRefinementThreads.java \
 257   gc/arguments/TestG1HeapRegionSize.java \
 258   gc/arguments/TestG1HeapSizeFlags.java \
 259   gc/arguments/TestG1PercentageOptions.java \
 260   gc/arguments/TestMaxHeapSizeTools.java \
 261   gc/arguments/TestMaxNewSize.java \
 262   gc/arguments/TestParallelGCThreads.java \
 263   gc/arguments/TestUseCompressedOopsErgo.java \
 264   gc/class_unloading/TestG1ClassUnloadingHWM.java \
 265   gc/ergonomics/TestDynamicNumberOfGCThreads.java \
 266   gc/g1/ \
 267   gc/logging/TestGCId.java \
 268   gc/metaspace/G1AddMetaspaceDependency.java \
 269   gc/metaspace/TestMetaspacePerfCounters.java \
 270   gc/startup_warnings/TestG1.java \
 271   gc/whitebox/TestConcMarkCycleWB.java
 272 
 273 hotspot_native_sanity = \
 274   native_sanity
 275 
 276 hotspot_fast_compiler_1 = \
 277   compiler/arraycopy/ \
 278   compiler/c1/ \
 279   compiler/c2/ \
 280   -compiler/c2/Test6850611.java \
 281   -compiler/c2/cr6890943/Test6890943.java \
 282   -compiler/c2/Test6905845.java \
 283   -compiler/c2/cr6340864 \
 284   -compiler/c2/cr6589834 \
 285   -compiler/c2/cr8004867 \
 286   -compiler/c2/stemmer \
 287   -compiler/c2/Test6792161.java \
 288   -compiler/c2/Test6603011.java \
 289   -compiler/c2/Test6912517.java \
 290 
 291 hotspot_fast_compiler_2 = \
 292   compiler/classUnloading/ \
 293   compiler/codecache/ \
 294   compiler/codegen/ \
 295   compiler/cpuflags/ \
 296   compiler/dependencies/ \
 297   compiler/eliminateAutobox/ \
 298   compiler/escapeAnalysis/ \
 299   compiler/exceptions/ \
 300   compiler/floatingpoint/ \
 301   compiler/gcbarriers/ \
 302   compiler/inlining/ \
 303   compiler/integerArithmetic/ \
 304   compiler/interpreter/ \
 305   compiler/jvmci/ \
 306   -compiler/codegen/aes \
 307   -compiler/codecache/stress \
 308   -compiler/gcbarriers/PreserveFPRegistersTest.java
 309 
 310 hotspot_fast_compiler_3 = \
 311   compiler/intrinsics/ \
 312   compiler/jsr292/ \
 313   compiler/loopopts/ \
 314   compiler/macronodes/ \
 315   compiler/memoryinitialization/ \
 316   compiler/osr/ \
 317   compiler/regalloc/ \
 318   compiler/runtime/ \
 319   compiler/startup/ \
 320   compiler/types/ \
 321   compiler/uncommontrap/ \
 322   compiler/unsafe/ \
 323   -compiler/intrinsics/bmi \
 324   -compiler/intrinsics/mathexact \
 325   -compiler/intrinsics/sha \
 326   -compiler/intrinsics/bigInteger/TestMultiplyToLen.java \
 327   -compiler/intrinsics/zip/TestAdler32.java \
 328   -compiler/loopopts/Test7052494.java \
 329   -compiler/runtime/Test6826736.java
 330 
 331 hotspot_fast_compiler_closed = \
 332   sanity/ExecuteInternalVMTests.java
 333 
 334 hotspot_fast_gc_1 = \
 335   gc/g1/
 336 
 337 hotspot_fast_gc_2 = \
 338   sanity/ExecuteInternalVMTests.java \
 339   gc/ \
 340   -gc/g1/ \
 341   -gc/logging/TestUnifiedLoggingSwitchStress.java \
 342   -gc/stress \
 343   -gc/survivorAlignment/TestPromotionFromSurvivorToTenuredAfterMinorGC.java \
 344   -gc/cms/TestMBeanCMS.java \
 345   -gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
 346 
 347 hotspot_fast_gc_closed = \
 348   sanity/ExecuteInternalVMTests.java
 349 
 350 hotspot_fast_gc_gcold = \
 351   gc/stress/TestGCOld.java
 352 
 353 hotspot_fast_runtime = \
 354   runtime/ \
 355  -runtime/ErrorHandling/ErrorHandler.java \
 356  -runtime/RedefineObject/TestRedefineObject.java \
 357  -runtime/MirrorFrame/Test8003720.java \
 358  -runtime/Metaspace/FragmentMetaspace.java \
 359  -runtime/Metaspace/FragmentMetaspaceSimple.java \
 360  -runtime/Thread/TestThreadDumpMonitorContention.java \
 361  -runtime/SharedArchiveFile/SharedBaseAddress.java \
 362  -runtime/memory/ReserveMemory.java \
 363  -runtime/memory/RunUnitTestsConcurrently.java \
 364  -runtime/Unsafe/RangeCheck.java \
 365  -runtime/SelectionResolution/AbstractMethodErrorTest.java \
 366  -runtime/SelectionResolution/IllegalAccessErrorTest.java \
 367  -runtime/SelectionResolution/InvokeInterfaceICCE.java \
 368  -runtime/SelectionResolution/InvokeInterfaceSuccessTest.java \
 369  -runtime/SelectionResolution/InvokeSpecialICCE.java \
 370  -runtime/SelectionResolution/InvokeSpecialSuccessTest.java \
 371  -runtime/SelectionResolution/InvokeStaticICCE.java \
 372  -runtime/SelectionResolution/InvokeVirtualICCE.java \
 373  -runtime/SelectionResolution/InvokeVirtualSuccessTest.java \
 374  -runtime/SharedArchiveFile/CdsSameObjectAlignment.java \
 375  -runtime/SharedArchiveFile/DefaultUseWithClient.java \
 376  -runtime/Thread/CancellableThreadTest.java \
 377  -runtime/7158988/FieldMonitor.java \
 378   runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java \
 379   sanity/ \
 380   testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java
 381 
 382 # Enable runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java
 383 # above for pre-push testing only.
 384 
 385 hotspot_fast_serviceability = \
 386   sanity/ExecuteInternalVMTests.java \
 387   serviceability/dcmd/compiler \
 388   serviceability/logging
 389 
 390 hotspot_jprt = \
 391   :hotspot_fast_compiler_1 \
 392   :hotspot_fast_compiler_2 \
 393   :hotspot_fast_compiler_3 \
 394   :hotspot_fast_compiler_closed \
 395   :hotspot_fast_gc_1 \
 396   :hotspot_fast_gc_2 \
 397   :hotspot_fast_gc_closed \
 398   :hotspot_fast_gc_gcold \
 399   :hotspot_fast_runtime \
 400   :hotspot_fast_serviceability
 401   
 402 hotspot_runtime_tier2 = \
 403   runtime/ \
 404   serviceability/ \
 405  -:hotspot_fast_runtime \
 406  -:hotspot_fast_serviceability \
 407  -:hotspot_runtime_tier2_platform_agnostic
 408  
 409 hotspot_runtime_tier2_platform_agnostic = \
 410   runtime/SelectionResolution \
 411  -:hotspot_fast_runtime
 412 
 413 hotspot_runtime_minimalvm = \
 414   runtime/MinimalVM \
 415   runtime/ErrorHandling \
 416   runtime/logging
 417   
 418 #All tests that depends on nashorn extension.
 419 #
 420 needs_nashorn = \
 421   compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java
 422 
 423 #All tests that do not depends on nashorn extension
 424 #
 425 not_needs_nashorn = \
 426   :jdk \
 427   -:needs_nashorn
 428 
 429 hotspot_tmtools = \
 430   serviceability/tmtools