< prev index next >

test/hotspot/jtreg/compiler/graalunit/generateTests.sh

Print this page


   1 #!/bin/bash
   2 #
   3 # Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 while read -r fName pName timeoutInfo requireInfo
  26 do
  27   fName="${fName}Test.java"
  28   echo "Generate $fName for $pName ..."
  29 
  30   action="main"
  31   if [[ $timeoutInfo == timeout* ]] ; then
  32      action="$action/$timeoutInfo"  
  33   else
  34      requireInfo="$timeoutInfo $requireInfo"
  35   fi
  36 
  37   
  38   cat << EOF | sed 's/[[:blank:]]*$//' > $fName
  39 /*
  40  * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
  41  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  42  *
  43  * This code is free software; you can redistribute it and/or modify it
  44  * under the terms of the GNU General Public License version 2 only, as
  45  * published by the Free Software Foundation.
  46  *
  47  * This code is distributed in the hope that it will be useful, but WITHOUT
  48  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  49  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  50  * version 2 for more details (a copy is included in the LICENSE file that
  51  * accompanied this code).
  52  *
  53  * You should have received a copy of the GNU General Public License version
  54  * 2 along with this work; if not, write to the Free Software Foundation,
  55  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  56  *
  57  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  58  * or visit www.oracle.com if you need additional information or have any
  59  * questions.
  60  */
  61 
  62 /*
  63  * @test
  64  * @summary
  65  * @requires vm.opt.final.EnableJVMCI == true
  66  * $requireInfo
  67  * @modules jdk.internal.vm.compiler
  68  *
  69  * @library /test/lib /compiler/graalunit /
  70  *
  71  * @build compiler.graalunit.common.GraalUnitTestLauncher
  72  *
  73  * @run driver jdk.test.lib.FileInstaller ../../ProblemList-graal.txt ExcludeList.txt
  74  *
  75  * @run $action compiler.graalunit.common.GraalUnitTestLauncher -prefix $pName -exclude ExcludeList.txt
  76  */
  77  
  78 /* DO NOT MODIFY THIS FILE. GENERATED BY generateTests.sh */
  79 EOF
  80 
  81 done < TestPackages.txt
  82 
   1 #!/bin/bash
   2 #
   3 # Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
   4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   5 #
   6 # This code is free software; you can redistribute it and/or modify it
   7 # under the terms of the GNU General Public License version 2 only, as
   8 # published by the Free Software Foundation.
   9 #
  10 # This code is distributed in the hope that it will be useful, but WITHOUT
  11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  13 # version 2 for more details (a copy is included in the LICENSE file that
  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 while read -r fName pName requireInfo
  26 do
  27   fName="${fName}Test.java"
  28   echo "Generate $fName for $pName ..."
  29 








  30   cat << EOF | sed 's/[[:blank:]]*$//' > $fName
  31 /*
  32  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
  33  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  34  *
  35  * This code is free software; you can redistribute it and/or modify it
  36  * under the terms of the GNU General Public License version 2 only, as
  37  * published by the Free Software Foundation.
  38  *
  39  * This code is distributed in the hope that it will be useful, but WITHOUT
  40  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  41  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  42  * version 2 for more details (a copy is included in the LICENSE file that
  43  * accompanied this code).
  44  *
  45  * You should have received a copy of the GNU General Public License version
  46  * 2 along with this work; if not, write to the Free Software Foundation,
  47  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  48  *
  49  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  50  * or visit www.oracle.com if you need additional information or have any
  51  * questions.
  52  */
  53 
  54 /*
  55  * @test
  56  * @summary
  57  * @requires vm.opt.final.EnableJVMCI == true
  58  * $requireInfo
  59  * @modules jdk.internal.vm.compiler
  60  *
  61  * @library /test/lib /compiler/graalunit /
  62  *
  63  * @build compiler.graalunit.common.GraalUnitTestLauncher
  64  *
  65  * @run driver jdk.test.lib.FileInstaller ../../ProblemList-graal.txt ExcludeList.txt
  66  *
  67  * @run main/othervm compiler.graalunit.common.GraalUnitTestLauncher -prefix $pName -exclude ExcludeList.txt
  68  */


  69 EOF
  70 
  71 done < TestPackages.txt
  72 
< prev index next >