1 # 2 # Copyright (c) 2013, 2014, 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 # Full JDK can run all tests 57 # 58 jdk = \ 59 :jre \ 60 :needs_jdk 61 62 # Tests that require a full JDK to execute. Either they test a feature 63 # only in the JDK or they use tools that are only in the JDK. The latter 64 # can be resolved in some cases by using tools from the compile-jdk. 65 # 66 needs_jdk = \ 67 gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java \ 68 gc/metaspace/TestMetaspacePerfCounters.java \ 69 gc/metaspace/TestPerfCountersAndMemoryPools.java \ 70 runtime/6819213/TestBootNativeLibraryPath.java \ 71 runtime/7158988/FieldMonitor.java \ 72 runtime/7194254/Test7194254.java \ 73 runtime/Metaspace/FragmentMetaspace.java \ 74 runtime/NMT/BaselineWithParameter.java \ 75 runtime/NMT/JcmdBaselineDetail.java \ 76 runtime/NMT/JcmdDetailDiff.java \ 77 runtime/NMT/JcmdScaleDetail.java \ 78 runtime/NMT/JcmdScale.java \ 79 runtime/NMT/JcmdSummaryDiff.java \ 80 runtime/NMT/JcmdWithNMTDisabled.java \ 81 runtime/NMT/MallocRoundingReportTest.java \ 82 runtime/NMT/MallocSiteHashOverflow.java \ 83 runtime/NMT/MallocStressTest.java \ 84 runtime/NMT/MallocTestType.java \ 85 runtime/NMT/MallocTrackingVerify.java \ 86 runtime/NMT/ReleaseCommittedMemory.java \ 87 runtime/NMT/ReleaseNoCommit.java \ 88 runtime/NMT/ShutdownTwice.java \ 89 runtime/NMT/SummaryAfterShutdown.java \ 90 runtime/NMT/SummarySanityCheck.java \ 91 runtime/NMT/ThreadedMallocTestType.java \ 92 runtime/NMT/ThreadedVirtualAllocTestType.java \ 93 runtime/NMT/VirtualAllocCommitUncommitRecommit.java \ 94 runtime/NMT/VirtualAllocTestType.java \ 95 runtime/RedefineObject/TestRedefineObject.java \ 96 runtime/Thread/TestThreadDumpMonitorContention.java \ 97 runtime/XCheckJniJsig/XCheckJSig.java \ 98 serviceability/attach/AttachWithStalePidFile.java \ 99 serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java \ 100 serviceability/dcmd/DynLibDcmdTest.java 101 102 103 # JRE adds further tests to compact3 104 # 105 jre = \ 106 :compact3 \ 107 :needs_jre \ 108 -:needs_jdk 109 110 # Tests that require the full JRE 111 # 112 needs_jre = \ 113 compiler/c2/6852078/Test6852078.java \ 114 compiler/c2/7047069/Test7047069.java \ 115 runtime/6294277/SourceDebugExtension.java \ 116 runtime/ClassFile/JsrRewriting.java \ 117 runtime/ClassFile/OomWhileParsingRepeatedJsr.java 118 119 # Compact 3 adds further tests to compact2 120 # 121 compact3 = \ 122 :compact2 \ 123 :needs_compact3 \ 124 -:needs_jre \ 125 -:needs_jdk 126 127 128 # Tests that require compact3 API's 129 # 130 needs_compact3 = \ 131 gc/6581734/Test6581734.java \ 132 gc/7072527/TestFullGCCount.java \ 133 gc/g1/TestHumongousAllocInitialMark.java \ 134 gc/arguments/TestG1HeapRegionSize.java \ 135 gc/metaspace/TestMetaspaceMemoryPool.java \ 136 gc/arguments/TestDynMinHeapFreeRatio.java \ 137 gc/arguments/TestDynMaxHeapFreeRatio.java \ 138 gc/g1/TestShrinkAuxiliaryData00.java \ 139 gc/g1/TestShrinkAuxiliaryData05.java \ 140 gc/g1/TestShrinkAuxiliaryData10.java \ 141 gc/g1/TestShrinkAuxiliaryData15.java \ 142 gc/g1/TestShrinkAuxiliaryData20.java \ 143 gc/g1/TestShrinkAuxiliaryData25.java \ 144 gc/g1/TestShrinkAuxiliaryData30.java \ 145 gc/survivorAlignment \ 146 runtime/InternalApi/ThreadCpuTimesDeadlock.java \ 147 serviceability/threads/TestFalseDeadLock.java \ 148 149 # Compact 2 adds full VM tests 150 compact2 = \ 151 :compact2_minimal \ 152 :compact1 \ 153 :needs_full_vm_compact2 \ 154 -:needs_compact3 \ 155 -:needs_jre \ 156 -:needs_jdk 157 158 # Tests that require compact2 API's and a full VM 159 # 160 needs_full_vm_compact2 = 161 162 # Compact 1 adds full VM tests 163 # 164 compact1 = \ 165 :compact1_minimal \ 166 :needs_full_vm_compact1 \ 167 -:needs_compact2 \ 168 -:needs_full_vm_compact2 \ 169 -:needs_compact3 \ 170 -:needs_jre \ 171 -:needs_jdk 172 173 # Tests that require compact1 API's and a full VM 174 # 175 needs_full_vm_compact1 = \ 176 runtime/NMT \ 177 gc/g1/TestRegionAlignment.java \ 178 gc/g1/TestShrinkToOneRegion.java \ 179 gc/metaspace/G1AddMetaspaceDependency.java \ 180 gc/startup_warnings/TestCMS.java \ 181 gc/startup_warnings/TestDefaultMaxRAMFraction.java \ 182 gc/startup_warnings/TestDefNewCMS.java \ 183 gc/startup_warnings/TestParallelGC.java \ 184 gc/startup_warnings/TestParallelScavengeSerialOld.java \ 185 gc/startup_warnings/TestParNewCMS.java \ 186 gc/startup_warnings/TestParNewSerialOld.java \ 187 runtime/SharedArchiveFile/SharedArchiveFile.java 188 189 # Minimal VM on Compact 2 adds in some compact2 tests 190 # 191 compact2_minimal = \ 192 :compact1_minimal \ 193 :needs_compact2 \ 194 -:needs_full_vm_compact2 \ 195 -:needs_compact3 \ 196 -:needs_jre \ 197 -:needs_jdk 198 199 # Tests that require compact2 API's 200 # 201 needs_compact2 = \ 202 compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java 203 204 # All tests that run on the most minimal configuration: Minimal VM on Compact 1 205 compact1_minimal = \ 206 serviceability/ \ 207 compiler/ \ 208 testlibrary_tests/ \ 209 sanity/ \ 210 runtime/ \ 211 gc/ \ 212 -:needs_full_vm_compact1 \ 213 -:needs_full_vm_compact2 \ 214 -:needs_compact2 \ 215 -:needs_compact3 \ 216 -:needs_jre \ 217 -:needs_jdk 218 219 # All tests that explicitly set the G1 GC 220 # 221 needs_g1gc = \ 222 compiler/regalloc/C1ObjectSpillInLogicOp.java \ 223 gc/TestSystemGC.java \ 224 gc/arguments/TestAlignmentToUseLargePages.java \ 225 gc/arguments/TestG1HeapRegionSize.java \ 226 gc/arguments/TestG1HeapSizeFlags.java \ 227 gc/arguments/TestMaxHeapSizeTools.java \ 228 gc/arguments/TestMaxNewSize.java \ 229 gc/arguments/TestParallelGCThreads.java \ 230 gc/arguments/TestUseCompressedOopsErgo.java \ 231 gc/class_unloading/TestG1ClassUnloadingHWM.java \ 232 gc/g1/ \ 233 gc/metaspace/G1AddMetaspaceDependency.java \ 234 gc/metaspace/TestMetaspacePerfCounters.java \ 235 gc/startup_warnings/TestG1.java 236 237 # All tests that explicitly set the serial GC 238 # 239 needs_serialgc = \ 240 gc/TestSystemGC.java \ 241 gc/arguments/TestAlignmentToUseLargePages.java \ 242 gc/arguments/TestMaxNewSize.java \ 243 gc/arguments/TestSerialHeapSizeFlags.java \ 244 gc/arguments/TestUseCompressedOopsErgo.java \ 245 gc/defnew/HeapChangeLogging.java \ 246 gc/metaspace/TestMetaspacePerfCounters.java \ 247 gc/metaspace/TestPerfCountersAndMemoryPools.java \ 248 gc/startup_warnings/TestSerialGC.java 249 250 # All tests that explicitly set the parallel GC 251 # 252 needs_parallelgc = \ 253 gc/TestSystemGC.java \ 254 gc/arguments/TestAlignmentToUseLargePages.java \ 255 gc/arguments/TestMaxNewSize.java \ 256 gc/arguments/TestMinInitialErgonomics.java \ 257 gc/arguments/TestParallelGCThreads.java \ 258 gc/arguments/TestUseCompressedOopsErgo.java \ 259 gc/metaspace/TestMetaspacePerfCounters.java \ 260 gc/parallelScavenge/ \ 261 gc/startup_warnings/TestParallelGC.java \ 262 gc/startup_warnings/TestParallelScavengeSerialOld.java 263 264 # All tests that explicitly set the CMS GC 265 # 266 needs_cmsgc = \ 267 gc/6581734/Test6581734.java \ 268 gc/TestSystemGC.java \ 269 gc/arguments/TestAlignmentToUseLargePages.java \ 270 gc/arguments/TestCMSHeapSizeFlags.java \ 271 gc/arguments/TestMaxNewSize.java \ 272 gc/arguments/TestParallelGCThreads.java \ 273 gc/arguments/TestUseCompressedOopsErgo.java \ 274 gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java \ 275 gc/concurrentMarkSweep/ \ 276 gc/startup_warnings/TestCMS.java \ 277 gc/startup_warnings/TestDefNewCMS.java \ 278 gc/startup_warnings/TestParNewCMS.java 279 280 # All tests that explicitly set some GC 281 # 282 needs_gc = \ 283 :needs_g1gc \ 284 :needs_serialgc \ 285 :needs_parallelgc \ 286 :needs_cmsgc 287 288 # All tests that do not set any GC explicitly 289 # 290 not_needs_gc = \ 291 :jdk \ 292 -:needs_gc 293 294 # All tests that could be executed with the G1 GC without VM flags conflict 295 # 296 applicable_g1gc = \ 297 :jdk \ 298 -:needs_serialgc \ 299 -:needs_parallelgc \ 300 -:needs_cmsgc 301 302 # All tests that could be executed with the serial GC without VM flags conflict 303 # 304 applicable_serialgc = \ 305 :jdk \ 306 -:needs_g1gc \ 307 -:needs_parallelgc \ 308 -:needs_cmsgc 309 310 # All tests that could be executed with the parallel GC without VM flags conflict 311 # 312 applicable_parallelgc = \ 313 :jdk \ 314 -:needs_g1gc \ 315 -:needs_serialgc \ 316 -:needs_cmsgc 317 318 # All tests that could be executed with the CMS GC without VM flags conflict 319 # 320 applicable_cmsgc = \ 321 :jdk \ 322 -:needs_g1gc \ 323 -:needs_serialgc \ 324 -:needs_parallelgc 325 326 327 # When called from top level the test suites use the hotspot_ prefix 328 hotspot_wbapitest = \ 329 sanity/ 330 331 hotspot_compiler_1 = \ 332 compiler/arraycopy/ \ 333 compiler/c1/ \ 334 compiler/c2/ \ 335 -compiler/c2/5091921/Test6850611.java \ 336 -compiler/c2/5091921/Test6890943.java \ 337 -compiler/c2/5091921/Test6905845.java \ 338 -compiler/c2/6340864 \ 339 -compiler/c2/6589834 \ 340 -compiler/c2/6603011 \ 341 -compiler/c2/6912517 \ 342 -compiler/c2/6792161 \ 343 -compiler/c2/7070134 \ 344 -compiler/c2/8004867 345 346 hotspot_compiler_2 = \ 347 compiler/classUnloading/ \ 348 compiler/codecache/ \ 349 compiler/codegen/ \ 350 compiler/cpuflags/ \ 351 compiler/dependencies/ \ 352 compiler/eliminateAutobox/ \ 353 compiler/escapeAnalysis/ \ 354 compiler/exceptions/ \ 355 compiler/floatingpoint/ \ 356 compiler/gcbarriers/ \ 357 compiler/inlining/ \ 358 compiler/integerArithmetic/ \ 359 compiler/interpreter/ \ 360 -compiler/codegen/7184394 361 362 hotspot_compiler_3 = \ 363 compiler/intrinsics/ \ 364 compiler/jsr292/ \ 365 compiler/loopopts/ \ 366 compiler/macronodes/ \ 367 compiler/osr/ \ 368 compiler/regalloc/ \ 369 compiler/runtime/ \ 370 compiler/startup/ \ 371 compiler/types/ \ 372 compiler/uncommontrap/ \ 373 compiler/unsafe/ \ 374 -compiler/intrinsics/bmi/verifycode \ 375 -compiler/intrinsics/mathexact \ 376 -compiler/intrinsics/multiplytolen \ 377 -compiler/intrinsics/sha \ 378 -compiler/loopopts/7052494 \ 379 -compiler/runtime/6826736 380 381 hotspot_compiler_closed = \ 382 closed/compiler/c1/ \ 383 closed/compiler/c2/ \ 384 closed/compiler/codegen/ \ 385 closed/compiler/escapeAnalysis/ \ 386 closed/compiler/interpreter/ \ 387 closed/compiler/jsr292/ \ 388 closed/compiler/loopopts/ \ 389 closed/compiler/oracle/ \ 390 closed/compiler/runtime/ \ 391 closed/compiler/symantec/ \ 392 -closed/compiler/c1/4477197 \ 393 -closed/compiler/c1/5040872 \ 394 -closed/compiler/c1/6507107 \ 395 -closed/compiler/c2/4344895 \ 396 -closed/compiler/c2/4485006 \ 397 -closed/compiler/c2/4523683 \ 398 -closed/compiler/c2/4620290 \ 399 -closed/compiler/c2/4998314 \ 400 -closed/compiler/c2/6329104 \ 401 -closed/compiler/c2/6434117 \ 402 -closed/compiler/c2/6547163 \ 403 -closed/compiler/c2/6563987 \ 404 -closed/compiler/c2/6595044 \ 405 -closed/compiler/codegen/6440479 \ 406 -closed/compiler/codegen/6603011 \ 407 -closed/compiler/interpreter/5034475 \ 408 -closed/compiler/jsr292/LongLambdaFormDynamicStackDepth.java \ 409 -closed/compiler/loopopts/4463485 \ 410 -closed/compiler/loopopts/8021898 411 412 hotspot_gc = \ 413 sanity/ExecuteInternalVMTests.java \ 414 gc/ \ 415 -gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java 416 417 hotspot_gc_closed = \ 418 sanity/ExecuteInternalVMTests.java 419 420 hotspot_gc_gcold = \ 421 stress/gc/TestGCOld.java 422 423 hotspot_runtime = \ 424 runtime/ \ 425 -runtime/6888954/vmerrors.sh \ 426 -runtime/RedefineObject/TestRedefineObject.java \ 427 -runtime/8003720/Test8003720.java \ 428 -runtime/Metaspace/FragmentMetaspace.java \ 429 -runtime/Metaspace/FragmentMetaspaceSimple.java \ 430 -runtime/Thread/TestThreadDumpMonitorContention.java \ 431 -runtime/SharedArchiveFile/SharedBaseAddress.java \ 432 -runtime/memory/ReserveMemory.java \ 433 -runtime/Unsafe/RangeCheck.java \ 434 -runtime/SharedArchiveFile/CdsSameObjectAlignment.java \ 435 -runtime/SharedArchiveFile/DefaultUseWithClient.java \ 436 -runtime/Thread/CancellableThreadTest.java \ 437 -runtime/7158988/FieldMonitor.java 438 439 hotspot_runtime_closed = \ 440 sanity/ExecuteInternalVMTests.java \ 441 testlibrary_tests/TestMutuallyExclusivePlatformPredicates.java 442 443 hotspot_serviceability = \ 444 sanity/ExecuteInternalVMTests.java \ 445 serviceability/dcmd/compiler 446 447 hotspot_jprt = \ 448 :hotspot_wbapitest \ 449 :hotspot_compiler_1 \ 450 :hotspot_compiler_2 \ 451 :hotspot_compiler_3 \ 452 :hotspot_compiler_closed \ 453 :hotspot_gc \ 454 :hotspot_gc_closed \ 455 :hotspot_gc_gcold \ 456 :hotspot_runtime \ 457 :hotspot_runtime_closed \ 458 :hotspot_serviceability 459 460 #All tests that depends on nashorn extension. 461 # 462 needs_nashorn = \ 463 compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java 464 465 #All tests that do not depends on nashorn extension 466 # 467 not_needs_nashorn = \ 468 :jdk \ 469 -:needs_nashorn