hotspot/test/test_env.sh
author mgerdin
Mon, 11 Aug 2014 17:12:41 +0400
changeset 25958 8dc85547d6d6
parent 25924 4c3dd8541530
child 28489 f395f4b55ea1
permissions -rw-r--r--
8011397: JTREG needs to copy additional WhiteBox class file to JTwork/scratch/sun/hotspot Reviewed-by: kvn, iignatyev, mgerdin Contributed-by: andrey.x.zakharov@oracle.com
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
#
25924
4c3dd8541530 8051896: jtreg tests don't use $TESTJAVAOPTS
iignatyev
parents: 16457
diff changeset
     3
#  Copyright (c) 2013, 2014, 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
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
    59
  SunOS | Linux | Darwin )
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"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   136
grep "solaris" vm_version.out > ${NULL}
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
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   139
  VM_OS="solaris"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   140
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   141
grep "linux" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   142
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   143
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   144
  VM_OS="linux"
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 "windows" 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="windows"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   150
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   151
grep "bsd" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   152
if [ $? = 0 ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   153
then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   154
  VM_OS="bsd"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   155
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   156
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   157
VM_CPU="unknown"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   158
grep "sparc" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   159
if [ $? = 0 ]
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="sparc"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   162
  if [ $VM_BITS = "64" ]
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   163
  then
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   164
    VM_CPU="sparcv9"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   165
  fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   166
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   167
grep "x86" vm_version.out > ${NULL}
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   168
if [ $? = 0 ]
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="i386"
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 "amd64" 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="amd64"
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 "arm" 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="arm"
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 "ppc" 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="ppc"
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 "ia64" 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="ia64"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   191
fi
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   192
export VM_TYPE VM_BITS VM_OS VM_CPU
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   193
echo "VM_TYPE=${VM_TYPE}"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   194
echo "VM_BITS=${VM_BITS}"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   195
echo "VM_OS=${VM_OS}"
92af83361777 8009152: A number of jtreg tests need review/improvement
collins
parents:
diff changeset
   196
echo "VM_CPU=${VM_CPU}"