< prev index next >

test/hotspot/jtreg/runtime/CommandLine/OptionsValidation/TestOptionsWithRanges.java

Print this page
rev 59076 : [mq]: 8243945


  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 // --- start auto-generated
  25 // the following portion is auto-generated by TestOptionsWithRanges_generate.sh. Do not edit manually.
  26 /*
  27  * @test
  28  * @bug 8205633
  29  * @summary Test VM Options with ranges (1 of 10)
  30  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  31  * @modules java.base/jdk.internal.misc
  32  *          java.management
  33  *          jdk.attach/sun.tools.attach
  34  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  35  * @run main/othervm/timeout=1800 TestOptionsWithRanges 1 of 10
  36  */
  37 /*
  38  * @test
  39  * @bug 8205633
  40  * @summary Test VM Options with ranges (2 of 10)
  41  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  42  * @modules java.base/jdk.internal.misc
  43  *          java.management
  44  *          jdk.attach/sun.tools.attach
  45  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  46  * @run main/othervm/timeout=1800 TestOptionsWithRanges 2 of 10
  47  */
  48 /*
  49  * @test
  50  * @bug 8205633
  51  * @summary Test VM Options with ranges (3 of 10)
  52  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  53  * @modules java.base/jdk.internal.misc
  54  *          java.management
  55  *          jdk.attach/sun.tools.attach
  56  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  57  * @run main/othervm/timeout=1800 TestOptionsWithRanges 3 of 10
  58  */
  59 /*
  60  * @test
  61  * @bug 8205633
  62  * @summary Test VM Options with ranges (4 of 10)
  63  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  64  * @modules java.base/jdk.internal.misc
  65  *          java.management
  66  *          jdk.attach/sun.tools.attach
  67  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  68  * @run main/othervm/timeout=1800 TestOptionsWithRanges 4 of 10
  69  */
  70 /*
  71  * @test
  72  * @bug 8205633
  73  * @summary Test VM Options with ranges (5 of 10)
  74  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  75  * @modules java.base/jdk.internal.misc
  76  *          java.management
  77  *          jdk.attach/sun.tools.attach
  78  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  79  * @run main/othervm/timeout=1800 TestOptionsWithRanges 5 of 10
  80  */
  81 /*
  82  * @test
  83  * @bug 8205633
  84  * @summary Test VM Options with ranges (6 of 10)
  85  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  86  * @modules java.base/jdk.internal.misc
  87  *          java.management
  88  *          jdk.attach/sun.tools.attach
  89  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  90  * @run main/othervm/timeout=1800 TestOptionsWithRanges 6 of 10
  91  */
  92 /*
  93  * @test
  94  * @bug 8205633
  95  * @summary Test VM Options with ranges (7 of 10)
  96  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  97  * @modules java.base/jdk.internal.misc
  98  *          java.management
  99  *          jdk.attach/sun.tools.attach
 100  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 101  * @run main/othervm/timeout=1800 TestOptionsWithRanges 7 of 10
 102  */
 103 /*
 104  * @test
 105  * @bug 8205633
 106  * @summary Test VM Options with ranges (8 of 10)
 107  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
 108  * @modules java.base/jdk.internal.misc
 109  *          java.management
 110  *          jdk.attach/sun.tools.attach
 111  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 112  * @run main/othervm/timeout=1800 TestOptionsWithRanges 8 of 10
 113  */
 114 /*
 115  * @test
 116  * @bug 8205633
 117  * @summary Test VM Options with ranges (9 of 10)
 118  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
 119  * @modules java.base/jdk.internal.misc
 120  *          java.management
 121  *          jdk.attach/sun.tools.attach
 122  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 123  * @run main/othervm/timeout=1800 TestOptionsWithRanges 9 of 10
 124  */
 125 /*
 126  * @test
 127  * @bug 8205633
 128  * @summary Test VM Options with ranges (10 of 10)
 129  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
 130  * @modules java.base/jdk.internal.misc
 131  *          java.management
 132  *          jdk.attach/sun.tools.attach
 133  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 134  * @run main/othervm/timeout=1800 TestOptionsWithRanges 10 of 10
 135  */
 136 // --- end auto-generated
 137 
 138 import java.util.ArrayList;
 139 import java.util.Collections;
 140 import java.util.List;
 141 import java.util.Map;
 142 import jdk.test.lib.Asserts;
 143 import optionsvalidation.JVMOption;
 144 import optionsvalidation.JVMOptionsUtils;
 145 
 146 public class TestOptionsWithRanges {
 147 
 148     private static Map<String, JVMOption> allOptionsAsMap;
 149 
 150     private static void excludeTestMaxRange(String optionName) {
 151         JVMOption option = allOptionsAsMap.get(optionName);
 152 
 153         if (option != null) {
 154             option.excludeTestMaxRange();




  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 // --- start auto-generated
  25 // the following portion is auto-generated by TestOptionsWithRanges_generate.sh. Do not edit manually.
  26 /*
  27  * @test
  28  * @bug 8205633
  29  * @summary Test VM Options with ranges (1 of 10)
  30  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  31  * @modules java.base/jdk.internal.misc
  32  *          java.management
  33  *          jdk.attach/sun.tools.attach
  34  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  35  * @run driver/timeout=1800 TestOptionsWithRanges 1 of 10
  36  */
  37 /*
  38  * @test
  39  * @bug 8205633
  40  * @summary Test VM Options with ranges (2 of 10)
  41  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  42  * @modules java.base/jdk.internal.misc
  43  *          java.management
  44  *          jdk.attach/sun.tools.attach
  45  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  46  * @run driver/timeout=1800 TestOptionsWithRanges 2 of 10
  47  */
  48 /*
  49  * @test
  50  * @bug 8205633
  51  * @summary Test VM Options with ranges (3 of 10)
  52  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  53  * @modules java.base/jdk.internal.misc
  54  *          java.management
  55  *          jdk.attach/sun.tools.attach
  56  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  57  * @run driver/timeout=1800 TestOptionsWithRanges 3 of 10
  58  */
  59 /*
  60  * @test
  61  * @bug 8205633
  62  * @summary Test VM Options with ranges (4 of 10)
  63  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  64  * @modules java.base/jdk.internal.misc
  65  *          java.management
  66  *          jdk.attach/sun.tools.attach
  67  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  68  * @run driver/timeout=1800 TestOptionsWithRanges 4 of 10
  69  */
  70 /*
  71  * @test
  72  * @bug 8205633
  73  * @summary Test VM Options with ranges (5 of 10)
  74  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  75  * @modules java.base/jdk.internal.misc
  76  *          java.management
  77  *          jdk.attach/sun.tools.attach
  78  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  79  * @run driver/timeout=1800 TestOptionsWithRanges 5 of 10
  80  */
  81 /*
  82  * @test
  83  * @bug 8205633
  84  * @summary Test VM Options with ranges (6 of 10)
  85  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  86  * @modules java.base/jdk.internal.misc
  87  *          java.management
  88  *          jdk.attach/sun.tools.attach
  89  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  90  * @run driver/timeout=1800 TestOptionsWithRanges 6 of 10
  91  */
  92 /*
  93  * @test
  94  * @bug 8205633
  95  * @summary Test VM Options with ranges (7 of 10)
  96  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  97  * @modules java.base/jdk.internal.misc
  98  *          java.management
  99  *          jdk.attach/sun.tools.attach
 100  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 101  * @run driver/timeout=1800 TestOptionsWithRanges 7 of 10
 102  */
 103 /*
 104  * @test
 105  * @bug 8205633
 106  * @summary Test VM Options with ranges (8 of 10)
 107  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
 108  * @modules java.base/jdk.internal.misc
 109  *          java.management
 110  *          jdk.attach/sun.tools.attach
 111  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 112  * @run driver/timeout=1800 TestOptionsWithRanges 8 of 10
 113  */
 114 /*
 115  * @test
 116  * @bug 8205633
 117  * @summary Test VM Options with ranges (9 of 10)
 118  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
 119  * @modules java.base/jdk.internal.misc
 120  *          java.management
 121  *          jdk.attach/sun.tools.attach
 122  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 123  * @run driver/timeout=1800 TestOptionsWithRanges 9 of 10
 124  */
 125 /*
 126  * @test
 127  * @bug 8205633
 128  * @summary Test VM Options with ranges (10 of 10)
 129  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
 130  * @modules java.base/jdk.internal.misc
 131  *          java.management
 132  *          jdk.attach/sun.tools.attach
 133  *          jdk.internal.jvmstat/sun.jvmstat.monitor
 134  * @run driver/timeout=1800 TestOptionsWithRanges 10 of 10
 135  */
 136 // --- end auto-generated
 137 
 138 import java.util.ArrayList;
 139 import java.util.Collections;
 140 import java.util.List;
 141 import java.util.Map;
 142 import jdk.test.lib.Asserts;
 143 import optionsvalidation.JVMOption;
 144 import optionsvalidation.JVMOptionsUtils;
 145 
 146 public class TestOptionsWithRanges {
 147 
 148     private static Map<String, JVMOption> allOptionsAsMap;
 149 
 150     private static void excludeTestMaxRange(String optionName) {
 151         JVMOption option = allOptionsAsMap.get(optionName);
 152 
 153         if (option != null) {
 154             option.excludeTestMaxRange();


< prev index next >