author | mcimadamore |
Thu, 06 Jun 2013 15:38:42 +0100 | |
changeset 18383 | 6d9d2e2b89f9 |
parent 16457 | 92af83361777 |
child 25924 | 4c3dd8541530 |
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 |
# |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
3 |
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
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 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
53 |
# set platform-dependent variables |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
54 |
OS=`uname -s` |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
55 |
case "$OS" in |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
56 |
SunOS | Linux | Darwin ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
57 |
NULL=/dev/null |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
58 |
PS=":" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
59 |
FS="/" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
60 |
RM=/bin/rm |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
61 |
CP=/bin/cp |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
62 |
MV=/bin/mv |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
63 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
64 |
Windows_* ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
65 |
NULL=NUL |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
66 |
PS=";" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
67 |
FS="\\" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
68 |
RM=rm |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
69 |
CP=cp |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
70 |
MV=mv |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
71 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
72 |
CYGWIN_* ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
73 |
NULL=/dev/null |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
74 |
PS=";" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
75 |
FS="/" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
76 |
RM=rm |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
77 |
CP=cp |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
78 |
MV=mv |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
79 |
;; |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
80 |
* ) |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
81 |
echo "Unrecognized system!" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
82 |
exit 1; |
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 |
esac |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
85 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
86 |
export NULL PS FS RM CP MV |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
87 |
echo "NULL =${NULL}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
88 |
echo "PS =${PS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
89 |
echo "FS =${FS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
90 |
echo "RM =${RM}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
91 |
echo "CP =${CP}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
92 |
echo "MV =${MV}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
93 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
94 |
# jtreg -classpathappend:<path> |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
95 |
JEMMYPATH=${CPAPPEND} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
96 |
CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
97 |
echo "CLASSPATH =${CLASSPATH}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
98 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
99 |
# Current directory is scratch directory |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
100 |
THIS_DIR=. |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
101 |
echo "THIS_DIR=${THIS_DIR}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
102 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
103 |
# Check to ensure the java defined actually works |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
104 |
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
105 |
if [ $? != 0 ]; then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
106 |
echo "Wrong TESTJAVA or TESTVMOPTS:" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
107 |
echo $TESTJAVA TESTVMOPTS |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
108 |
exit 1 |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
109 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
110 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
111 |
${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Xinternalversion > vm_version.out 2>&1 |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
112 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
113 |
VM_TYPE="unknown" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
114 |
grep "Server" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
115 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
116 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
117 |
VM_TYPE="server" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
118 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
119 |
grep "Client" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
120 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
121 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
122 |
VM_TYPE="client" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
123 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
124 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
125 |
VM_BITS="32" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
126 |
grep "64-Bit" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
127 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
128 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
129 |
VM_BITS="64" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
130 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
131 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
132 |
VM_OS="unknown" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
133 |
grep "solaris" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
134 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
135 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
136 |
VM_OS="solaris" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
137 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
138 |
grep "linux" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
139 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
140 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
141 |
VM_OS="linux" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
142 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
143 |
grep "windows" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
144 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
145 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
146 |
VM_OS="windows" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
147 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
148 |
grep "bsd" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
149 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
150 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
151 |
VM_OS="bsd" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
152 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
153 |
|
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
154 |
VM_CPU="unknown" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
155 |
grep "sparc" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
156 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
157 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
158 |
VM_CPU="sparc" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
159 |
if [ $VM_BITS = "64" ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
160 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
161 |
VM_CPU="sparcv9" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
162 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
163 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
164 |
grep "x86" 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="i386" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
168 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
169 |
grep "amd64" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
170 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
171 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
172 |
VM_CPU="amd64" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
173 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
174 |
grep "arm" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
175 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
176 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
177 |
VM_CPU="arm" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
178 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
179 |
grep "ppc" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
180 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
181 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
182 |
VM_CPU="ppc" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
183 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
184 |
grep "ia64" vm_version.out > ${NULL} |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
185 |
if [ $? = 0 ] |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
186 |
then |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
187 |
VM_CPU="ia64" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
188 |
fi |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
189 |
export VM_TYPE VM_BITS VM_OS VM_CPU |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
190 |
echo "VM_TYPE=${VM_TYPE}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
191 |
echo "VM_BITS=${VM_BITS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
192 |
echo "VM_OS=${VM_OS}" |
92af83361777
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
193 |
echo "VM_CPU=${VM_CPU}" |