test/java/lang/instrument/appendToClassLoaderSearch/CommonSetup.sh

Print this page




  26 
  27 #
  28 # Common setup for unit tests. Setups up the following variables:
  29 #
  30 # PS - path sep.
  31 # FS - file sep.
  32 # JAVA - java cmd.
  33 # JAVAC - javac cmd.
  34 # JAR - jar cmd.
  35 
  36 OS=`uname -s`
  37 case "$OS" in
  38   SunOS )
  39     PS=":"
  40     FS="/"
  41     ;;
  42   Linux )
  43     PS=":"
  44     FS="/"
  45     ;;
  46   Windows* | CYGWIN*)
  47     PS=";"
  48     OS="Windows"
  49     FS="\\"
  50     ;;






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


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