test/sun/security/krb5/runNameEquals.sh

Print this page
rev 6670 : 8010192: Enable native JGSS provider on Mac


  35 
  36 if [ "${TESTCLASSES}" = "" ] ; then
  37    TESTCLASSES="."
  38 fi
  39 
  40 if [ "${TESTJAVA}" = "" ] ; then
  41    echo "TESTJAVA not set.  Test cannot execute."
  42    echo "FAILED!!!"
  43    exit 1
  44 fi
  45 
  46 if [ "${COMPILEJAVA}" = "" ]; then
  47     COMPILEJAVA="${TESTJAVA}"
  48 fi
  49 
  50 NATIVE=false
  51 
  52 # set platform-dependent variables
  53 OS=`uname -s`
  54 case "$OS" in
  55   SunOS | Linux )
  56     PATHSEP=":"
  57     FILESEP="/"
  58     NATIVE=true
  59     ;;
  60   Darwin )
  61     PATHSEP=":"
  62     FILESEP="/"
  63     ;;
  64   CYGWIN* )
  65     PATHSEP=";"
  66     FILESEP="/"
  67     ;;
  68   Windows* )
  69     PATHSEP=";"
  70     FILESEP="\\"
  71     ;;
  72   * )
  73     echo "Unrecognized system!"
  74     exit 1;
  75     ;;
  76 esac
  77 
  78 TEST=Krb5NameEquals
  79 
  80 ${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
  81     -d ${TESTCLASSES}${FILESEP} \
  82     ${TESTSRC}${FILESEP}${TEST}.java
  83 




  35 
  36 if [ "${TESTCLASSES}" = "" ] ; then
  37    TESTCLASSES="."
  38 fi
  39 
  40 if [ "${TESTJAVA}" = "" ] ; then
  41    echo "TESTJAVA not set.  Test cannot execute."
  42    echo "FAILED!!!"
  43    exit 1
  44 fi
  45 
  46 if [ "${COMPILEJAVA}" = "" ]; then
  47     COMPILEJAVA="${TESTJAVA}"
  48 fi
  49 
  50 NATIVE=false
  51 
  52 # set platform-dependent variables
  53 OS=`uname -s`
  54 case "$OS" in
  55   SunOS | Linux | Darwin )
  56     PATHSEP=":"
  57     FILESEP="/"
  58     NATIVE=true
  59     ;;




  60   CYGWIN* )
  61     PATHSEP=";"
  62     FILESEP="/"
  63     ;;
  64   Windows* )
  65     PATHSEP=";"
  66     FILESEP="\\"
  67     ;;
  68   * )
  69     echo "Unrecognized system!"
  70     exit 1;
  71     ;;
  72 esac
  73 
  74 TEST=Krb5NameEquals
  75 
  76 ${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
  77     -d ${TESTCLASSES}${FILESEP} \
  78     ${TESTSRC}${FILESEP}${TEST}.java
  79