test/test_env.sh

changeset 7574
a51071796915
parent 0
f90c822e73f8
child 7871
3820a7d64760
equal deleted inserted replaced
7573:7b93939e093e 7574:a51071796915
1 #!/bin/sh 1 #!/bin/sh
2 # 2 #
3 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 3 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # 5 #
6 # This code is free software; you can redistribute it and/or modify it 6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as 7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation. 8 # published by the Free Software Foundation.
51 echo "TESTCLASSES=${TESTCLASSES}" 51 echo "TESTCLASSES=${TESTCLASSES}"
52 52
53 # set platform-dependent variables 53 # set platform-dependent variables
54 OS=`uname -s` 54 OS=`uname -s`
55 case "$OS" in 55 case "$OS" in
56 SunOS | Linux | Darwin ) 56 AIX | Darwin | Linux | SunOS )
57 NULL=/dev/null 57 NULL=/dev/null
58 PS=":" 58 PS=":"
59 FS="/" 59 FS="/"
60 RM=/bin/rm 60 RM=/bin/rm
61 CP=/bin/cp 61 CP=/bin/cp
128 then 128 then
129 VM_BITS="64" 129 VM_BITS="64"
130 fi 130 fi
131 131
132 VM_OS="unknown" 132 VM_OS="unknown"
133 grep "solaris" vm_version.out > ${NULL} 133 grep "aix" vm_version.out > ${NULL}
134 if [ $? = 0 ] 134 if [ $? = 0 ]
135 then 135 then
136 VM_OS="solaris" 136 VM_OS="aix"
137 fi
138 grep "bsd" vm_version.out > ${NULL}
139 if [ $? = 0 ]
140 then
141 VM_OS="bsd"
137 fi 142 fi
138 grep "linux" vm_version.out > ${NULL} 143 grep "linux" vm_version.out > ${NULL}
139 if [ $? = 0 ] 144 if [ $? = 0 ]
140 then 145 then
141 VM_OS="linux" 146 VM_OS="linux"
142 fi 147 fi
148 grep "solaris" vm_version.out > ${NULL}
149 if [ $? = 0 ]
150 then
151 VM_OS="solaris"
152 fi
143 grep "windows" vm_version.out > ${NULL} 153 grep "windows" vm_version.out > ${NULL}
144 if [ $? = 0 ] 154 if [ $? = 0 ]
145 then 155 then
146 VM_OS="windows" 156 VM_OS="windows"
147 fi
148 grep "bsd" vm_version.out > ${NULL}
149 if [ $? = 0 ]
150 then
151 VM_OS="bsd"
152 fi 157 fi
153 158
154 VM_CPU="unknown" 159 VM_CPU="unknown"
155 grep "sparc" vm_version.out > ${NULL} 160 grep "sparc" vm_version.out > ${NULL}
156 if [ $? = 0 ] 161 if [ $? = 0 ]

mercurial