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