hotspot/test/test_env.sh
author lana
Sun, 28 Jun 2015 16:39:04 -0700
changeset 31240 9419a7f16a5c
parent 30760 751b9e1fb0e5
child 33121 6580bf263d00
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
    53
TESTOPTS="${TESTVMOPTS} ${TESTJAVAOPTS}"
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
    54
echo "TESTOPTS=${TESTOPTS}"
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
    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
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
   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
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
   109
  echo "Wrong TESTJAVA or TESTJAVAOPTS or TESTVMOPTS:"
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
   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
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
   114
${TESTJAVA}${FS}bin${FS}java ${TESTOPTS} -Xinternalversion > vm_version.out 2>&1
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   115
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   116
VM_TYPE="unknown"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   117
grep "Server" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   118
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   119
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   120
  VM_TYPE="server"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   121
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   122
grep "Client" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   123
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   124
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   125
  VM_TYPE="client"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   126
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   127
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   128
VM_BITS="32"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   129
grep "64-Bit" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   130
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   131
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   132
  VM_BITS="64"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   133
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   134
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   135
VM_OS="unknown"
28489
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   136
grep "aix" vm_version.out > ${NULL}
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   137
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   138
then
28489
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   139
  VM_OS="aix"
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   140
fi
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   141
grep "bsd" vm_version.out > ${NULL}
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   142
if [ $? = 0 ]
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   143
then
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   144
  VM_OS="bsd"
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   145
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   146
grep "linux" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   147
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   148
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   149
  VM_OS="linux"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   150
fi
28489
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   151
grep "solaris" vm_version.out > ${NULL}
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   152
if [ $? = 0 ]
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   153
then
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   154
  VM_OS="solaris"
f395f4b55ea1 8068013: [TESTBUG] Aix support in hotspot jtreg tests
goetz
parents: 25924
diff changeset
   155
fi
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   156
grep "windows" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   157
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   158
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   159
  VM_OS="windows"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   160
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   161
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   162
VM_CPU="unknown"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   163
grep "sparc" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   164
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   165
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   166
  VM_CPU="sparc"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   167
  if [ $VM_BITS = "64" ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   168
  then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   169
    VM_CPU="sparcv9"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   170
  fi
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
grep "x86" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   173
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   174
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   175
  VM_CPU="i386"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   176
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   177
grep "amd64" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   178
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   179
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   180
  VM_CPU="amd64"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   181
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   182
grep "arm" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   183
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   184
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   185
  VM_CPU="arm"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   186
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   187
grep "ppc" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   188
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   189
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   190
  VM_CPU="ppc"
30589
4722e25bfd6d 8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents: 28489
diff changeset
   191
  if [ $VM_BITS = "64" ]
4722e25bfd6d 8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents: 28489
diff changeset
   192
  then
4722e25bfd6d 8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents: 28489
diff changeset
   193
    VM_CPU="ppc64"
4722e25bfd6d 8078593: [TESTBUG] ppc: Enable jtreg tests for new features
goetz
parents: 28489
diff changeset
   194
  fi
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   195
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   196
grep "ia64" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   197
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   198
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   199
  VM_CPU="ia64"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   200
fi
30760
751b9e1fb0e5 8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents: 30589
diff changeset
   201
grep "aarch64" vm_version.out > ${NULL}
751b9e1fb0e5 8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents: 30589
diff changeset
   202
if [ $? = 0 ]
751b9e1fb0e5 8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents: 30589
diff changeset
   203
then
751b9e1fb0e5 8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents: 30589
diff changeset
   204
  VM_CPU="aarch64"
751b9e1fb0e5 8078834: [TESTBUG] Tests fails on ARM64 due to unknown hardware
skovalev
parents: 30589
diff changeset
   205
fi
16457
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   206
export VM_TYPE VM_BITS VM_OS VM_CPU
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   207
echo "VM_TYPE=${VM_TYPE}"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   208
echo "VM_BITS=${VM_BITS}"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   209
echo "VM_OS=${VM_OS}"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   210
echo "VM_CPU=${VM_CPU}"