author | chegar |
Thu, 17 Oct 2019 20:54:25 +0100 | |
branch | datagramsocketimpl-branch |
changeset 58679 | 9c3209ff7550 |
parent 54464 | 1f8938ce8564 |
permissions | -rw-r--r-- |
50908 | 1 |
#!/bin/bash |
2 |
# |
|
54464
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
3 |
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
50908 | 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 |
||
54464
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
25 |
while read -r fName pName timeoutInfo requireInfo |
50908 | 26 |
do |
27 |
fName="${fName}Test.java" |
|
28 |
echo "Generate $fName for $pName ..." |
|
29 |
||
54464
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
30 |
action="main" |
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
31 |
if [[ $timeoutInfo == timeout* ]] ; then |
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
32 |
action="$action/$timeoutInfo" |
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
33 |
else |
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
34 |
requireInfo="$timeoutInfo $requireInfo" |
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
35 |
fi |
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
36 |
|
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
37 |
|
50908 | 38 |
cat << EOF | sed 's/[[:blank:]]*$//' > $fName |
39 |
/* |
|
54464
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
40 |
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
50908 | 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 |
|
50914
07498f5b6a96
8206117: failed to get JDK properties for JVM w/o JVMCI
iignatyev
parents:
50908
diff
changeset
|
65 |
* @requires vm.opt.final.EnableJVMCI == true |
50908 | 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 |
* |
|
54464
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
75 |
* @run $action compiler.graalunit.common.GraalUnitTestLauncher -prefix $pName -exclude ExcludeList.txt |
50908 | 76 |
*/ |
54464
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
77 |
|
1f8938ce8564
8216551: GraalUnitTestLauncher should be executed as '@run driver'
epavlova
parents:
50914
diff
changeset
|
78 |
/* DO NOT MODIFY THIS FILE. GENERATED BY generateTests.sh */ |
50908 | 79 |
EOF |
80 |
||
81 |
done < TestPackages.txt |
|
82 |