test/tools/javac/T5090006/compiler.sh

Print this page




  46 
  47 # set platform-dependent variables
  48 OS=`uname -s`
  49 case "$OS" in
  50   SunOS | Linux )
  51     NULL=/dev/null
  52     PS=":"
  53     FS="/"
  54     ;;
  55   Windows* )
  56     NULL=NUL
  57     PS=";"
  58     FS="\\"
  59     ;;
  60   * )
  61     echo "Unrecognized system!"
  62     exit 1;
  63     ;;
  64 esac
  65 
  66 "${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -verbose -source 5 -d "${TESTCLASSES}" -cp "${TESTSRC}${FS}broken.jar" "${TESTSRC}${FS}$1"
  67 
  68 result=$?
  69 
  70 if [ $result -eq 0 ]
  71 then
  72   echo "Passed"
  73 else
  74   echo "Failed"
  75 fi
  76 exit $result


  46 
  47 # set platform-dependent variables
  48 OS=`uname -s`
  49 case "$OS" in
  50   SunOS | Linux )
  51     NULL=/dev/null
  52     PS=":"
  53     FS="/"
  54     ;;
  55   Windows* )
  56     NULL=NUL
  57     PS=";"
  58     FS="\\"
  59     ;;
  60   * )
  61     echo "Unrecognized system!"
  62     exit 1;
  63     ;;
  64 esac
  65 
  66 "${TESTJAVA}${FS}bin${FS}javac" ${TESTTOOLVMOPTS} -verbose -d "${TESTCLASSES}" -cp "${TESTSRC}${FS}broken.jar" "${TESTSRC}${FS}$1"
  67 
  68 result=$?
  69 
  70 if [ $result -eq 0 ]
  71 then
  72   echo "Passed"
  73 else
  74   echo "Failed"
  75 fi
  76 exit $result