author | ksrini |
Thu, 02 Jun 2016 17:31:38 -0700 | |
changeset 38838 | 3d6ea76b35d6 |
parent 35075 | ca79cbf3f106 |
child 42543 | 9e7ac7aff2d1 |
permissions | -rw-r--r-- |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
1 |
#!/bin/sh |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
2 |
# |
28489
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
3 |
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
4 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
5 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
6 |
# This code is free software; you can redistribute it and/or modify it |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
7 |
# under the terms of the GNU General Public License version 2 only, as |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
8 |
# published by the Free Software Foundation. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
9 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
10 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
11 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
12 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
13 |
# version 2 for more details (a copy is included in the LICENSE file that |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
14 |
# accompanied this code). |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
15 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
16 |
# You should have received a copy of the GNU General Public License version |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
17 |
# 2 along with this work; if not, write to the Free Software Foundation, |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
18 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
19 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
21 |
# or visit www.oracle.com if you need additional information or have any |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
22 |
# questions. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
23 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
24 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
25 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
26 |
# This Environment script was written to capture typically used environment |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
27 |
# setup for a given shell test. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
28 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
29 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
30 |
# TESTJAVA can be a JDK or JRE. If JRE you need to set COMPILEJAVA |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
31 |
if [ "${TESTJAVA}" = "" ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
32 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
33 |
echo "TESTJAVA not set. Test cannot execute. Failed." |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
34 |
exit 1 |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
35 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
36 |
echo "TESTJAVA=${TESTJAVA}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
37 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
38 |
# COMPILEJAVA requires a JDK, some shell test use javac,jar,etc |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
39 |
if [ "${COMPILEJAVA}" = "" ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
40 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
41 |
echo "COMPILEJAVA not set. Using TESTJAVA as default" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
42 |
COMPILEJAVA=${TESTJAVA} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
43 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
44 |
echo "COMPILEJAVA=${COMPILEJAVA}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
45 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
46 |
if [ "${TESTCLASSES}" = "" ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
47 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
48 |
echo "TESTCLASES not set. Using "." as default" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
49 |
TESTCLASSES=. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
50 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
51 |
echo "TESTCLASSES=${TESTCLASSES}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
52 |
|
25924 | 53 |
TESTOPTS="${TESTVMOPTS} ${TESTJAVAOPTS}" |
54 |
echo "TESTOPTS=${TESTOPTS}" |
|
55 |
||
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
56 |
# set platform-dependent variables |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
57 |
OS=`uname -s` |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
58 |
case "$OS" in |
28489
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
59 |
AIX | Darwin | Linux | SunOS ) |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
60 |
NULL=/dev/null |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
61 |
PS=":" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
62 |
FS="/" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
63 |
RM=/bin/rm |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
64 |
CP=/bin/cp |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
65 |
MV=/bin/mv |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
66 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
67 |
Windows_* ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
68 |
NULL=NUL |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
69 |
PS=";" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
70 |
FS="\\" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
71 |
RM=rm |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
72 |
CP=cp |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
73 |
MV=mv |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
74 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
75 |
CYGWIN_* ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
76 |
NULL=/dev/null |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
77 |
PS=";" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
78 |
FS="/" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
79 |
RM=rm |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
80 |
CP=cp |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
81 |
MV=mv |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
82 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
83 |
* ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
84 |
echo "Unrecognized system!" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
85 |
exit 1; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
86 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
87 |
esac |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
88 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
89 |
export NULL PS FS RM CP MV |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
90 |
echo "NULL =${NULL}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
91 |
echo "PS =${PS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
92 |
echo "FS =${FS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
93 |
echo "RM =${RM}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
94 |
echo "CP =${CP}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
95 |
echo "MV =${MV}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
96 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
97 |
# jtreg -classpathappend:<path> |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
98 |
JEMMYPATH=${CPAPPEND} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
99 |
CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
100 |
echo "CLASSPATH =${CLASSPATH}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
101 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
102 |
# Current directory is scratch directory |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
103 |
THIS_DIR=. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
104 |
echo "THIS_DIR=${THIS_DIR}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
105 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
106 |
# Check to ensure the java defined actually works |
25924 | 107 |
${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -version |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
108 |
if [ $? != 0 ]; then |
25924 | 109 |
echo "Wrong TESTJAVA or TESTJAVAOPTS or TESTVMOPTS:" |
110 |
echo ''$TESTJAVA'' ''$TESTJAVAOPTS'' ''$TESTVMOPTS'' |
|
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
111 |
exit 1 |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
112 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
113 |
|
33121
6580bf263d00
8078295: hotspot test_env.sh can set VM_CPU incorrectly
iklam
parents:
30760
diff
changeset
|
114 |
${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -Xinternalversion | sed -e 's/[(][^)]*[)]//g' -e 's/ by "[^"]*"//g' > vm_version.out 2>&1 |
6580bf263d00
8078295: hotspot test_env.sh can set VM_CPU incorrectly
iklam
parents:
30760
diff
changeset
|
115 |
echo "INT_VERSION=`cat vm_version.out 2>&1`" |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
116 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
117 |
VM_TYPE="unknown" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
118 |
grep "Server" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
119 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
120 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
121 |
VM_TYPE="server" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
122 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
123 |
grep "Client" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
124 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
125 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
126 |
VM_TYPE="client" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
127 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
128 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
129 |
VM_BITS="32" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
130 |
grep "64-Bit" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
131 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
132 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
133 |
VM_BITS="64" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
134 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
135 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
136 |
VM_OS="unknown" |
28489
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
137 |
grep "aix" vm_version.out > ${NULL} |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
138 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
139 |
then |
28489
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
140 |
VM_OS="aix" |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
141 |
fi |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
142 |
grep "bsd" vm_version.out > ${NULL} |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
143 |
if [ $? = 0 ] |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
144 |
then |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
145 |
VM_OS="bsd" |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
146 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
147 |
grep "linux" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
148 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
149 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
150 |
VM_OS="linux" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
151 |
fi |
28489
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
152 |
grep "solaris" vm_version.out > ${NULL} |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
153 |
if [ $? = 0 ] |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
154 |
then |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
155 |
VM_OS="solaris" |
f395f4b55ea1
8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents:
25924
diff
changeset
|
156 |
fi |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
157 |
grep "windows" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
158 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
159 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
160 |
VM_OS="windows" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
161 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
162 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
163 |
VM_CPU="unknown" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
164 |
grep "sparc" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
165 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
166 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
167 |
VM_CPU="sparc" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
168 |
if [ $VM_BITS = "64" ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
169 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
170 |
VM_CPU="sparcv9" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
171 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
172 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
173 |
grep "x86" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
174 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
175 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
176 |
VM_CPU="i386" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
177 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
178 |
grep "amd64" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
179 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
180 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
181 |
VM_CPU="amd64" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
182 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
183 |
grep "arm" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
184 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
185 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
186 |
VM_CPU="arm" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
187 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
188 |
grep "ppc" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
189 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
190 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
191 |
VM_CPU="ppc" |
30589
4722e25bfd6d
8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents:
28489
diff
changeset
|
192 |
if [ $VM_BITS = "64" ] |
4722e25bfd6d
8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents:
28489
diff
changeset
|
193 |
then |
4722e25bfd6d
8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents:
28489
diff
changeset
|
194 |
VM_CPU="ppc64" |
35075
ca79cbf3f106
8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
asmundak
parents:
33121
diff
changeset
|
195 |
grep "ppc64le" vm_version.out > ${NULL} |
ca79cbf3f106
8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
asmundak
parents:
33121
diff
changeset
|
196 |
if [ $? = 0 ] |
ca79cbf3f106
8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
asmundak
parents:
33121
diff
changeset
|
197 |
then |
ca79cbf3f106
8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
asmundak
parents:
33121
diff
changeset
|
198 |
VM_CPU="ppc64le" |
ca79cbf3f106
8073139: PPC64: User-visible arch directory and os.arch value on ppc64le cause issues with Java tooling
asmundak
parents:
33121
diff
changeset
|
199 |
fi |
30589
4722e25bfd6d
8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents:
28489
diff
changeset
|
200 |
fi |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
201 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
202 |
grep "ia64" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
203 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
204 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
205 |
VM_CPU="ia64" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
206 |
fi |
30760
751b9e1fb0e5
8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents:
30589
diff
changeset
|
207 |
grep "aarch64" vm_version.out > ${NULL} |
751b9e1fb0e5
8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents:
30589
diff
changeset
|
208 |
if [ $? = 0 ] |
751b9e1fb0e5
8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents:
30589
diff
changeset
|
209 |
then |
751b9e1fb0e5
8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents:
30589
diff
changeset
|
210 |
VM_CPU="aarch64" |
751b9e1fb0e5
8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents:
30589
diff
changeset
|
211 |
fi |
16457
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
212 |
export VM_TYPE VM_BITS VM_OS VM_CPU |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
213 |
echo "VM_TYPE=${VM_TYPE}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
214 |
echo "VM_BITS=${VM_BITS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
215 |
echo "VM_OS=${VM_OS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
216 |
echo "VM_CPU=${VM_CPU}" |