annotate test/jprt.config @ 3237:399aa66d375e

Fixed a bug in which the valueEquals method was misused. The method does only check the equality of the node data and not full GVN equality by taking inputs and successors into account.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 27 Jul 2011 14:16:38 -0700
parents c18cbe5936b8
children f08d439fab8c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a61af66fc99e Initial load
duke
parents:
diff changeset
1 #!echo "This is not a shell script"
a61af66fc99e Initial load
duke
parents:
diff changeset
2 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
3 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
4 # Copyright (c) 2006, 2007, Oracle and/or its affiliates. All rights reserved.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
a61af66fc99e Initial load
duke
parents:
diff changeset
6 #
a61af66fc99e Initial load
duke
parents:
diff changeset
7 # This code is free software; you can redistribute it and/or modify it
a61af66fc99e Initial load
duke
parents:
diff changeset
8 # under the terms of the GNU General Public License version 2 only, as
a61af66fc99e Initial load
duke
parents:
diff changeset
9 # published by the Free Software Foundation.
a61af66fc99e Initial load
duke
parents:
diff changeset
10 #
a61af66fc99e Initial load
duke
parents:
diff changeset
11 # This code is distributed in the hope that it will be useful, but WITHOUT
a61af66fc99e Initial load
duke
parents:
diff changeset
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a61af66fc99e Initial load
duke
parents:
diff changeset
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a61af66fc99e Initial load
duke
parents:
diff changeset
14 # version 2 for more details (a copy is included in the LICENSE file that
a61af66fc99e Initial load
duke
parents:
diff changeset
15 # accompanied this code).
a61af66fc99e Initial load
duke
parents:
diff changeset
16 #
a61af66fc99e Initial load
duke
parents:
diff changeset
17 # You should have received a copy of the GNU General Public License version
a61af66fc99e Initial load
duke
parents:
diff changeset
18 # 2 along with this work; if not, write to the Free Software Foundation,
a61af66fc99e Initial load
duke
parents:
diff changeset
19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
a61af66fc99e Initial load
duke
parents:
diff changeset
20 #
1552
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
22 # or visit www.oracle.com if you need additional information or have any
c18cbe5936b8 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 0
diff changeset
23 # questions.
0
a61af66fc99e Initial load
duke
parents:
diff changeset
24 #
a61af66fc99e Initial load
duke
parents:
diff changeset
25 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
26
a61af66fc99e Initial load
duke
parents:
diff changeset
27 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
28 #
a61af66fc99e Initial load
duke
parents:
diff changeset
29 # JPRT shell configuration for testing.
a61af66fc99e Initial load
duke
parents:
diff changeset
30 #
a61af66fc99e Initial load
duke
parents:
diff changeset
31 # Input environment variables:
a61af66fc99e Initial load
duke
parents:
diff changeset
32 # Windows Only:
a61af66fc99e Initial load
duke
parents:
diff changeset
33 # PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
34 # ROOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
35 #
a61af66fc99e Initial load
duke
parents:
diff changeset
36 # Output variable settings:
a61af66fc99e Initial load
duke
parents:
diff changeset
37 # make Full path to GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
38 #
a61af66fc99e Initial load
duke
parents:
diff changeset
39 # Output environment variables:
a61af66fc99e Initial load
duke
parents:
diff changeset
40 # PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
41 #
a61af66fc99e Initial load
duke
parents:
diff changeset
42 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
43
a61af66fc99e Initial load
duke
parents:
diff changeset
44 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
45 # Error
a61af66fc99e Initial load
duke
parents:
diff changeset
46 error() # message
a61af66fc99e Initial load
duke
parents:
diff changeset
47 {
a61af66fc99e Initial load
duke
parents:
diff changeset
48 echo "ERROR: $1"
a61af66fc99e Initial load
duke
parents:
diff changeset
49 exit 6
a61af66fc99e Initial load
duke
parents:
diff changeset
50 }
a61af66fc99e Initial load
duke
parents:
diff changeset
51 # Directory must exist
a61af66fc99e Initial load
duke
parents:
diff changeset
52 dirMustExist() # dir name
a61af66fc99e Initial load
duke
parents:
diff changeset
53 {
a61af66fc99e Initial load
duke
parents:
diff changeset
54 if [ ! -d "$1" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
55 error "Directory for $2 does not exist: $1"
a61af66fc99e Initial load
duke
parents:
diff changeset
56 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
57 }
a61af66fc99e Initial load
duke
parents:
diff changeset
58 # File must exist
a61af66fc99e Initial load
duke
parents:
diff changeset
59 fileMustExist() # dir name
a61af66fc99e Initial load
duke
parents:
diff changeset
60 {
a61af66fc99e Initial load
duke
parents:
diff changeset
61 if [ ! -f "$1" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
62 error "File for $2 does not exist: $1"
a61af66fc99e Initial load
duke
parents:
diff changeset
63 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
64 }
a61af66fc99e Initial load
duke
parents:
diff changeset
65 #############################################################################
a61af66fc99e Initial load
duke
parents:
diff changeset
66
a61af66fc99e Initial load
duke
parents:
diff changeset
67 # Should be set by JPRT as the 3 basic inputs
a61af66fc99e Initial load
duke
parents:
diff changeset
68 slashjava="${ALT_SLASH_JAVA}"
a61af66fc99e Initial load
duke
parents:
diff changeset
69 if [ "${slashjava}" = "" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
70 slashjava=/java
a61af66fc99e Initial load
duke
parents:
diff changeset
71 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
72
a61af66fc99e Initial load
duke
parents:
diff changeset
73 # Check input
a61af66fc99e Initial load
duke
parents:
diff changeset
74 dirMustExist "${slashjava}" ALT_SLASH_JAVA
a61af66fc99e Initial load
duke
parents:
diff changeset
75
a61af66fc99e Initial load
duke
parents:
diff changeset
76 # Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
a61af66fc99e Initial load
duke
parents:
diff changeset
77 osname=`uname -s`
a61af66fc99e Initial load
duke
parents:
diff changeset
78 if [ "${osname}" = SunOS ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
79
a61af66fc99e Initial load
duke
parents:
diff changeset
80 # SOLARIS: Sparc or X86
a61af66fc99e Initial load
duke
parents:
diff changeset
81 osarch=`uname -p`
a61af66fc99e Initial load
duke
parents:
diff changeset
82 if [ "${osarch}" = sparc ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
83 solaris_arch=sparc
a61af66fc99e Initial load
duke
parents:
diff changeset
84 else
a61af66fc99e Initial load
duke
parents:
diff changeset
85 solaris_arch=i386
a61af66fc99e Initial load
duke
parents:
diff changeset
86 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
87
a61af66fc99e Initial load
duke
parents:
diff changeset
88 # Add basic solaris system paths
a61af66fc99e Initial load
duke
parents:
diff changeset
89 path4sdk=/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
a61af66fc99e Initial load
duke
parents:
diff changeset
90
a61af66fc99e Initial load
duke
parents:
diff changeset
91 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
92 make=/usr/sfw/bin/gmake
a61af66fc99e Initial load
duke
parents:
diff changeset
93 if [ ! -f ${make} ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
94 make=/opt/sfw/bin/gmake
a61af66fc99e Initial load
duke
parents:
diff changeset
95 if [ ! -f ${make} ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
96 make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
a61af66fc99e Initial load
duke
parents:
diff changeset
97 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
98 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
99 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
100
a61af66fc99e Initial load
duke
parents:
diff changeset
101 # File creation mask
a61af66fc99e Initial load
duke
parents:
diff changeset
102 umask 002
a61af66fc99e Initial load
duke
parents:
diff changeset
103
a61af66fc99e Initial load
duke
parents:
diff changeset
104 elif [ "${osname}" = Linux ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
105
a61af66fc99e Initial load
duke
parents:
diff changeset
106 # Add basic paths
a61af66fc99e Initial load
duke
parents:
diff changeset
107 path4sdk=/usr/bin:/bin:/usr/sbin:/sbin
a61af66fc99e Initial load
duke
parents:
diff changeset
108
a61af66fc99e Initial load
duke
parents:
diff changeset
109 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
110 make=/usr/bin/make
a61af66fc99e Initial load
duke
parents:
diff changeset
111 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
112
a61af66fc99e Initial load
duke
parents:
diff changeset
113 umask 002
a61af66fc99e Initial load
duke
parents:
diff changeset
114
a61af66fc99e Initial load
duke
parents:
diff changeset
115 else
a61af66fc99e Initial load
duke
parents:
diff changeset
116
a61af66fc99e Initial load
duke
parents:
diff changeset
117 # Windows: Differs on CYGWIN vs. MKS.
a61af66fc99e Initial load
duke
parents:
diff changeset
118
a61af66fc99e Initial load
duke
parents:
diff changeset
119 # We need to determine if we are running a CYGWIN shell or an MKS shell
a61af66fc99e Initial load
duke
parents:
diff changeset
120 # (if uname isn't available, then it will be unix_toolset=unknown)
a61af66fc99e Initial load
duke
parents:
diff changeset
121 unix_toolset=unknown
a61af66fc99e Initial load
duke
parents:
diff changeset
122 if [ "`uname -a | fgrep Cygwin`" = "" -a -d "${ROOTDIR}" ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
123 # We kind of assume ROOTDIR is where MKS is and it's ok
a61af66fc99e Initial load
duke
parents:
diff changeset
124 unix_toolset=MKS
a61af66fc99e Initial load
duke
parents:
diff changeset
125 mkshome=`dosname -s "${ROOTDIR}"`
a61af66fc99e Initial load
duke
parents:
diff changeset
126 # Most unix utilities are in the mksnt directory of ROOTDIR
a61af66fc99e Initial load
duke
parents:
diff changeset
127 unixcommand_path="${mkshome}/mksnt"
a61af66fc99e Initial load
duke
parents:
diff changeset
128 path4sdk="${unixcommand_path}"
a61af66fc99e Initial load
duke
parents:
diff changeset
129 devtools_path="${slashjava}/devtools/win32/bin"
a61af66fc99e Initial load
duke
parents:
diff changeset
130 path4sdk="${devtools_path};${path4sdk}"
a61af66fc99e Initial load
duke
parents:
diff changeset
131 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
132 make="${devtools_path}/gnumake.exe"
a61af66fc99e Initial load
duke
parents:
diff changeset
133 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
134 elif [ "`uname -a | fgrep Cygwin`" != "" -a -f /bin/cygpath ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
135 # For CYGWIN, uname will have "Cygwin" in it, and /bin/cygpath should exist
a61af66fc99e Initial load
duke
parents:
diff changeset
136 unix_toolset=CYGWIN
a61af66fc99e Initial load
duke
parents:
diff changeset
137 # Most unix utilities are in the /usr/bin
a61af66fc99e Initial load
duke
parents:
diff changeset
138 unixcommand_path="/usr/bin"
a61af66fc99e Initial load
duke
parents:
diff changeset
139 path4sdk="${unixcommand_path}"
a61af66fc99e Initial load
duke
parents:
diff changeset
140 # Find GNU make
a61af66fc99e Initial load
duke
parents:
diff changeset
141 make="${unixcommand_path}/make.exe"
a61af66fc99e Initial load
duke
parents:
diff changeset
142 fileMustExist "${make}" make
a61af66fc99e Initial load
duke
parents:
diff changeset
143 else
a61af66fc99e Initial load
duke
parents:
diff changeset
144 echo "WARNING: Cannot figure out if this is MKS or CYGWIN"
a61af66fc99e Initial load
duke
parents:
diff changeset
145 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
146
a61af66fc99e Initial load
duke
parents:
diff changeset
147
a61af66fc99e Initial load
duke
parents:
diff changeset
148 # For windows, it's hard to know where the system is, so we just add this
a61af66fc99e Initial load
duke
parents:
diff changeset
149 # to PATH.
a61af66fc99e Initial load
duke
parents:
diff changeset
150 slash_path="`echo ${path4sdk} | sed -e 's@\\\\@/@g' -e 's@//@/@g' -e 's@/$@@' -e 's@/;@;@g'`"
a61af66fc99e Initial load
duke
parents:
diff changeset
151 path4sdk="${slash_path};${PATH}"
a61af66fc99e Initial load
duke
parents:
diff changeset
152
a61af66fc99e Initial load
duke
parents:
diff changeset
153 # Convert path4sdk to cygwin style
a61af66fc99e Initial load
duke
parents:
diff changeset
154 if [ "${unix_toolset}" = CYGWIN ] ; then
a61af66fc99e Initial load
duke
parents:
diff changeset
155 path4sdk="`/usr/bin/cygpath -p ${path4sdk}`"
a61af66fc99e Initial load
duke
parents:
diff changeset
156 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
157
a61af66fc99e Initial load
duke
parents:
diff changeset
158 fi
a61af66fc99e Initial load
duke
parents:
diff changeset
159
a61af66fc99e Initial load
duke
parents:
diff changeset
160 # Export PATH setting
a61af66fc99e Initial load
duke
parents:
diff changeset
161 PATH="${path4sdk}"
a61af66fc99e Initial load
duke
parents:
diff changeset
162 export PATH
a61af66fc99e Initial load
duke
parents:
diff changeset
163