85 DEBUGGEEFLAGS=
86 if [ -r $TESTCLASSES/@debuggeeVMOptions ] ; then
87 DEBUGGEEFLAGS=`cat $TESTCLASSES/@debuggeeVMOptions`
88 elif [ -r $TESTCLASSES/../@debuggeeVMOptions ] ; then
89 DEBUGGEEFLAGS=`cat $TESTCLASSES/../@debuggeeVMOptions`
90 fi
91
92 # Figure out what the libarch path is
93 os=`uname -s`
94
95 jreloc=${TESTJAVA}/jre
96 if [ ! -d ${jreloc} ] ; then
97 jreloc=${TESTJAVA}
98 fi
99
100 libdir=${TESTCLASSES}
101
102 is_windows=false
103 is_cygwin=false
104 case `uname -s` in
105 SunOS)
106 libarch=`uname -p`
107 d64=`echo "${DEBUGGEEFLAGS}" | fgrep -- -d64`
108 case `uname -p` in
109 sparc)
110 if [ "${d64}" != "" ] ; then
111 libarch=sparcv9
112 fi
113 ;;
114 i386)
115 if [ "${d64}" != "" ] ; then
116 libarch=amd64
117 fi
118 ;;
119 *)
120 echo "FAILURE: Unknown uname -p: " `uname -p`
121 exit 1
122 ;;
123 esac
124 libloc=${jreloc}/lib/${libarch}
125 ;;
126 Linux)
127 xx=`find ${jreloc}/lib -name libdt_socket.so`
128 libloc=`dirname ${xx}`
129 ;;
130 Darwin)
131 libloc=${jreloc}/lib
132 ;;
133 Windows*)
134 is_windows=true
135 libloc=${jreloc}/bin
136 sep=';'
137 ;;
138 CYGWIN*)
139 is_windows=true
140 is_cygwin=true
141 libloc=${jreloc}/bin
142 sep=':'
143
144 # This is going onto PATH and cygwin needs the form
145 # /cygdrive/j/x..... for that.
146 libdir=`cygpath -u "$TESTCLASSES"`
|
85 DEBUGGEEFLAGS=
86 if [ -r $TESTCLASSES/@debuggeeVMOptions ] ; then
87 DEBUGGEEFLAGS=`cat $TESTCLASSES/@debuggeeVMOptions`
88 elif [ -r $TESTCLASSES/../@debuggeeVMOptions ] ; then
89 DEBUGGEEFLAGS=`cat $TESTCLASSES/../@debuggeeVMOptions`
90 fi
91
92 # Figure out what the libarch path is
93 os=`uname -s`
94
95 jreloc=${TESTJAVA}/jre
96 if [ ! -d ${jreloc} ] ; then
97 jreloc=${TESTJAVA}
98 fi
99
100 libdir=${TESTCLASSES}
101
102 is_windows=false
103 is_cygwin=false
104 case `uname -s` in
105 SunOS|Linux)
106 xx=`find ${jreloc}/lib -name libdt_socket.so`
107 libloc=`dirname ${xx}`
108 ;;
109 Darwin)
110 libloc=${jreloc}/lib
111 ;;
112 Windows*)
113 is_windows=true
114 libloc=${jreloc}/bin
115 sep=';'
116 ;;
117 CYGWIN*)
118 is_windows=true
119 is_cygwin=true
120 libloc=${jreloc}/bin
121 sep=':'
122
123 # This is going onto PATH and cygwin needs the form
124 # /cygdrive/j/x..... for that.
125 libdir=`cygpath -u "$TESTCLASSES"`
|