84N/A#
84N/A# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
84N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
84N/A#
84N/A# This code is free software; you can redistribute it and/or modify it
84N/A# under the terms of the GNU General Public License version 2 only, as
84N/A# published by the Free Software Foundation.
84N/A#
84N/A# This code is distributed in the hope that it will be useful, but WITHOUT
84N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
84N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
84N/A# version 2 for more details (a copy is included in the LICENSE file that
84N/A# accompanied this code).
84N/A#
84N/A# You should have received a copy of the GNU General Public License version
84N/A# 2 along with this work; if not, write to the Free Software Foundation,
84N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
84N/A#
84N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
84N/A# or visit www.oracle.com if you need additional information or have any
84N/A# questions.
84N/A#
84N/A
84N/A#!/bin/sh
84N/A
84N/Aif [ "${TESTSRC}" = "" ]
84N/Athen TESTSRC=.
84N/Afi
84N/A
84N/Aif [ "${TESTJAVA}" = "" ]
84N/Athen
84N/A PARENT=`dirname \`which java\``
84N/A TESTJAVA=`dirname ${PARENT}`
84N/A echo "TESTJAVA not set, selecting " ${TESTJAVA}
84N/A echo "If this is incorrect, try setting the variable manually."
84N/Afi
84N/A
84N/Aif [ "${TESTCLASSES}" = "" ]
84N/Athen
84N/A echo "TESTCLASSES not set. Test cannot execute. Failed."
84N/A exit 1
84N/Afi
84N/A
84N/ABIT_FLAG=""
84N/A
84N/A# set platform-dependent variables
84N/AOS=`uname -s`
84N/Acase "$OS" in
84N/A SunOS | Linux )
84N/A NULL=/dev/null
PS=":"
FS="/"
## for solaris, linux it's HOME
FILE_LOCATION=$HOME
if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" ]
then
BIT_FLAG=`cat ${FILE_LOCATION}${FS}JDK64BIT`
fi
;;
Windows_* | CYGWIN* )
NULL=NUL
PS=";"
FS="\\"
;;
* )
echo "Unrecognized system!"
exit 1;
;;
esac
JEMMYPATH=${CPAPPEND}
CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH
THIS_DIR=`pwd`
${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version
${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} FontFile > test.out 2>&1
STATUS=$?
cat test.out
exit $STATUS