test/sun/security/krb5/runNameEquals.sh

Print this page




  73   Windows* )
  74     PATHSEP=";"
  75     FILESEP="\\"
  76     ;;
  77   * )
  78     echo "Unrecognized system!"
  79     exit 1;
  80     ;;
  81 esac
  82 
  83 TEST=Krb5NameEquals
  84 
  85 ${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
  86     -d ${TESTCLASSES}${FILESEP} \
  87     ${TESTSRC}${FILESEP}${TEST}.java
  88 
  89 EXIT_STATUS=0
  90 
  91 if [ "${NATIVE}" = "true" ] ; then
  92     echo "Testing native provider"
  93     ${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} \
  94         -classpath ${TESTCLASSES} \
  95         -Dsun.security.jgss.native=true \
  96         ${TEST}
  97     if [ $? != 0 ] ; then
  98         echo "Native provider fails"
  99         EXIT_STATUS=1
 100         if [ "$OS" = "Linux" -a `arch` = "x86_64" ]; then
 101             ${TESTJAVA}${FILESEP}bin${FILESEP}java -XshowSettings:properties -version 2> allprop
 102             cat allprop | grep sun.arch.data.model | grep 32
 103             if [ "$?" = "0" ]; then
 104                 echo "Running 32-bit JDK on 64-bit Linux. Maybe only 64-bit library is installed."
 105                 echo "Please manually check if this is the case. Treated as PASSED now."
 106                 EXIT_STATUS=0
 107             fi
 108         fi
 109     fi
 110 fi
 111 
 112 echo "Testing java provider"
 113 ${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} \
 114         -classpath ${TESTCLASSES} \
 115         -Djava.security.krb5.realm=R \
 116         -Djava.security.krb5.kdc=127.0.0.1 \
 117         ${TEST}
 118 if [ $? != 0 ] ; then
 119     echo "Java provider fails"
 120     EXIT_STATUS=1
 121 fi
 122 
 123 exit ${EXIT_STATUS}


  73   Windows* )
  74     PATHSEP=";"
  75     FILESEP="\\"
  76     ;;
  77   * )
  78     echo "Unrecognized system!"
  79     exit 1;
  80     ;;
  81 esac
  82 
  83 TEST=Krb5NameEquals
  84 
  85 ${COMPILEJAVA}${FILESEP}bin${FILESEP}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \
  86     -d ${TESTCLASSES}${FILESEP} \
  87     ${TESTSRC}${FILESEP}${TEST}.java
  88 
  89 EXIT_STATUS=0
  90 
  91 if [ "${NATIVE}" = "true" ] ; then
  92     echo "Testing native provider"
  93     ${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} ${TESTJAVAOPTS} \
  94         -classpath ${TESTCLASSES} \
  95         -Dsun.security.jgss.native=true \
  96         ${TEST}
  97     if [ $? != 0 ] ; then
  98         echo "Native provider fails"
  99         EXIT_STATUS=1
 100         if [ "$OS" = "Linux" -a `arch` = "x86_64" ]; then
 101             ${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} ${TESTJAVAOPTS} -XshowSettings:properties -version 2> allprop
 102             cat allprop | grep sun.arch.data.model | grep 32
 103             if [ "$?" = "0" ]; then
 104                 echo "Running 32-bit JDK on 64-bit Linux. Maybe only 64-bit library is installed."
 105                 echo "Please manually check if this is the case. Treated as PASSED now."
 106                 EXIT_STATUS=0
 107             fi
 108         fi
 109     fi
 110 fi
 111 
 112 echo "Testing java provider"
 113 ${TESTJAVA}${FILESEP}bin${FILESEP}java ${TESTVMOPTS} ${TESTJAVAOPTS} \
 114         -classpath ${TESTCLASSES} \
 115         -Djava.security.krb5.realm=R \
 116         -Djava.security.krb5.kdc=127.0.0.1 \
 117         ${TEST}
 118 if [ $? != 0 ] ; then
 119     echo "Java provider fails"
 120     EXIT_STATUS=1
 121 fi
 122 
 123 exit ${EXIT_STATUS}