< prev index next >

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

Print this page
rev 1539 : 6911129: These tests do not work with CYGWIN: java/lang
Reviewed-by: tbell, alanb


  31 # PS - path sep.
  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   AIX )
  48     PS=":"
  49     FS="/"
  50     ;;
  51   Windows* | CYGWIN*)
  52     PS=";"
  53     OS="Windows"
  54     FS="\\"






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


  31 # PS - path sep.
  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   AIX )
  48     PS=":"
  49     FS="/"
  50     ;;
  51   Windows*)
  52     PS=";"
  53     OS="Windows"
  54     FS="\\"
  55     ;;
  56   CYGWIN*)
  57     PS=";"
  58     OS="Windows"
  59     FS="\\"
  60     isCygwin=true
  61     ;;
  62   * )
  63     echo "Unrecognized system!"
  64     exit 1;
  65     ;;
  66 esac
  67 
  68 if [ "${TESTJAVA}" = "" ]
  69 then
  70   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  71   exit 1
  72 fi
  73 
  74 if [ "${TESTSRC}" = "" ]
  75 then
  76   echo "TESTSRC not set.  Test cannot execute.  Failed."
  77   exit 1
  78 fi
  79  
  80 if [ "${TESTCLASSES}" = "" ]
< prev index next >