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 sanity/ \ 206 runtime/ \ 207 gc/ \ 208 -:needs_full_vm_compact1 \ 209 -:needs_full_vm_compact2 \ 210 -:needs_compact2 \ 211 -:needs_compact3 \ 212 -:needs_jre \ 213 -:needs_jdk 214 215 # All tests that explicitly set the G1 GC 216 # 217 needs_g1gc = \ 218 compiler/regalloc/C1ObjectSpillInLogicOp.java \ 219 gc/TestSystemGC.java \ 220 gc/arguments/TestAlignmentToUseLargePages.java \ 221 gc/arguments/TestG1HeapRegionSize.java \ 222 gc/arguments/TestG1HeapSizeFlags.java \ 223 gc/arguments/TestMaxHeapSizeTools.java \ 224 gc/arguments/TestMaxNewSize.java \ 225 gc/arguments/TestParallelGCThreads.java \ 226 gc/arguments/TestUseCompressedOopsErgo.java \ 227 gc/class_unloading/TestG1ClassUnloadingHWM.java \ 228 gc/g1/ \ 229 gc/metaspace/G1AddMetaspaceDependency.java \ 230 gc/metaspace/TestMetaspacePerfCounters.java \ 231 gc/startup_warnings/TestG1.java 232 233 # All tests that explicitly set the serial GC 234 # 235 needs_serialgc = \ 236 gc/TestSystemGC.java \ 237 gc/arguments/TestAlignmentToUseLargePages.java \ 238 gc/arguments/TestMaxNewSize.java \ 239 gc/arguments/TestSerialHeapSizeFlags.java \ 240 gc/arguments/TestUseCompressedOopsErgo.java \ 241 gc/defnew/HeapChangeLogging.java \ 242 gc/metaspace/TestMetaspacePerfCounters.java \ 243 gc/metaspace/TestPerfCountersAndMemoryPools.java \ 244 gc/startup_warnings/TestSerialGC.java 245 246 # All tests that explicitly set the parallel GC 247 # 248 needs_parallelgc = \ 249 gc/TestSystemGC.java \ 250 gc/arguments/TestAlignmentToUseLargePages.java \ 251 gc/arguments/TestMaxNewSize.java \ 252 gc/arguments/TestMinInitialErgonomics.java \ 253 gc/arguments/TestParallelGCThreads.java \ 254 gc/arguments/TestUseCompressedOopsErgo.java \ 255 gc/metaspace/TestMetaspacePerfCounters.java \ 256 gc/parallelScavenge/ \ 257 gc/startup_warnings/TestParallelGC.java \ 258 gc/startup_warnings/TestParallelScavengeSerialOld.java 259 260 # All tests that explicitly set the CMS GC 261 # 262 needs_cmsgc = \ 263 gc/6581734/Test6581734.java \ 264 gc/TestSystemGC.java \ 265 gc/arguments/TestAlignmentToUseLargePages.java \ 266 gc/arguments/TestCMSHeapSizeFlags.java \ 267 gc/arguments/TestMaxNewSize.java \ 268 gc/arguments/TestParallelGCThreads.java \ 269 gc/arguments/TestUseCompressedOopsErgo.java \ 270 gc/class_unloading/TestCMSClassUnloadingEnabledHWM.java \ 271 gc/concurrentMarkSweep/ \ 272 gc/startup_warnings/TestCMS.java \ 273 gc/startup_warnings/TestDefNewCMS.java \ 274 gc/startup_warnings/TestParNewCMS.java 275 276 # All tests that explicitly set some GC 277 # 278 needs_gc = \ 279 :needs_g1gc \ 280 :needs_serialgc \ 281 :needs_parallelgc \ 282 :needs_cmsgc 283 284 # All tests that do not set any GC explicitly 285 # 286 not_needs_gc = \ 287 :jdk \ 288 -:needs_gc 289 290 # All tests that could be executed with the G1 GC without VM flags conflict 291 # 292 applicable_g1gc = \ 293 :jdk \ 294 -:needs_serialgc \ 295 -:needs_parallelgc \ 296 -:needs_cmsgc 297 298 # All tests that could be executed with the serial GC without VM flags conflict 299 # 300 applicable_serialgc = \ 301 :jdk \ 302 -:needs_g1gc \ 303 -:needs_parallelgc \ 304 -:needs_cmsgc 305 306 # All tests that could be executed with the parallel GC without VM flags conflict 307 # 308 applicable_parallelgc = \ 309 :jdk \ 310 -:needs_g1gc \ 311 -:needs_serialgc \ 312 -:needs_cmsgc 313 314 # All tests that could be executed with the CMS GC without VM flags conflict 315 # 316 applicable_cmsgc = \ 317 :jdk \ 318 -:needs_g1gc \ 319 -:needs_serialgc \ 320 -:needs_parallelgc 321 322 323 # When called from top level the test suites use the hotspot_ prefix 324 hotspot_wbapitest = \ 325 sanity/ 326 327 hotspot_compiler_1 = \ 328 compiler/arraycopy/ \ 329 compiler/c1/ \ 330 compiler/c2/ \ 331 -compiler/c2/5091921/Test6850611.java \ 332 -compiler/c2/5091921/Test6890943.java \ 333 -compiler/c2/5091921/Test6905845.java \ 334 -compiler/c2/6340864 \ 335 -compiler/c2/6589834 \ 336 -compiler/c2/6603011 \ 337 -compiler/c2/6912517 \ 338 -compiler/c2/6792161 \ 339 -compiler/c2/7070134 \ 340 -compiler/c2/8004867 341 342 hotspot_compiler_2 = \ 343 compiler/classUnloading/ \ 344 compiler/codecache/ \ 345 compiler/codegen/ \ 346 compiler/cpuflags/ \ 347 compiler/dependencies/ \ 348 compiler/eliminateAutobox/ \ 349 compiler/escapeAnalysis/ \ 350 compiler/exceptions/ \ 351 compiler/floatingpoint/ \ 352 compiler/gcbarriers/ \ 353 compiler/inlining/ \ 354 compiler/integerArithmetic/ \ 355 compiler/interpreter/ \ 356 -compiler/codegen/7184394 357 358 hotspot_compiler_3 = \ 359 compiler/intrinsics/ \ 360 compiler/jsr292/ \ 361 compiler/loopopts/ \ 362 compiler/macronodes/ \ 363 compiler/osr/ \ 364 compiler/regalloc/ \ 365 compiler/runtime/ \ 366 compiler/startup/ \ 367 compiler/types/ \ 368 compiler/uncommontrap/ \ 369 compiler/unsafe/ \ 370 -compiler/intrinsics/bmi/verifycode \ 371 -compiler/intrinsics/mathexact \ 372 -compiler/intrinsics/multiplytolen \ 373 -compiler/intrinsics/sha \ 374 -compiler/loopopts/7052494 \ 375 -compiler/runtime/6826736 376 377 hotspot_compiler_closed = \ 378 closed/compiler/c1/ \ 379 closed/compiler/c2/ \ 380 closed/compiler/codegen/ \ 381 closed/compiler/escapeAnalysis/ \ 382 closed/compiler/interpreter/ \ 383 closed/compiler/jsr292/ \ 384 closed/compiler/loopopts/ \ 385 closed/compiler/oracle/ \ 386 closed/compiler/runtime/ \ 387 closed/compiler/symantec/ \ 388 -closed/compiler/c1/4477197 \ 389 -closed/compiler/c1/5040872 \ 390 -closed/compiler/c1/6507107 \ 391 -closed/compiler/c2/4344895 \ 392 -closed/compiler/c2/4485006 \ 393 -closed/compiler/c2/4523683 \ 394 -closed/compiler/c2/4620290 \ 395 -closed/compiler/c2/4998314 \ 396 -closed/compiler/c2/6329104 \ 397 -closed/compiler/c2/6434117 \ 398 -closed/compiler/c2/6547163 \ 399 -closed/compiler/c2/6563987 \ 400 -closed/compiler/c2/6595044 \ 401 -closed/compiler/codegen/6440479 \ 402 -closed/compiler/codegen/6603011 \ 403 -closed/compiler/interpreter/5034475 \ 404 -closed/compiler/jsr292/LongLambdaFormDynamicStackDepth.java \ 405 -closed/compiler/loopopts/4463485 \ 406 -closed/compiler/loopopts/8021898 407 408 hotspot_gc = \ 409 sanity/ExecuteInternalVMTests.java 410 411 hotspot_runtime = \ 412 runtime/ \ 413 -runtime/6888954/vmerrors.sh \ 414 -runtime/RedefineObject/TestRedefineObject.java \ 415 -runtime/8003720/Test8003720.java \ 416 -runtime/Metaspace/FragmentMetaspace.java \ 417 -runtime/Metaspace/FragmentMetaspaceSimple.java \ 418 -runtime/Thread/TestThreadDumpMonitorContention.java \ 419 -runtime/SharedArchiveFile/SharedBaseAddress.java \ 420 -runtime/memory/ReserveMemory.java \ 421 -runtime/Unsafe/RangeCheck.java \ 422 -runtime/SharedArchiveFile/CdsSameObjectAlignment.java \ 423 -runtime/SharedArchiveFile/DefaultUseWithClient.java \ 424 -runtime/Thread/CancellableThreadTest.java \ 425 -runtime/7158988/FieldMonitor.java 426 427 hotspot_runtime_closed = \ 428 sanity/ExecuteInternalVMTests.java 429 430 hotspot_serviceability = \ 431 sanity/ExecuteInternalVMTests.java \ 432 serviceability/dcmd/compiler 433 434 hotspot_all = \ 435 :hotspot_compiler_1 \ 436 :hotspot_compiler_2 \ 437 :hotspot_compiler_3 \ 438 :hotspot_compiler_closed \ 439 :hotspot_gc \ 440 :hotspot_runtime \ 441 :hotspot_serviceability 442 443 #All tests that depends on nashorn extension. 444 # 445 needs_nashorn = \ 446 compiler/jsr292/CreatesInterfaceDotEqualsCallInfo.java 447 448 #All tests that do not depends on nashorn extension 449 # 450 not_needs_nashorn = \ 451 :jdk \ 452 -:needs_nashorn