1 # Generate the TestOptionsWithRanges_??.java files
   2 for i in {1..10}; do 
   3     file=TestOptionsWithRanges_$(printf %02d $i).java
   4     echo "Generating $file"
   5 cat > $file <<EOF
   6 /*
   7  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
   8  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   9  *
  10  * This code is free software; you can redistribute it and/or modify it
  11  * under the terms of the GNU General Public License version 2 only, as
  12  * published by the Free Software Foundation.
  13  *
  14  * This code is distributed in the hope that it will be useful, but WITHOUT
  15  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  16  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  17  * version 2 for more details (a copy is included in the LICENSE file that
  18  * accompanied this code).
  19  *
  20  * You should have received a copy of the GNU General Public License version
  21  * 2 along with this work; if not, write to the Free Software Foundation,
  22  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  23  *
  24  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  25  * or visit www.oracle.com if you need additional information or have any
  26  * questions.
  27  */
  28 
  29 // This file is auto-generated by $0. Do not edit manually.
  30 
  31 /*
  32  * @test
  33  * @bug 8205633
  34  * @summary Test VM Options with ranges
  35  * @library /test/lib /runtime/CommandLine/OptionsValidation/common
  36  * @modules java.base/jdk.internal.misc
  37  *          java.management
  38  *          jdk.attach/sun.tools.attach
  39  *          jdk.internal.jvmstat/sun.jvmstat.monitor
  40  * @run main/othervm/timeout=1800 TestOptionsWithRanges $i of 10
  41  */
  42 EOF
  43 done