提交 27eaa89b 编写于 作者: S simonis

8028537: PPC64: Updated the JDK regression tests to run on AIX

Reviewed-by: alanb
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, volker.simonis@gmail.com
上级 80594853
...@@ -41,11 +41,11 @@ ...@@ -41,11 +41,11 @@
# #
# List items are testnames followed by labels, all MUST BE commented # List items are testnames followed by labels, all MUST BE commented
# as to why they are here and use a label: # as to why they are here and use a label:
# generic-all Problems on all platforms # generic-all Problems on all platforms
# generic-ARCH Where ARCH is one of: sparc, sparcv9, x64, i586, etc. # generic-ARCH Where ARCH is one of: sparc, sparcv9, x64, i586, etc.
# OSNAME-all Where OSNAME is one of: solaris, linux, windows, macosx # OSNAME-all Where OSNAME is one of: solaris, linux, windows, macosx, aix
# OSNAME-ARCH Specific on to one OSNAME and ARCH, e.g. solaris-amd64 # OSNAME-ARCH Specific on to one OSNAME and ARCH, e.g. solaris-amd64
# OSNAME-REV Specific on to one OSNAME and REV, e.g. solaris-5.8 # OSNAME-REV Specific on to one OSNAME and REV, e.g. solaris-5.8
# #
# More than one label is allowed but must be on the same line. # More than one label is allowed but must be on the same line.
# #
...@@ -134,6 +134,11 @@ sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh windows-all ...@@ -134,6 +134,11 @@ sun/management/jmxremote/bootstrap/RmiSslBootstrapTest.sh windows-all
# jdk_jmx # jdk_jmx
# 8030957
com/sun/management/OperatingSystemMXBean/GetProcessCpuLoad.java aix-all
com/sun/management/OperatingSystemMXBean/GetSystemCpuLoad.java aix-all
javax/management/MBeanServer/OldMBeanServerTest.java aix-all
############################################################################ ############################################################################
# jdk_math # jdk_math
......
...@@ -48,7 +48,7 @@ fi ...@@ -48,7 +48,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
* @bug 8016551 * @bug 8016551
* @summary JMenuItem in WindowsLookAndFeel can't paint default icons * @summary JMenuItem in WindowsLookAndFeel can't paint default icons
* @author Leonid Romanov * @author Leonid Romanov
* @run main bug8016551 * @run main/othervm bug8016551
*/ */
import javax.swing.*; import javax.swing.*;
......
...@@ -56,7 +56,7 @@ pass() ...@@ -56,7 +56,7 @@ pass()
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PATHSEP=":" PATHSEP=":"
;; ;;
......
...@@ -63,7 +63,7 @@ pass() ...@@ -63,7 +63,7 @@ pass()
OS=`uname -s` OS=`uname -s`
export TRANSPORT_METHOD export TRANSPORT_METHOD
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PATHSEP=":" PATHSEP=":"
TRANSPORT_METHOD=dt_socket TRANSPORT_METHOD=dt_socket
;; ;;
......
...@@ -102,7 +102,7 @@ libdir=${TESTCLASSES} ...@@ -102,7 +102,7 @@ libdir=${TESTCLASSES}
is_windows=false is_windows=false
is_cygwin=false is_cygwin=false
case `uname -s` in case `uname -s` in
SunOS|Linux) SunOS|Linux|AIX)
xx=`find ${jreloc}/lib -name libdt_socket.so` xx=`find ${jreloc}/lib -name libdt_socket.so`
libloc=`dirname ${xx}` libloc=`dirname ${xx}`
;; ;;
...@@ -161,13 +161,23 @@ elif [ -f ${libloc}/libdt_socket.so ] ; then ...@@ -161,13 +161,23 @@ elif [ -f ${libloc}/libdt_socket.so ] ; then
echo cp ${libloc}/libdt_socket.so ${fullpath} echo cp ${libloc}/libdt_socket.so ${fullpath}
cp ${libloc}/libdt_socket.so ${fullpath} cp ${libloc}/libdt_socket.so ${fullpath}
# make sure we can find libraries in current directory # make sure we can find libraries in current directory
if [ "${LD_LIBRARY_PATH}" = "" ] ; then if [ "$os" = "AIX" ] ; then
LD_LIBRARY_PATH=${libdir} if [ "${LIBPATH}" = "" ] ; then
LIBPATH=${libdir}
else
LIBPATH=${LIBPATH}:${libdir}
fi
export LIBPATH
echo LIBPATH=${LIBPATH}
else else
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libdir} if [ "${LD_LIBRARY_PATH}" = "" ] ; then
LD_LIBRARY_PATH=${libdir}
else
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libdir}
fi
export LD_LIBRARY_PATH
echo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
fi fi
export LD_LIBRARY_PATH
echo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
else else
echo "cannot find dt_socket in ${libloc} for ${private_transport}" echo "cannot find dt_socket in ${libloc} for ${private_transport}"
fail "cannot find dt_socket in ${libloc} for ${private_transport}" fail "cannot find dt_socket in ${libloc} for ${private_transport}"
......
...@@ -199,6 +199,8 @@ findPid() ...@@ -199,6 +199,8 @@ findPid()
if [ "$osname" = SunOS ] ; then if [ "$osname" = SunOS ] ; then
# Solaris and OpenSolaris use pgrep and not ps in psCmd # Solaris and OpenSolaris use pgrep and not ps in psCmd
findPidCmd="$psCmd" findPidCmd="$psCmd"
elif [ "$osname" = AIX ] ; then
findPidCmd="$psCmd"
else else
# Never use plain 'ps', which requires a "controlling terminal" # Never use plain 'ps', which requires a "controlling terminal"
# and will fail with a "ps: no controlling terminal" error. # and will fail with a "ps: no controlling terminal" error.
...@@ -293,7 +295,7 @@ EOF ...@@ -293,7 +295,7 @@ EOF
psCmd=ps psCmd=ps
jstack=jstack.exe jstack=jstack.exe
;; ;;
SunOS | Linux | Darwin) SunOS | Linux | Darwin | AIX)
transport=dt_socket transport=dt_socket
address= address=
devnull=/dev/null devnull=/dev/null
......
...@@ -45,7 +45,7 @@ fi ...@@ -45,7 +45,7 @@ fi
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
;; ;;
Windows* | CYGWIN*) Windows* | CYGWIN*)
......
...@@ -102,6 +102,14 @@ case "$OS" in ...@@ -102,6 +102,14 @@ case "$OS" in
TMP=`cd "${SystemRoot}/Temp"; echo ${PWD}` TMP=`cd "${SystemRoot}/Temp"; echo ${PWD}`
;; ;;
AIX )
VAR="A different value for AIX"
DEFAULT_JDK=/
FILESEP="/"
PATHSEP=":"
TMP="/tmp"
;;
# catch all other OSs # catch all other OSs
* ) * )
echo "Unrecognized system! $OS" echo "Unrecognized system! $OS"
......
...@@ -135,6 +135,14 @@ case "$OS" in ...@@ -135,6 +135,14 @@ case "$OS" in
TMP=`cd "${SystemRoot}/Temp"; echo ${PWD}` TMP=`cd "${SystemRoot}/Temp"; echo ${PWD}`
;; ;;
AIX )
VAR="A different value for AIX"
DEFAULT_JDK=/
FILESEP="/"
PATHSEP=":"
TMP="/tmp"
;;
# catch all other OSs # catch all other OSs
* ) * )
echo "Unrecognized system! $OS" echo "Unrecognized system! $OS"
......
...@@ -45,7 +45,7 @@ OS=`uname -s` ...@@ -45,7 +45,7 @@ OS=`uname -s`
# Need to determine the classpath separator and filepath separator based on the # Need to determine the classpath separator and filepath separator based on the
# operating system. # operating system.
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" ;; PS=":" ;;
Windows* | CYGWIN* ) Windows* | CYGWIN* )
PS=";" ;; PS=";" ;;
......
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" ;; PS=":" ;;
Windows* | CYGWIN* ) Windows* | CYGWIN* )
PS=";" ;; PS=";" ;;
......
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" ;; PS=":" ;;
Windows* | CYGWIN* ) Windows* | CYGWIN* )
PS=";" ;; PS=";" ;;
......
...@@ -58,6 +58,9 @@ case "$OS" in ...@@ -58,6 +58,9 @@ case "$OS" in
Darwin ) Darwin )
FS="/" FS="/"
;; ;;
AIX )
FS="/"
;;
Windows*) Windows*)
FS="\\" FS="\\"
;; ;;
......
...@@ -63,6 +63,9 @@ case "$OS" in ...@@ -63,6 +63,9 @@ case "$OS" in
Darwin ) Darwin )
FS="/" FS="/"
;; ;;
AIX )
FS="/"
;;
Windows* | CYGWIN* ) Windows* | CYGWIN* )
FS="\\" FS="\\"
;; ;;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin) ;; SunOS | Linux | Darwin | AIX ) ;;
Windows* | CYGWIN* ) Windows* | CYGWIN* )
echo "Passed"; exit 0 ;; echo "Passed"; exit 0 ;;
* ) echo "Unrecognized system!" ; exit 1 ;; * ) echo "Unrecognized system!" ; exit 1 ;;
......
...@@ -48,7 +48,7 @@ echo "CLASSPATH=${CLASSPATH}" ...@@ -48,7 +48,7 @@ echo "CLASSPATH=${CLASSPATH}"
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -47,6 +47,10 @@ case "$OS" in ...@@ -47,6 +47,10 @@ case "$OS" in
PS=":" PS=":"
FS="/" FS="/"
;; ;;
AIX )
PS=":"
FS="/"
;;
Windows*) Windows*)
PS=";" PS=";"
OS="Windows" OS="Windows"
......
...@@ -61,7 +61,7 @@ i=1 ...@@ -61,7 +61,7 @@ i=1
while true; do while true; do
echo "Run $i: TestSystemLoadAvg" echo "Run $i: TestSystemLoadAvg"
case `uname -s` in case `uname -s` in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
runOne GetSystemLoadAverage runOne GetSystemLoadAverage
;; ;;
* ) * )
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -53,7 +53,7 @@ public class Send12k { ...@@ -53,7 +53,7 @@ public class Send12k {
boolean sendOkay = true; boolean sendOkay = true;
try { try {
s1.send(p1); s1.send(p1);
} catch (SocketException e) { } catch (IOException e) {
/* /*
* Prior to merlin a send of > 12k to loopback address * Prior to merlin a send of > 12k to loopback address
* would fail silently. * would fail silently.
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Darwin ) SunOS | Darwin | AIX )
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
exit 0 exit 0
;; ;;
CYGWIN* ) CYGWIN* )
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Darwin ) SunOS | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Darwin ) SunOS | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Darwin ) SunOS | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) ;; SunOS | Linux | Darwin | AIX ) ;;
# Skip locale test for Windows # Skip locale test for Windows
Windows* | CYGWIN* ) Windows* | CYGWIN* )
echo "Passed"; exit 0 ;; echo "Passed"; exit 0 ;;
......
...@@ -48,7 +48,7 @@ JAR=$COMPILEJAVA/bin/jar ...@@ -48,7 +48,7 @@ JAR=$COMPILEJAVA/bin/jar
DIR=`pwd` DIR=`pwd`
case `uname` in case `uname` in
SunOS | Linux | Darwin ) CPS=':' ;; SunOS | Linux | Darwin | AIX ) CPS=':' ;;
Windows* ) CPS=';' ;; Windows* ) CPS=';' ;;
CYGWIN* ) CYGWIN* )
DIR=`/usr/bin/cygpath -a -s -m $DIR` DIR=`/usr/bin/cygpath -a -s -m $DIR`
...@@ -81,7 +81,7 @@ if [ $# -gt 0 ]; then ...@@ -81,7 +81,7 @@ if [ $# -gt 0 ]; then
L="$1" L="$1"
shift shift
s=`uname -s` s=`uname -s`
if [ $s != Linux -a $s != SunOS -a $s != Darwin ]; then if [ $s != Linux -a $s != SunOS -a $s != Darwin -a $s != AIX ]; then
echo "$L: Locales not supported on this system, skipping..." echo "$L: Locales not supported on this system, skipping..."
exit 0 exit 0
fi fi
......
...@@ -235,7 +235,7 @@ public class SBC { ...@@ -235,7 +235,7 @@ public class SBC {
try { try {
Files.newByteChannel(link, READ, LinkOption.NOFOLLOW_LINKS); Files.newByteChannel(link, READ, LinkOption.NOFOLLOW_LINKS);
throw new RuntimeException(); throw new RuntimeException();
} catch (IOException x) { } catch (IOException | UnsupportedOperationException x) {
} finally { } finally {
TestUtil.deleteUnchecked(link); TestUtil.deleteUnchecked(link);
} }
......
...@@ -43,7 +43,14 @@ case "$OS" in ...@@ -43,7 +43,14 @@ case "$OS" in
echo "This test does not run on Windows" echo "This test does not run on Windows"
exit 0 exit 0
;; ;;
AIX )
CLASSPATH=${TESTCLASSES}:${TESTSRC}
# On AIX "find -follow" may core dump on recursive links without '-L'
# see: http://www-01.ibm.com/support/docview.wss?uid=isg1IV28143
FIND_FOLLOW_OPT="-L"
;;
* ) * )
FIND_FOLLOW_OPT=
CLASSPATH=${TESTCLASSES}:${TESTSRC} CLASSPATH=${TESTCLASSES}:${TESTSRC}
;; ;;
esac esac
...@@ -65,7 +72,7 @@ if [ $? != 0 ]; then failures=`expr $failures + 1`; fi ...@@ -65,7 +72,7 @@ if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
# cycles (sym links to ancestor directories), other versions do # cycles (sym links to ancestor directories), other versions do
# not. For that reason we run PrintFileTree with the -printCycles # not. For that reason we run PrintFileTree with the -printCycles
# option when the output without this option differs to find(1). # option when the output without this option differs to find(1).
find "$ROOT" -follow > out1 find $FIND_FOLLOW_OPT "$ROOT" -follow > out1
$JAVA ${TESTVMOPTS} PrintFileTree -follow "$ROOT" > out2 $JAVA ${TESTVMOPTS} PrintFileTree -follow "$ROOT" > out2
diff out1 out2 diff out1 out2
if [ $? != 0 ]; if [ $? != 0 ];
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
;; ;;
Windows* | CYGWIN* ) Windows* | CYGWIN* )
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
FILEURL="file:" FILEURL="file:"
......
...@@ -62,6 +62,10 @@ case "$OS" in ...@@ -62,6 +62,10 @@ case "$OS" in
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
PATHSEP=";" PATHSEP=";"
FILESEP="/" FILESEP="/"
......
...@@ -46,6 +46,10 @@ case "$OS" in ...@@ -46,6 +46,10 @@ case "$OS" in
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
PATHSEP=";" PATHSEP=";"
FILESEP="/" FILESEP="/"
......
...@@ -70,6 +70,10 @@ case "$OS" in ...@@ -70,6 +70,10 @@ case "$OS" in
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
Windows* ) Windows* )
PATHSEP=";" PATHSEP=";"
FILESEP="\\" FILESEP="\\"
......
...@@ -62,6 +62,10 @@ case "$OS" in ...@@ -62,6 +62,10 @@ case "$OS" in
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
PATHSEP=";" PATHSEP=";"
FILESEP="/" FILESEP="/"
......
...@@ -62,6 +62,10 @@ case "$OS" in ...@@ -62,6 +62,10 @@ case "$OS" in
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
PATHSEP=";" PATHSEP=";"
FILESEP="/" FILESEP="/"
......
...@@ -52,7 +52,7 @@ echo "CLASSPATH=${CLASSPATH}" ...@@ -52,7 +52,7 @@ echo "CLASSPATH=${CLASSPATH}"
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -52,7 +52,7 @@ echo "CLASSPATH=${CLASSPATH}" ...@@ -52,7 +52,7 @@ echo "CLASSPATH=${CLASSPATH}"
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | *BSD | Darwin ) SunOS | Linux | *BSD | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -56,7 +56,7 @@ echo "CLASSPATH=${CLASSPATH}" ...@@ -56,7 +56,7 @@ echo "CLASSPATH=${CLASSPATH}"
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | *BSD | Darwin ) SunOS | Linux | *BSD | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -62,7 +62,7 @@ echo "CLASSPATH=${CLASSPATH}" ...@@ -62,7 +62,7 @@ echo "CLASSPATH=${CLASSPATH}"
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
......
...@@ -43,7 +43,7 @@ JAR="$COMPILEJAVA/bin/jar" ...@@ -43,7 +43,7 @@ JAR="$COMPILEJAVA/bin/jar"
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Darwin ) SunOS | Darwin | AIX )
SEP=':' ;; SEP=':' ;;
Linux ) Linux )
SEP=':' ;; SEP=':' ;;
......
...@@ -83,9 +83,9 @@ if [ "$status" != 0 ]; then ...@@ -83,9 +83,9 @@ if [ "$status" != 0 ]; then
fi fi
if [ "$status" != 0 ]; then if [ "$status" != 0 ]; then
echo "ERROR: 'jmap $jmap_option' is not supported so this test" echo "WARNING: 'jmap $jmap_option' is not supported on this platform"
echo "ERROR: cannot work reliably. Aborting!" echo "WARNING: so this test cannot work reliably. Aborting!"
exit 2 exit 0
fi fi
fi fi
......
...@@ -83,9 +83,9 @@ if [ "$status" != 0 ]; then ...@@ -83,9 +83,9 @@ if [ "$status" != 0 ]; then
fi fi
if [ "$status" != 0 ]; then if [ "$status" != 0 ]; then
echo "ERROR: 'jmap $jmap_option' is not supported so this test" echo "WARNING: 'jmap $jmap_option' is not supported on this platform"
echo "ERROR: cannot work reliably. Aborting!" echo "WARNING: so this test cannot work reliably. Aborting!"
exit 2 exit 0
fi fi
fi fi
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -56,7 +56,7 @@ echo "TESTCLASSES=${TESTCLASSES}" ...@@ -56,7 +56,7 @@ echo "TESTCLASSES=${TESTCLASSES}"
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -89,7 +89,7 @@ case "$OS" in ...@@ -89,7 +89,7 @@ case "$OS" in
FILESEP="/" FILESEP="/"
;; ;;
Linux | Darwin ) Linux | Darwin | AIX )
VAR="A different value for Linux" VAR="A different value for Linux"
DEFAULT_JDK=/none DEFAULT_JDK=/none
#DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386 #DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
......
...@@ -90,7 +90,7 @@ case "$OS" in ...@@ -90,7 +90,7 @@ case "$OS" in
FILESEP="/" FILESEP="/"
;; ;;
Linux | Darwin ) Linux | Darwin | AIX )
VAR="A different value for Linux" VAR="A different value for Linux"
DEFAULT_JDK=/none DEFAULT_JDK=/none
#DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386 #DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
......
...@@ -92,6 +92,14 @@ case "$OS" in ...@@ -92,6 +92,14 @@ case "$OS" in
TMP="/tmp" TMP="/tmp"
;; ;;
AIX )
VAR="A different value for AIX"
DEFAULT_JDK=/
FILESEP="/"
PATHSEP=":"
TMP="/tmp"
;;
Darwin ) Darwin )
VAR="A different value for MacOSX" VAR="A different value for MacOSX"
DEFAULT_JDK=/usr DEFAULT_JDK=/usr
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -48,6 +48,11 @@ case "$OS" in ...@@ -48,6 +48,11 @@ case "$OS" in
FS="/" FS="/"
RM="/bin/rm -f" RM="/bin/rm -f"
;; ;;
AIX )
PS=":"
FS="/"
RM="/bin/rm -f"
;;
CYGWIN* ) CYGWIN* )
PS=";" PS=";"
FS="/" FS="/"
......
...@@ -53,7 +53,7 @@ fi ...@@ -53,7 +53,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -42,7 +42,7 @@ if [[ $OS == CYGWIN_NT* ]] ; then ...@@ -42,7 +42,7 @@ if [[ $OS == CYGWIN_NT* ]] ; then
fi fi
case $OS in case $OS in
SunOS | Linux | Darwin) SunOS | Linux | Darwin | AIX )
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
DFILESEP=$FILESEP DFILESEP=$FILESEP
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -31,7 +31,7 @@ DEST=`pwd` ...@@ -31,7 +31,7 @@ DEST=`pwd`
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -61,13 +61,13 @@ mkdir $newv11dir $newvcompatdir $newv12dir ...@@ -61,13 +61,13 @@ mkdir $newv11dir $newvcompatdir $newv12dir
set -ex set -ex
${TESTJAVA}/bin/rmic -keep -nowrite -v1.1 -d $refv11dir -classpath "$@" ${TESTJAVA}/bin/rmic -keep -nowrite -v1.1 -d $refv11dir -classpath "$@"
${TESTJAVA}/bin/rmic -keep -nowrite -vcompat -d $refvcompatdir -classpath "$@" ${TESTJAVA}/bin/rmic -keep -nowrite -vcompat -d $refvcompatdir -classpath "$@"
${TESTJAVA}/bin/rmic -keep -v1.2 -d $refv12dir -classpath "$@" ${TESTJAVA}/bin/rmic -keep -nowrite -v1.2 -d $refv12dir -classpath "$@"
${TESTJAVA}/bin/rmic -Xnew -nowrite -keep -v1.1 -d $newv11dir -classpath "$@" ${TESTJAVA}/bin/rmic -Xnew -keep -nowrite -v1.1 -d $newv11dir -classpath "$@"
${TESTJAVA}/bin/rmic -Xnew -nowrite -keep -vcompat -d $newvcompatdir -classpath "$@" ${TESTJAVA}/bin/rmic -Xnew -keep -nowrite -vcompat -d $newvcompatdir -classpath "$@"
${TESTJAVA}/bin/rmic -Xnew -keep -v1.2 -d $newv12dir -classpath "$@" ${TESTJAVA}/bin/rmic -Xnew -keep -nowrite -v1.2 -d $newv12dir -classpath "$@"
set +ex set +ex
......
...@@ -66,6 +66,10 @@ case "$OS" in ...@@ -66,6 +66,10 @@ case "$OS" in
fi fi
fi fi
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
PATHSEP=";" PATHSEP=";"
FILESEP="/" FILESEP="/"
......
...@@ -72,6 +72,12 @@ case "$OS" in ...@@ -72,6 +72,12 @@ case "$OS" in
CP="${FS}bin${FS}cp" CP="${FS}bin${FS}cp"
CHMOD="${FS}bin${FS}chmod" CHMOD="${FS}bin${FS}chmod"
;; ;;
AIX )
FS="/"
PS=":"
CP="${FS}bin${FS}cp"
CHMOD="${FS}bin${FS}chmod"
;;
Windows* ) Windows* )
FS="\\" FS="\\"
PS=";" PS=";"
......
...@@ -73,6 +73,12 @@ case "$OS" in ...@@ -73,6 +73,12 @@ case "$OS" in
CP="${FS}bin${FS}cp" CP="${FS}bin${FS}cp"
CHMOD="${FS}bin${FS}chmod" CHMOD="${FS}bin${FS}chmod"
;; ;;
AIX )
FS="/"
PS=":"
CP="${FS}bin${FS}cp"
CHMOD="${FS}bin${FS}chmod"
;;
Windows* ) Windows* )
FS="\\" FS="\\"
PS=";" PS=";"
......
...@@ -50,15 +50,7 @@ fi ...@@ -50,15 +50,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS ) SunOS | Linux | Darwin | AIX)
PS=":"
FS="/"
;;
Linux )
PS=":"
FS="/"
;;
Darwin )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -63,6 +63,10 @@ case "$OS" in ...@@ -63,6 +63,10 @@ case "$OS" in
PS=":" PS=":"
FS="/" FS="/"
;; ;;
AIX )
PS=":"
FS="/"
;;
CYGWIN* ) CYGWIN* )
PS=";" PS=";"
FS="/" FS="/"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
FILESEP="/" FILESEP="/"
PATHSEP=":" PATHSEP=":"
;; ;;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
HOSTNAME=`uname -n` HOSTNAME=`uname -n`
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
HOSTNAME=`uname -n` HOSTNAME=`uname -n`
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PS=":" PS=":"
FS="/" FS="/"
;; ;;
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -41,7 +41,7 @@ fi ...@@ -41,7 +41,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -42,7 +42,7 @@ fi ...@@ -42,7 +42,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -59,6 +59,10 @@ case "$OS" in ...@@ -59,6 +59,10 @@ case "$OS" in
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
PATHSEP=";" PATHSEP=";"
FILESEP="/" FILESEP="/"
......
...@@ -51,6 +51,10 @@ case "$OS" in ...@@ -51,6 +51,10 @@ case "$OS" in
Darwin ) Darwin )
FILESEP="/" FILESEP="/"
;; ;;
AIX )
PATHSEP=":"
FILESEP="/"
;;
CYGWIN* ) CYGWIN* )
FILESEP="/" FILESEP="/"
;; ;;
......
...@@ -45,7 +45,7 @@ fi ...@@ -45,7 +45,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,15 +46,7 @@ fi ...@@ -46,15 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS ) SunOS | Linux | Darwin | AIX)
PATHSEP=":"
FILESEP="/"
;;
Linux )
PATHSEP=":"
FILESEP="/"
;;
Darwin )
PATHSEP=":" PATHSEP=":"
FILESEP="/" FILESEP="/"
;; ;;
......
...@@ -40,7 +40,7 @@ fi ...@@ -40,7 +40,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
FS="/" FS="/"
;; ;;
CYGWIN* ) CYGWIN* )
......
...@@ -43,7 +43,7 @@ fi ...@@ -43,7 +43,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
FS="/" FS="/"
;; ;;
......
...@@ -45,7 +45,7 @@ fi ...@@ -45,7 +45,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin | CYGWIN* ) SunOS | Linux | Darwin | AIX | CYGWIN* )
FS="/" FS="/"
;; ;;
Windows_* ) Windows_* )
......
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -47,7 +47,7 @@ fi ...@@ -47,7 +47,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -46,7 +46,7 @@ fi ...@@ -46,7 +46,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -49,7 +49,7 @@ fi ...@@ -49,7 +49,7 @@ fi
# set platform-dependent variables # set platform-dependent variables
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
NULL=/dev/null NULL=/dev/null
PS=":" PS=":"
FS="/" FS="/"
......
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
# isSolaris - true if OS is Solaris # isSolaris - true if OS is Solaris
# isWindows - true if OS is Windows # isWindows - true if OS is Windows
# isMacos - true if OS is Macos X # isMacos - true if OS is Macos X
# isAIX - true if OS is AIX
if [ -z "${TESTJAVA}" ]; then if [ -z "${TESTJAVA}" ]; then
...@@ -83,6 +84,7 @@ isSolaris=false ...@@ -83,6 +84,7 @@ isSolaris=false
isUnknownOS=false isUnknownOS=false
isWindows=false isWindows=false
isMacos=false isMacos=false
isAIX=false
OS=`uname -s` OS=`uname -s`
...@@ -113,6 +115,10 @@ case "$OS" in ...@@ -113,6 +115,10 @@ case "$OS" in
OS="Solaris" OS="Solaris"
isSolaris=true isSolaris=true
;; ;;
AIX )
OS="AIX"
isAIX=true
;;
Windows* ) Windows* )
OS="Windows" OS="Windows"
PATTERN_EOL='[ ]*$' PATTERN_EOL='[ ]*$'
......
...@@ -54,7 +54,7 @@ pass() ...@@ -54,7 +54,7 @@ pass()
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin) SunOS | Linux | Darwin | AIX)
PATHSEP=":" PATHSEP=":"
;; ;;
......
...@@ -45,7 +45,7 @@ failed=0 ...@@ -45,7 +45,7 @@ failed=0
runSA=true runSA=true
if [ $isMacos = true ]; then if [ $isMacos = true -o $isAIX = true -o `uname -m` = ppc64 ]; then
runSA=false runSA=false
fi fi
......
...@@ -56,7 +56,7 @@ pass() ...@@ -56,7 +56,7 @@ pass()
OS=`uname -s` OS=`uname -s`
case "$OS" in case "$OS" in
SunOS | Linux | Darwin ) SunOS | Linux | Darwin | AIX )
PATHSEP=":" PATHSEP=":"
;; ;;
......
...@@ -72,7 +72,9 @@ import java.util.regex.Pattern; ...@@ -72,7 +72,9 @@ import java.util.regex.Pattern;
public class ExecutionEnvironment extends TestHelper { public class ExecutionEnvironment extends TestHelper {
static final String LD_LIBRARY_PATH = TestHelper.isMacOSX static final String LD_LIBRARY_PATH = TestHelper.isMacOSX
? "DYLD_LIBRARY_PATH" ? "DYLD_LIBRARY_PATH"
: "LD_LIBRARY_PATH"; : TestHelper.isAIX
? "LIBPATH"
: "LD_LIBRARY_PATH";
static final String LD_LIBRARY_PATH_32 = LD_LIBRARY_PATH + "_32"; static final String LD_LIBRARY_PATH_32 = LD_LIBRARY_PATH + "_32";
static final String LD_LIBRARY_PATH_64 = LD_LIBRARY_PATH + "_64"; static final String LD_LIBRARY_PATH_64 = LD_LIBRARY_PATH + "_64";
...@@ -144,7 +146,19 @@ public class ExecutionEnvironment extends TestHelper { ...@@ -144,7 +146,19 @@ public class ExecutionEnvironment extends TestHelper {
for (String x : LD_PATH_STRINGS) { for (String x : LD_PATH_STRINGS) {
if (!tr.contains(x)) { if (!tr.contains(x)) {
flagError(tr, "FAIL: did not get <" + x + ">"); if (TestHelper.isAIX && x.startsWith(LD_LIBRARY_PATH)) {
// AIX does not support the '-rpath' linker options so the
// launchers have to prepend the jdk library path to 'LIBPATH'.
String aixLibPath = LD_LIBRARY_PATH + "=" +
System.getenv(LD_LIBRARY_PATH) +
System.getProperty("path.separator") + LD_LIBRARY_PATH_VALUE;
if (!tr.matches(aixLibPath)) {
flagError(tr, "FAIL: did not get <" + aixLibPath + ">");
}
}
else {
flagError(tr, "FAIL: did not get <" + x + ">");
}
} }
} }
} }
...@@ -180,7 +194,7 @@ public class ExecutionEnvironment extends TestHelper { ...@@ -180,7 +194,7 @@ public class ExecutionEnvironment extends TestHelper {
Map<String, String> env = new HashMap<>(); Map<String, String> env = new HashMap<>();
if (TestHelper.isLinux || TestHelper.isMacOSX) { if (TestHelper.isLinux || TestHelper.isMacOSX || TestHelper.isAIX) {
for (String x : LD_PATH_STRINGS) { for (String x : LD_PATH_STRINGS) {
String pairs[] = x.split("="); String pairs[] = x.split("=");
env.put(pairs[0], pairs[1]); env.put(pairs[0], pairs[1]);
......
...@@ -73,16 +73,20 @@ public class Settings extends TestHelper { ...@@ -73,16 +73,20 @@ public class Settings extends TestHelper {
} }
static void runTestOptionDefault() throws IOException { static void runTestOptionDefault() throws IOException {
String stackSize = "256"; // in kb
if (getArch().equals("ppc64")) {
stackSize = "800";
}
TestResult tr = null; TestResult tr = null;
tr = doExec(javaCmd, "-Xms64m", "-Xmx512m", tr = doExec(javaCmd, "-Xms64m", "-Xmx512m",
"-Xss256k", "-XshowSettings", "-jar", testJar.getAbsolutePath()); "-Xss" + stackSize + "k", "-XshowSettings", "-jar", testJar.getAbsolutePath());
containsAllOptions(tr); containsAllOptions(tr);
if (!tr.isOK()) { if (!tr.isOK()) {
System.out.println(tr.status); System.out.println(tr.status);
throw new RuntimeException("test fails"); throw new RuntimeException("test fails");
} }
tr = doExec(javaCmd, "-Xms65536k", "-Xmx712m", tr = doExec(javaCmd, "-Xms65536k", "-Xmx712m",
"-Xss256000", "-XshowSettings", "-jar", testJar.getAbsolutePath()); "-Xss" + stackSize + "000", "-XshowSettings", "-jar", testJar.getAbsolutePath());
containsAllOptions(tr); containsAllOptions(tr);
if (!tr.isOK()) { if (!tr.isOK()) {
System.out.println(tr.status); System.out.println(tr.status);
......
...@@ -92,6 +92,8 @@ public class TestHelper { ...@@ -92,6 +92,8 @@ public class TestHelper {
System.getProperty("os.name", "unknown").startsWith("SunOS"); System.getProperty("os.name", "unknown").startsWith("SunOS");
static final boolean isLinux = static final boolean isLinux =
System.getProperty("os.name", "unknown").startsWith("Linux"); System.getProperty("os.name", "unknown").startsWith("Linux");
static final boolean isAIX =
System.getProperty("os.name", "unknown").startsWith("AIX");
static final String LIBJVM = isWindows static final String LIBJVM = isWindows
? "jvm.dll" ? "jvm.dll"
: "libjvm" + (isMacOSX ? ".dylib" : ".so"); : "libjvm" + (isMacOSX ? ".dylib" : ".so");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册