8151283: Implement setting jtreg @requires property vm.isG1Supported.
Reviewed-by: tschatzl, iignatyev, mchernov
--- a/hotspot/test/TEST.ROOT Tue Jun 21 12:09:36 2016 +0200
+++ b/hotspot/test/TEST.ROOT Tue Jun 21 18:37:04 2016 +0400
@@ -33,8 +33,18 @@
# Source files for classes that will be used at the beginning of each test suite run,
# to determine additional characteristics of the system for use with the @requires tag.
+# Note: compiled bootlibs code will be located in the folder 'bootClasses'
requires.extraPropDefns = ../../test/jtreg-ext/requires/VMProps.java
-requires.properties=sun.arch.data.model vm.simpleArch vm.flightRecorder
+requires.extraPropDefns.bootlibs = ../../test/lib/sun
+requires.extraPropDefns.vmOpts = -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:bootClasses
+requires.properties= \
+ sun.arch.data.model \
+ vm.simpleArch \
+ vm.flightRecorder \
+ vm.gc.G1 \
+ vm.gc.Serial \
+ vm.gc.Parallel \
+ vm.gc.ConcMarkSweep
# Tests using jtreg 4.2 b02 features
requiredVersion=4.2 b02