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 53hotspot_all = \ 54 / 55 56hotspot_compiler = \ 57 compiler 58 59hotspot_gc = \ 60 gc 61 62hotspot_runtime = \ 63 runtime 64 65hotspot_serviceability = \ 66 serviceability 67 68hotspot_misc = \ 69 / \ 70 -:hotspot_compiler \ 71 -:hotspot_gc \ 72 -:hotspot_runtime \ 73 -:hotspot_serviceability 74 75# Full JDK can run all tests 76# 77jdk = \ 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# 85needs_jdk = \ 86 compiler/aot \ 87 gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java \ 88 gc/metaspace/TestMetaspacePerfCounters.java \ 89 gc/metaspace/TestPerfCountersAndMemoryPools.java \ 90 runtime/6819213/TestBootNativeLibraryPath.java \ 91 runtime/7158988/FieldMonitor.java \ 92 runtime/Metaspace/FragmentMetaspace.java \ 93 runtime/NMT/BaselineWithParameter.java \ 94 runtime/NMT/JcmdBaselineDetail.java \ 95 runtime/NMT/JcmdDetailDiff.java \ 96 runtime/NMT/JcmdScaleDetail.java \ 97 runtime/NMT/JcmdScale.java \ 98 runtime/NMT/JcmdSummaryDiff.java \ 99 runtime/NMT/JcmdWithNMTDisabled.java \ 100 runtime/NMT/MallocRoundingReportTest.java \ 101 runtime/NMT/MallocSiteHashOverflow.java \ 102 runtime/NMT/MallocStressTest.java \ 103 runtime/NMT/MallocTestType.java \ 104 runtime/NMT/MallocTrackingVerify.java \ 105 runtime/NMT/ReleaseCommittedMemory.java \ 106 runtime/NMT/ReleaseNoCommit.java \ 107 runtime/NMT/ShutdownTwice.java \ 108 runtime/NMT/SummaryAfterShutdown.java \ 109 runtime/NMT/SummarySanityCheck.java \ 110 runtime/NMT/ThreadedMallocTestType.java \ 111 runtime/NMT/ThreadedVirtualAllocTestType.java \ 112 runtime/NMT/VirtualAllocCommitUncommitRecommit.java \ 113 runtime/NMT/VirtualAllocTestType.java \ 114 runtime/RedefineObject/TestRedefineObject.java \ 115 runtime/Thread/TestThreadDumpMonitorContention.java \ 116 runtime/Thread/ThreadPriorities.java \ 117 runtime/XCheckJniJsig/XCheckJSig.java \ 118 serviceability/attach/AttachWithStalePidFile.java \ 119 serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java \ 120 serviceability/dcmd/vm/DynLibsTest.java \ 121 serviceability/tmtools 122 123 124# JRE adds further tests to compact3 125# 126jre = \ 127 :compact3 \ 128 :needs_jre \ 129 -:needs_jdk 130 131# Tests that require the full JRE 132# 133needs_jre = \ 134 compiler/c2/Test6852078.java \ 135 compiler/c2/Test7047069.java \ 136 runtime/6294277/SourceDebugExtension.java \ 137 runtime/ClassFile/JsrRewriting.java \ 138 runtime/ClassFile/OomWhileParsingRepeatedJsr.java \ 139 runtime/SharedArchiveFile/LimitSharedSizes.java \ 140 runtime/SharedArchiveFile/SpaceUtilizationCheck.java 141 142# Compact 3 adds further tests to compact2 143# 144compact3 = \ 145 :compact2 \ 146 :needs_compact3 \ 147 -:needs_jre \ 148 -:needs_jdk 149 150 151# Tests that require compact3 API's 152# 153needs_compact3 = \ 154 gc/TestFullGCCount.java \ 155 gc/arguments/TestG1HeapRegionSize.java \ 156 gc/arguments/TestDynMinHeapFreeRatio.java \ 157 gc/arguments/TestDynMaxHeapFreeRatio.java \ 158 gc/cms/TestMBeanCMS.java \ 159 gc/g1/TestHumongousAllocInitialMark.java \ 160 gc/g1/TestShrinkAuxiliaryData00.java \ 161 gc/g1/TestShrinkAuxiliaryData05.java \ 162 gc/g1/TestShrinkAuxiliaryData10.java \ 163 gc/g1/TestShrinkAuxiliaryData15.java \ 164 gc/g1/TestShrinkAuxiliaryData20.java \ 165 gc/g1/TestShrinkAuxiliaryData25.java \ 166 gc/g1/TestShrinkAuxiliaryData30.java \ 167 gc/metaspace/TestMetaspaceMemoryPool.java \ 168 gc/survivorAlignment \ 169 runtime/InternalApi/ThreadCpuTimesDeadlock.java \ 170 runtime/NMT/JcmdSummaryDiff.java \ 171 runtime/RedefineTests/RedefineAnnotations.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 181compact2 = \ 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# 191needs_full_vm_compact2 = 192 193# Compact 1 adds full VM tests 194# 195compact1 = \ 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# 206needs_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# 221compact2_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# 231needs_compact2 = \ 232 compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java 233 234# All tests that run on the most minimal configuration: Minimal VM on Compact 1 235compact1_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# 250needs_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 273hotspot_native_sanity = \ 274 native_sanity 275 276hotspot_fast_compiler_1 = \ 277 compiler/aot/ \ 278 compiler/arraycopy/ \ 279 compiler/c1/ \ 280 compiler/c2/ \ 281 -compiler/c2/Test6850611.java \ 282 -compiler/c2/cr6890943/Test6890943.java \ 283 -compiler/c2/Test6905845.java \ 284 -compiler/c2/cr6340864 \ 285 -compiler/c2/cr6589834 \ 286 -compiler/c2/cr8004867 \ 287 -compiler/c2/stemmer \ 288 -compiler/c2/Test6792161.java \ 289 -compiler/c2/Test6603011.java \ 290 -compiler/c2/Test6912517.java \ 291 292hotspot_fast_compiler_2 = \ 293 compiler/classUnloading/ \ 294 compiler/codecache/ \ 295 compiler/codegen/ \ 296 compiler/cpuflags/ \ 297 compiler/dependencies/ \ 298 compiler/eliminateAutobox/ \ 299 compiler/escapeAnalysis/ \ 300 compiler/exceptions/ \ 301 compiler/floatingpoint/ \ 302 compiler/gcbarriers/ \ 303 compiler/inlining/ \ 304 compiler/integerArithmetic/ \ 305 compiler/interpreter/ \ 306 compiler/jvmci/ \ 307 -compiler/codegen/aes \ 308 -compiler/codecache/stress \ 309 -compiler/gcbarriers/PreserveFPRegistersTest.java 310 311hotspot_fast_compiler_3 = \ 312 compiler/intrinsics/ \ 313 compiler/jsr292/ \ 314 compiler/loopopts/ \ 315 compiler/macronodes/ \ 316 compiler/memoryinitialization/ \ 317 compiler/osr/ \ 318 compiler/regalloc/ \ 319 compiler/runtime/ \ 320 compiler/startup/ \ 321 compiler/types/ \ 322 compiler/uncommontrap/ \ 323 compiler/unsafe/ \ 324 -compiler/intrinsics/bmi \ 325 -compiler/intrinsics/mathexact \ 326 -compiler/intrinsics/sha \ 327 -compiler/intrinsics/bigInteger/TestMultiplyToLen.java \ 328 -compiler/intrinsics/zip/TestAdler32.java \ 329 -compiler/loopopts/Test7052494.java \ 330 -compiler/runtime/Test6826736.java 331 332hotspot_fast_compiler_closed = \ 333 sanity/ExecuteInternalVMTests.java 334 335hotspot_not_fast_compiler = \ 336 :hotspot_compiler \ 337 -:hotspot_fast_compiler_1 \ 338 -:hotspot_fast_compiler_2 \ 339 -:hotspot_fast_compiler_3 \ 340 -:hotspot_fast_compiler_closed 341 342hotspot_fast_gc_1 = \ 343 gc/g1/ 344 345hotspot_fast_gc_2 = \ 346 sanity/ExecuteInternalVMTests.java \ 347 gc/ \ 348 -gc/g1/ \ 349 -gc/logging/TestUnifiedLoggingSwitchStress.java \ 350 -gc/stress \ 351 -gc/survivorAlignment/TestPromotionFromSurvivorToTenuredAfterMinorGC.java \ 352 -gc/cms/TestMBeanCMS.java \ 353 -gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java 354 355hotspot_fast_gc_closed = \ 356 sanity/ExecuteInternalVMTests.java 357 358hotspot_fast_gc_gcold = \ 359 gc/stress/TestGCOld.java 360 361hotspot_fast_gc_gcbasher = \ 362 gc/stress/gcbasher/TestGCBasherWithG1.java \ 363 gc/stress/gcbasher/TestGCBasherWithCMS.java \ 364 gc/stress/gcbasher/TestGCBasherWithSerial.java \ 365 gc/stress/gcbasher/TestGCBasherWithParallel.java 366 367hotspot_fast_runtime = \ 368 runtime/ \ 369 -runtime/6626217/Test6626217.sh \ 370 -runtime/7100935 \ 371 -runtime/7158988/FieldMonitor.java \ 372 -runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java \ 373 -runtime/CommandLine/PrintGCApplicationConcurrentTime.java \ 374 -runtime/ConstantPool/IntfMethod.java \ 375 -runtime/ErrorHandling/CreateCoredumpOnCrash.java \ 376 -runtime/ErrorHandling/ErrorHandler.java \ 377 -runtime/logging/MonitorMismatchTest.java \ 378 -runtime/memory/ReserveMemory.java \ 379 -runtime/memory/RunUnitTestsConcurrently.java \ 380 -runtime/Metaspace/FragmentMetaspace.java \ 381 -runtime/Metaspace/FragmentMetaspaceSimple.java \ 382 -runtime/MirrorFrame/Test8003720.java \ 383 -runtime/modules/LoadUnloadModuleStress.java \ 384 -runtime/modules/ModuleStress/ExportModuleStressTest.java \ 385 -runtime/modules/ModuleStress/ModuleStressGC.java \ 386 -runtime/NMT \ 387 -runtime/RedefineObject/TestRedefineObject.java \ 388 -runtime/RedefineTests/RedefineLeak.java \ 389 -runtime/RedefineTests/RedefinePreviousVersions.java \ 390 -runtime/RedefineTests/RedefineRunningMethods.java \ 391 -runtime/RedefineTests/RedefineRunningMethodsWithBacktrace.java \ 392 -runtime/ReservedStack \ 393 -runtime/SelectionResolution/AbstractMethodErrorTest.java \ 394 -runtime/SelectionResolution/IllegalAccessErrorTest.java \ 395 -runtime/SelectionResolution/InvokeInterfaceICCE.java \ 396 -runtime/SelectionResolution/InvokeInterfaceSuccessTest.java \ 397 -runtime/SelectionResolution/InvokeSpecialICCE.java \ 398 -runtime/SelectionResolution/InvokeSpecialSuccessTest.java \ 399 -runtime/SelectionResolution/InvokeStaticICCE.java \ 400 -runtime/SelectionResolution/InvokeVirtualICCE.java \ 401 -runtime/SelectionResolution/InvokeVirtualSuccessTest.java \ 402 -runtime/SharedArchiveFile/CdsSameObjectAlignment.java \ 403 -runtime/SharedArchiveFile/DefaultUseWithClient.java \ 404 -runtime/SharedArchiveFile/SharedBaseAddress.java \ 405 -runtime/Thread/CancellableThreadTest.java \ 406 -runtime/Thread/TestThreadDumpMonitorContention.java \ 407 -runtime/Unsafe/RangeCheck.java \ 408 sanity/ \ 409 testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java 410 411hotspot_fast_serviceability = \ 412 serviceability/dcmd/compiler \ 413 serviceability/logging 414 415hotspot_jprt = \ 416 :hotspot_fast_compiler_1 \ 417 :hotspot_fast_compiler_2 \ 418 :hotspot_fast_compiler_3 \ 419 :hotspot_fast_compiler_closed \ 420 :hotspot_fast_gc_1 \ 421 :hotspot_fast_gc_2 \ 422 :hotspot_fast_gc_closed \ 423 :hotspot_fast_gc_gcold \ 424 :hotspot_fast_runtime \ 425 :hotspot_fast_serviceability 426 427hotspot_runtime_tier2 = \ 428 runtime/ \ 429 serviceability/ \ 430 -runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java \ 431 -runtime/Thread/TestThreadDumpMonitorContention.java \ 432 -:hotspot_fast_runtime \ 433 -:hotspot_fast_serviceability \ 434 -:hotspot_runtime_tier2_platform_agnostic 435 436hotspot_runtime_tier2_platform_agnostic = \ 437 runtime/SelectionResolution \ 438 -:hotspot_fast_runtime 439 440hotspot_runtime_tier3 = \ 441 runtime/ \ 442 serviceability/ \ 443 -:hotspot_fast_runtime \ 444 -:hotspot_fast_serviceability \ 445 -:hotspot_runtime_tier2_platform_agnostic \ 446 -:hotspot_runtime_tier2 447 448hotspot_runtime_minimalvm = \ 449 runtime/MinimalVM \ 450 runtime/ErrorHandling \ 451 runtime/logging 452 453#All tests that depends on nashorn extension. 454# 455needs_nashorn = \ 456 compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java 457 458#All tests that do not depends on nashorn extension 459# 460not_needs_nashorn = \ 461 :jdk \ 462 -:needs_nashorn 463 464hotspot_tmtools = \ 465 serviceability/tmtools 466