Mercurial > hg > graal-compiler
annotate test/test_env.sh @ 20338:8d5f66b42c53
8055525: Bigapp weblogic+medrec fails to startup after JDK-8038423
Summary: If large pages are enabled and configured in Linux, the VM always pre-commits the entire space. The VM fails verification of the commit of the initial heap because some internal data structure marked all memory pages of the heap as committed during initialization. This makes the code think that we attempted a double-commit during first allocation of the heap. Remove the initial marking of memory pages of the heap to committed.
Reviewed-by: mgerdin
author | tschatzl |
---|---|
date | Wed, 20 Aug 2014 14:34:40 +0200 |
parents | 04d6d4322c6a |
children |
rev | line source |
---|---|
8831
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
1 #!/bin/sh |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
2 # |
04d6d4322c6a
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. |
04d6d4322c6a
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. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
5 # |
04d6d4322c6a
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 |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
8 # published by the Free Software Foundation. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
9 # |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
04d6d4322c6a
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 |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
14 # accompanied this code). |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
15 # |
04d6d4322c6a
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 |
04d6d4322c6a
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, |
04d6d4322c6a
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. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
19 # |
04d6d4322c6a
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 |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
22 # questions. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
23 # |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
24 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
25 # |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
26 # This Environment script was written to capture typically used environment |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
27 # setup for a given shell test. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
28 # |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
29 |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
31 if [ "${TESTJAVA}" = "" ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
32 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
33 echo "TESTJAVA not set. Test cannot execute. Failed." |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
34 exit 1 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
35 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
36 echo "TESTJAVA=${TESTJAVA}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
37 |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
39 if [ "${COMPILEJAVA}" = "" ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
40 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
41 echo "COMPILEJAVA not set. Using TESTJAVA as default" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
42 COMPILEJAVA=${TESTJAVA} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
43 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
44 echo "COMPILEJAVA=${COMPILEJAVA}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
45 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
46 if [ "${TESTCLASSES}" = "" ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
47 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
48 echo "TESTCLASES not set. Using "." as default" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
49 TESTCLASSES=. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
50 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
51 echo "TESTCLASSES=${TESTCLASSES}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
52 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
53 # set platform-dependent variables |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
54 OS=`uname -s` |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
55 case "$OS" in |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
56 SunOS | Linux | Darwin ) |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
57 NULL=/dev/null |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
58 PS=":" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
59 FS="/" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
60 RM=/bin/rm |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
61 CP=/bin/cp |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
62 MV=/bin/mv |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
63 ;; |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
64 Windows_* ) |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
65 NULL=NUL |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
66 PS=";" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
67 FS="\\" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
68 RM=rm |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
69 CP=cp |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
70 MV=mv |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
71 ;; |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
72 CYGWIN_* ) |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
73 NULL=/dev/null |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
74 PS=";" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
75 FS="/" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
76 RM=rm |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
77 CP=cp |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
78 MV=mv |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
79 ;; |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
80 * ) |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
81 echo "Unrecognized system!" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
82 exit 1; |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
83 ;; |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
84 esac |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
85 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
86 export NULL PS FS RM CP MV |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
87 echo "NULL =${NULL}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
88 echo "PS =${PS}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
89 echo "FS =${FS}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
90 echo "RM =${RM}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
91 echo "CP =${CP}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
92 echo "MV =${MV}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
93 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
94 # jtreg -classpathappend:<path> |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
95 JEMMYPATH=${CPAPPEND} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
96 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
97 echo "CLASSPATH =${CLASSPATH}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
98 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
99 # Current directory is scratch directory |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
100 THIS_DIR=. |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
101 echo "THIS_DIR=${THIS_DIR}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
102 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
103 # Check to ensure the java defined actually works |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
104 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -version |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
105 if [ $? != 0 ]; then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
106 echo "Wrong TESTJAVA or TESTVMOPTS:" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
107 echo $TESTJAVA TESTVMOPTS |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
108 exit 1 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
109 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
110 |
04d6d4322c6a
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 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
112 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
113 VM_TYPE="unknown" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
114 grep "Server" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
115 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
116 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
117 VM_TYPE="server" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
118 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
119 grep "Client" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
120 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
121 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
122 VM_TYPE="client" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
123 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
124 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
125 VM_BITS="32" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
126 grep "64-Bit" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
127 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
128 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
129 VM_BITS="64" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
130 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
131 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
132 VM_OS="unknown" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
133 grep "solaris" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
134 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
135 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
136 VM_OS="solaris" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
137 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
138 grep "linux" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
139 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
140 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
141 VM_OS="linux" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
142 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
143 grep "windows" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
144 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
145 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
146 VM_OS="windows" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
147 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
148 grep "bsd" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
149 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
150 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
151 VM_OS="bsd" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
152 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
153 |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
154 VM_CPU="unknown" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
155 grep "sparc" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
156 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
157 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
158 VM_CPU="sparc" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
159 if [ $VM_BITS = "64" ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
160 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
161 VM_CPU="sparcv9" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
162 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
163 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
164 grep "x86" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
165 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
166 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
167 VM_CPU="i386" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
168 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
169 grep "amd64" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
170 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
171 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
172 VM_CPU="amd64" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
173 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
174 grep "arm" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
175 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
176 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
177 VM_CPU="arm" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
178 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
179 grep "ppc" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
180 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
181 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
182 VM_CPU="ppc" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
183 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
184 grep "ia64" vm_version.out > ${NULL} |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
185 if [ $? = 0 ] |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
186 then |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
187 VM_CPU="ia64" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
188 fi |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
189 export VM_TYPE VM_BITS VM_OS VM_CPU |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
190 echo "VM_TYPE=${VM_TYPE}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
191 echo "VM_BITS=${VM_BITS}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
192 echo "VM_OS=${VM_OS}" |
04d6d4322c6a
8009152: A number of jtreg tests need review/improvement
collins
parents:
diff
changeset
|
193 echo "VM_CPU=${VM_CPU}" |