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/6852078/Test6852078.java \
 134   compiler/c2/7047069/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/TestSmallHeap.java \
 253   gc/TestSystemGC.java \
 254   gc/arguments/TestAlignmentToUseLargePages.java \
 255   gc/arguments/TestG1ConcRefinementThreads.java \
 256   gc/arguments/TestG1HeapRegionSize.java \
 257   gc/arguments/TestG1HeapSizeFlags.java \
 258   gc/arguments/TestG1PercentageOptions.java \
 259   gc/arguments/TestMaxHeapSizeTools.java \
 260   gc/arguments/TestMaxNewSize.java \
 261   gc/arguments/TestParallelGCThreads.java \
 262   gc/arguments/TestUseCompressedOopsErgo.java \
 263   gc/class_unloading/TestG1ClassUnloadingHWM.java \
 264   gc/ergonomics/TestDynamicNumberOfGCThreads.java \
 265   gc/g1/ \
 266   gc/logging/TestGCId.java \
 267   gc/metaspace/G1AddMetaspaceDependency.java \
 268   gc/metaspace/TestMetaspacePerfCounters.java \
 269   gc/startup_warnings/TestG1.java \
 270   gc/whitebox/TestConcMarkCycleWB.java 
 271 
 272 hotspot_native_sanity = \
 273   native_sanity
 274 
 275 hotspot_fast_compiler_1 = \
 276   compiler/arraycopy/ \
 277   compiler/c1/ \
 278   compiler/c2/ \
 279   -compiler/c2/5091921/Test6850611.java \
 280   -compiler/c2/5091921/Test6890943.java \
 281   -compiler/c2/5091921/Test6905845.java \
 282   -compiler/c2/6340864 \
 283   -compiler/c2/6589834 \
 284   -compiler/c2/6603011 \
 285   -compiler/c2/6912517 \
 286   -compiler/c2/6792161 \
 287   -compiler/c2/7070134 \
 288   -compiler/c2/8004867
 289   
 290 hotspot_fast_compiler_2 = \
 291   compiler/classUnloading/ \
 292   compiler/codecache/ \
 293   compiler/codegen/ \
 294   compiler/cpuflags/ \
 295   compiler/dependencies/ \
 296   compiler/eliminateAutobox/ \
 297   compiler/escapeAnalysis/ \
 298   compiler/exceptions/ \
 299   compiler/floatingpoint/ \
 300   compiler/gcbarriers/ \
 301   compiler/inlining/ \
 302   compiler/integerArithmetic/ \
 303   compiler/interpreter/ \
 304   compiler/jvmci/ \
 305   -compiler/codegen/7184394 \
 306   -compiler/codecache/stress
 307   
 308 hotspot_fast_compiler_3 = \
 309   compiler/intrinsics/ \
 310   compiler/jsr292/ \
 311   compiler/loopopts/ \
 312   compiler/macronodes/ \
 313   compiler/memoryinitialization/ \
 314   compiler/osr/ \
 315   compiler/regalloc/ \
 316   compiler/runtime/ \
 317   compiler/startup/ \
 318   compiler/types/ \
 319   compiler/uncommontrap/ \
 320   compiler/unsafe/ \
 321   -compiler/intrinsics/adler32 \
 322   -compiler/intrinsics/bmi \
 323   -compiler/intrinsics/mathexact \
 324   -compiler/intrinsics/multiplytolen \
 325   -compiler/intrinsics/sha \
 326   -compiler/loopopts/7052494 \
 327   -compiler/runtime/6826736
 328 
 329 hotspot_fast_compiler_closed = \
 330   sanity/ExecuteInternalVMTests.java
 331 
 332 hotspot_fast_gc = \
 333   sanity/ExecuteInternalVMTests.java \
 334   gc/ \
 335   -gc/g1/TestGreyReclaimedHumongousObjects.java \
 336   -gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java
 337 
 338 hotspot_fast_gc_closed = \
 339   sanity/ExecuteInternalVMTests.java
 340 
 341 hotspot_fast_gc_gcold = \
 342   stress/gc/TestGCOld.java
 343 
 344 hotspot_fast_runtime = \
 345   runtime/ \
 346  -runtime/ErrorHandling/ErrorHandler.java \
 347  -runtime/RedefineObject/TestRedefineObject.java \
 348  -runtime/8003720/Test8003720.java \
 349  -runtime/Metaspace/FragmentMetaspace.java \
 350  -runtime/Metaspace/FragmentMetaspaceSimple.java \
 351  -runtime/Thread/TestThreadDumpMonitorContention.java \
 352  -runtime/SharedArchiveFile/SharedBaseAddress.java \
 353  -runtime/memory/ReserveMemory.java \
 354  -runtime/memory/RunUnitTestsConcurrently.java \
 355  -runtime/Unsafe/RangeCheck.java \
 356  -runtime/SelectionResolution/AbstractMethodErrorTest.java \
 357  -runtime/SelectionResolution/IllegalAccessErrorTest.java \
 358  -runtime/SelectionResolution/InvokeInterfaceICCE.java \
 359  -runtime/SelectionResolution/InvokeInterfaceSuccessTest.java \
 360  -runtime/SelectionResolution/InvokeSpecialICCE.java \
 361  -runtime/SelectionResolution/InvokeSpecialSuccessTest.java \
 362  -runtime/SelectionResolution/InvokeStaticICCE.java \
 363  -runtime/SelectionResolution/InvokeVirtualICCE.java \
 364  -runtime/SelectionResolution/InvokeVirtualSuccessTest.java \
 365  -runtime/SharedArchiveFile/CdsSameObjectAlignment.java \
 366  -runtime/SharedArchiveFile/DefaultUseWithClient.java \
 367  -runtime/Thread/CancellableThreadTest.java \
 368  -runtime/7158988/FieldMonitor.java \
 369  -runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java \
 370   sanity/ \
 371   testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java
 372 
 373 hotspot_fast_serviceability = \
 374   sanity/ExecuteInternalVMTests.java \
 375   serviceability/dcmd/compiler \
 376   serviceability/logging
 377 
 378 hotspot_jprt = \
 379   :hotspot_fast_compiler_1 \
 380   :hotspot_fast_compiler_2 \
 381   :hotspot_fast_compiler_3 \
 382   :hotspot_fast_compiler_closed \
 383   :hotspot_fast_gc \
 384   :hotspot_fast_gc_closed \
 385   :hotspot_fast_gc_gcold \
 386   :hotspot_fast_runtime \
 387   :hotspot_fast_serviceability
 388 
 389 #All tests that depends on nashorn extension.
 390 #
 391 needs_nashorn = \
 392   compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java
 393 
 394 #All tests that do not depends on nashorn extension
 395 #
 396 not_needs_nashorn = \
 397   :jdk \
 398   -:needs_nashorn
 399 
 400 hotspot_tmtools = \
 401   serviceability/tmtools