test/sun/tools/jrunscript/common.sh

Print this page




  46         # MKS diff deals with trailing CRs automatically
  47         golden_diff="diff"
  48         ;;
  49     CYGWIN*)
  50         PS=":"
  51         FS="/"
  52         # Cygwin diff needs to be told to ignore trailing CRs
  53         golden_diff="diff --strip-trailing-cr"
  54         ;;
  55     *)
  56         PS=":"
  57         FS="/"
  58         # Assume any other platform doesn't have the trailing CR stuff
  59         golden_diff="diff"
  60         ;;
  61     esac
  62 
  63     JRUNSCRIPT="${TESTJAVA}/bin/jrunscript"
  64     JAVAC="${TESTJAVA}/bin/javac"
  65     JAVA="${TESTJAVA}/bin/java"
  66     # needed to get full headless behavior on Mac
  67     if [ "$OS" = "Darwin" ]; then
  68         export AWT_TOOLKIT=XToolkit
  69     fi
  70 }


  46         # MKS diff deals with trailing CRs automatically
  47         golden_diff="diff"
  48         ;;
  49     CYGWIN*)
  50         PS=":"
  51         FS="/"
  52         # Cygwin diff needs to be told to ignore trailing CRs
  53         golden_diff="diff --strip-trailing-cr"
  54         ;;
  55     *)
  56         PS=":"
  57         FS="/"
  58         # Assume any other platform doesn't have the trailing CR stuff
  59         golden_diff="diff"
  60         ;;
  61     esac
  62 
  63     JRUNSCRIPT="${TESTJAVA}/bin/jrunscript"
  64     JAVAC="${TESTJAVA}/bin/javac"
  65     JAVA="${TESTJAVA}/bin/java"




  66 }