aoqi@0: # aoqi@0: # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. aoqi@0: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: # aoqi@0: # This code is free software; you can redistribute it and/or modify it aoqi@0: # under the terms of the GNU General Public License version 2 only, as aoqi@0: # published by the Free Software Foundation. aoqi@0: # aoqi@0: # This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: # version 2 for more details (a copy is included in the LICENSE file that aoqi@0: # accompanied this code). aoqi@0: # aoqi@0: # You should have received a copy of the GNU General Public License version aoqi@0: # 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: # aoqi@0: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: # or visit www.oracle.com if you need additional information or have any aoqi@0: # questions. aoqi@0: # aoqi@0: aoqi@0: # Profile-based Test Group Definitions aoqi@0: # aoqi@0: # These groups define the tests that cover the different possible runtimes: aoqi@0: # - compact1, compact2, compact3, full JRE, JDK aoqi@0: # aoqi@0: # In addition they support testing of the minimal VM on compact1 and compact2. aoqi@0: # Essentially this defines groups based around the specified API's and VM aoqi@0: # services available in the runtime. aoqi@0: # aoqi@0: # The groups are defined hierarchically in two forms: aoqi@0: # - The need_xxx groups list all the tests that have a dependency on aoqi@0: # a specific profile. This is either because it tests a feature in aoqi@0: # that profile, or the test infrastructure uses a feature in that aoqi@0: # profile. aoqi@0: # - The primary groups are defined in terms of the other primary groups aoqi@0: # combined with the needs_xxx groups (including and excluding them as aoqi@0: # appropriate). For example the jre can run all tests from compact3, plus aoqi@0: # those from needs_jre, but excluding those from need_jdk. aoqi@0: # aoqi@0: # The bottom group defines all the actual tests to be considered, simply aoqi@0: # by listing the top-level test directories. aoqi@0: # aoqi@0: # To use a group simply list it on the jtreg command line eg: aoqi@0: # jtreg :jdk aoqi@0: # runs all tests. While aoqi@0: # jtreg :compact2 aoqi@0: # runs those tests that only require compact1 and compact2 API's. aoqi@0: # aoqi@0: aoqi@0: # Full JDK can run all tests aoqi@0: # aoqi@0: jdk = \ aoqi@0: :jre \ aoqi@0: :needs_jdk aoqi@0: aoqi@0: # Tests that require a full JDK to execute. Either they test a feature aoqi@0: # only in the JDK or they use tools that are only in the JDK. The latter aoqi@0: # can be resolved in some cases by using tools from the compile-jdk. aoqi@0: # aoqi@0: needs_jdk = \ aoqi@0: gc/TestG1ZeroPGCTJcmdThreadPrint.java \ aoqi@0: gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java \ aoqi@0: gc/metaspace/TestMetaspacePerfCounters.java \ aoqi@0: gc/metaspace/TestPerfCountersAndMemoryPools.java \ aoqi@0: runtime/6819213/TestBootNativeLibraryPath.java \ aoqi@0: runtime/6925573/SortMethodsTest.java \ aoqi@0: runtime/7107135/Test7107135.sh \ aoqi@0: runtime/7158988/FieldMonitor.java \ aoqi@0: runtime/7194254/Test7194254.java \ aoqi@0: runtime/jsig/Test8017498.sh \ aoqi@0: runtime/Metaspace/FragmentMetaspace.java \ aoqi@0: runtime/NMT/BaselineWithParameter.java \ aoqi@0: runtime/NMT/JcmdScale.java \ aoqi@0: runtime/NMT/JcmdWithNMTDisabled.java \ aoqi@0: runtime/NMT/MallocTestType.java \ aoqi@0: runtime/NMT/ReleaseCommittedMemory.java \ aoqi@0: runtime/NMT/ShutdownTwice.java \ aoqi@0: runtime/NMT/SummaryAfterShutdown.java \ aoqi@0: runtime/NMT/SummarySanityCheck.java \ aoqi@0: runtime/NMT/ThreadedMallocTestType.java \ aoqi@0: runtime/NMT/ThreadedVirtualAllocTestType.java \ aoqi@0: runtime/NMT/VirtualAllocTestType.java \ aoqi@0: runtime/RedefineObject/TestRedefineObject.java \ aoqi@0: runtime/Thread/TestThreadDumpMonitorContention.java \ aoqi@0: runtime/XCheckJniJsig/XCheckJSig.java \ aoqi@0: serviceability/attach/AttachWithStalePidFile.java \ aoqi@0: serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java aoqi@0: aoqi@0: aoqi@0: # JRE adds further tests to compact3 aoqi@0: # aoqi@0: jre = \ aoqi@0: :compact3 \ aoqi@0: :needs_jre \ aoqi@0: -:needs_jdk aoqi@0: aoqi@0: # Tests that require the full JRE aoqi@0: # aoqi@0: needs_jre = \ aoqi@0: compiler/6852078/Test6852078.java \ aoqi@0: compiler/7047069/Test7047069.java \ aoqi@0: runtime/6294277/SourceDebugExtension.java \ aoqi@0: runtime/ClassFile/JsrRewriting.java \ aoqi@0: runtime/ClassFile/OomWhileParsingRepeatedJsr.java aoqi@0: aoqi@0: # Compact 3 adds further tests to compact2 aoqi@0: # aoqi@0: compact3 = \ aoqi@0: :compact2 \ aoqi@0: :needs_compact3 \ aoqi@0: -:needs_jre \ aoqi@0: -:needs_jdk aoqi@0: aoqi@0: aoqi@0: # Tests that require compact3 API's aoqi@0: # aoqi@0: needs_compact3 = \ aoqi@0: compiler/whitebox/DeoptimizeMethodTest.java \ aoqi@0: compiler/whitebox/SetForceInlineMethodTest.java \ aoqi@0: compiler/whitebox/SetDontInlineMethodTest.java \ aoqi@0: compiler/whitebox/DeoptimizeAllTest.java \ aoqi@0: compiler/whitebox/MakeMethodNotCompilableTest.java \ aoqi@0: compiler/whitebox/ClearMethodStateTest.java \ aoqi@0: compiler/whitebox/EnqueueMethodForCompilationTest.java \ aoqi@0: compiler/whitebox/IsMethodCompilableTest.java \ aoqi@0: gc/6581734/Test6581734.java \ aoqi@0: gc/7072527/TestFullGCCount.java \ aoqi@0: gc/g1/TestHumongousAllocInitialMark.java \ aoqi@0: gc/arguments/TestG1HeapRegionSize.java \ aoqi@0: gc/metaspace/TestMetaspaceMemoryPool.java \ aoqi@0: gc/arguments/TestDynMinHeapFreeRatio.java \ aoqi@0: gc/arguments/TestDynMaxHeapFreeRatio.java \ aoqi@0: runtime/InternalApi/ThreadCpuTimesDeadlock.java \ aoqi@0: serviceability/threads/TestFalseDeadLock.java \ aoqi@0: serviceability/jvmti/GetObjectSizeOverflow.java \ aoqi@0: serviceability/jvmti/TestRedefineWithUnresolvedClass.java \ aoqi@0: compiler/tiered/NonTieredLevelsTest.java \ aoqi@0: compiler/tiered/TieredLevelsTest.java \ aoqi@0: compiler/intrinsics/bmi/verifycode aoqi@0: aoqi@0: # Compact 2 adds full VM tests aoqi@0: compact2 = \ aoqi@0: :compact2_minimal \ aoqi@0: :compact1 \ aoqi@0: :needs_full_vm_compact2 \ aoqi@0: -:needs_compact3 \ aoqi@0: -:needs_jre \ aoqi@0: -:needs_jdk aoqi@0: aoqi@0: # Tests that require compact2 API's and a full VM aoqi@0: # aoqi@0: needs_full_vm_compact2 = aoqi@0: aoqi@0: # Compact 1 adds full VM tests aoqi@0: # aoqi@0: compact1 = \ aoqi@0: :compact1_minimal \ aoqi@0: :needs_full_vm_compact1 \ aoqi@0: -:needs_compact2 \ aoqi@0: -:needs_full_vm_compact2 \ aoqi@0: -:needs_compact3 \ aoqi@0: -:needs_jre \ aoqi@0: -:needs_jdk aoqi@0: aoqi@0: # Tests that require compact1 API's and a full VM aoqi@0: # aoqi@0: needs_full_vm_compact1 = \ aoqi@0: runtime/NMT \ aoqi@0: gc/g1/TestRegionAlignment.java \ aoqi@0: gc/g1/TestShrinkToOneRegion.java \ aoqi@0: gc/metaspace/G1AddMetaspaceDependency.java \ aoqi@0: gc/startup_warnings/TestCMS.java \ aoqi@0: gc/startup_warnings/TestCMSIncrementalMode.java \ aoqi@0: gc/startup_warnings/TestCMSNoIncrementalMode.java \ aoqi@0: gc/startup_warnings/TestDefaultMaxRAMFraction.java \ aoqi@0: gc/startup_warnings/TestDefNewCMS.java \ aoqi@0: gc/startup_warnings/TestIncGC.java \ aoqi@0: gc/startup_warnings/TestParallelGC.java \ aoqi@0: gc/startup_warnings/TestParallelScavengeSerialOld.java \ aoqi@0: gc/startup_warnings/TestParNewCMS.java \ aoqi@0: gc/startup_warnings/TestParNewSerialOld.java \ aoqi@0: runtime/6929067/Test6929067.sh \ aoqi@0: runtime/SharedArchiveFile/SharedArchiveFile.java aoqi@0: aoqi@0: # Minimal VM on Compact 2 adds in some compact2 tests aoqi@0: # aoqi@0: compact2_minimal = \ aoqi@0: :compact1_minimal \ aoqi@0: :needs_compact2 \ aoqi@0: -:needs_full_vm_compact2 \ aoqi@0: -:needs_compact3 \ aoqi@0: -:needs_jre \ aoqi@0: -:needs_jdk aoqi@0: aoqi@0: # Tests that require compact2 API's aoqi@0: # aoqi@0: needs_compact2 = \ aoqi@0: compiler/6589834/Test_ia32.java aoqi@0: aoqi@0: # All tests that run on the most minimal configuration: Minimal VM on Compact 1 aoqi@0: compact1_minimal = \ aoqi@0: serviceability/ \ aoqi@0: compiler/ \ aoqi@0: testlibrary/ \ aoqi@0: testlibrary_tests/ \ aoqi@0: sanity/ \ aoqi@0: runtime/ \ aoqi@0: gc/ \ aoqi@0: -:needs_full_vm_compact1 \ aoqi@0: -:needs_full_vm_compact2 \ aoqi@0: -:needs_compact2 \ aoqi@0: -:needs_compact3 \ aoqi@0: -:needs_jre \ aoqi@0: -:needs_jdk