< prev index next >

test/jdk/java/awt/FontClass/CreateFont/fileaccess/TestFontFile.sh

Print this page
rev 59106 : imported patch client


  29 
  30 if [ "${TESTJAVA}" = "" ]
  31 then
  32   PARENT=`dirname \`which java\``
  33   TESTJAVA=`dirname ${PARENT}`
  34   echo "TESTJAVA not set, selecting " ${TESTJAVA}
  35   echo "If this is incorrect, try setting the variable manually."
  36 fi
  37 
  38 if [ "${TESTCLASSES}" = "" ]
  39 then
  40   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
  41   exit 1
  42 fi
  43 
  44 BIT_FLAG=""
  45 
  46 # set platform-dependent variables
  47 OS=`uname -s`
  48 case "$OS" in
  49   AIX | Darwin | Linux | SunOS )
  50     NULL=/dev/null
  51     PS=":"
  52     FS="/"
  53     ## for solaris, linux it's HOME
  54     FILE_LOCATION=$HOME
  55     if [ -f ${FILE_LOCATION}${FS}JDK64BIT -a ${OS} = "SunOS" ]
  56     then
  57         BIT_FLAG=`cat ${FILE_LOCATION}${FS}JDK64BIT`
  58     fi
  59     ;;
  60   Windows_* | CYGWIN* )
  61     NULL=NUL
  62     PS=";"
  63     FS="\\"
  64     ;;
  65   * )
  66     echo "Unrecognized system!"
  67     exit 1;
  68     ;;
  69 esac
  70 
  71 JEMMYPATH=${CPAPPEND}
  72 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH
  73 
  74 THIS_DIR=`pwd`
  75 
  76 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version
  77 
  78 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} FontFile > test.out 2>&1


  29 
  30 if [ "${TESTJAVA}" = "" ]
  31 then
  32   PARENT=`dirname \`which java\``
  33   TESTJAVA=`dirname ${PARENT}`
  34   echo "TESTJAVA not set, selecting " ${TESTJAVA}
  35   echo "If this is incorrect, try setting the variable manually."
  36 fi
  37 
  38 if [ "${TESTCLASSES}" = "" ]
  39 then
  40   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
  41   exit 1
  42 fi
  43 
  44 BIT_FLAG=""
  45 
  46 # set platform-dependent variables
  47 OS=`uname -s`
  48 case "$OS" in
  49   AIX | Darwin | Linux )
  50     NULL=/dev/null
  51     PS=":"
  52     FS="/"
  53     ## for linux it's HOME
  54     FILE_LOCATION=$HOME




  55     ;;
  56   Windows_* | CYGWIN* )
  57     NULL=NUL
  58     PS=";"
  59     FS="\\"
  60     ;;
  61   * )
  62     echo "Unrecognized system!"
  63     exit 1;
  64     ;;
  65 esac
  66 
  67 JEMMYPATH=${CPAPPEND}
  68 CLASSPATH=.${PS}${TESTCLASSES}${PS}${JEMMYPATH} ; export CLASSPATH
  69 
  70 THIS_DIR=`pwd`
  71 
  72 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} -version
  73 
  74 ${TESTJAVA}${FS}bin${FS}java ${BIT_FLAG} FontFile > test.out 2>&1
< prev index next >