test/javax/script/CommonSetup.sh

Print this page




  32 # FS - file sep.
  33 # JAVA - java cmd.
  34 # JAVAC - javac cmd.
  35 # JAR - jar cmd.
  36 
  37 OS=`uname -s`
  38 case "$OS" in
  39   SunOS )
  40     PS=":"
  41     FS="/"
  42     ;;
  43   Linux )
  44     PS=":"
  45     FS="/"
  46     ;;
  47   Windows* )
  48     PS=";"
  49     OS="Windows"
  50     FS="\\"
  51     ;;






  52   * )
  53     echo "Unrecognized system!"
  54     exit 1;
  55     ;;
  56 esac
  57 
  58 if [ "${TESTJAVA}" = "" ]
  59 then
  60   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  61   exit 1
  62 fi
  63 
  64 if [ "${TESTSRC}" = "" ]
  65 then
  66   echo "TESTSRC not set.  Test cannot execute.  Failed."
  67   exit 1
  68 fi
  69  
  70 if [ "${TESTCLASSES}" = "" ]
  71 then


  32 # FS - file sep.
  33 # JAVA - java cmd.
  34 # JAVAC - javac cmd.
  35 # JAR - jar cmd.
  36 
  37 OS=`uname -s`
  38 case "$OS" in
  39   SunOS )
  40     PS=":"
  41     FS="/"
  42     ;;
  43   Linux )
  44     PS=":"
  45     FS="/"
  46     ;;
  47   Windows* )
  48     PS=";"
  49     OS="Windows"
  50     FS="\\"
  51     ;;
  52   CYGWIN* )
  53     PS=";"
  54     OS="Windows"
  55     FS="\\"
  56     isCygwin=true
  57     ;;
  58   * )
  59     echo "Unrecognized system!"
  60     exit 1;
  61     ;;
  62 esac
  63 
  64 if [ "${TESTJAVA}" = "" ]
  65 then
  66   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  67   exit 1
  68 fi
  69 
  70 if [ "${TESTSRC}" = "" ]
  71 then
  72   echo "TESTSRC not set.  Test cannot execute.  Failed."
  73   exit 1
  74 fi
  75  
  76 if [ "${TESTCLASSES}" = "" ]
  77 then