test/java/io/Serializable/serialver/nested/run.sh

Print this page




  32 # set a few environment variables so that the shell-script can run stand-alone
  33 # in the source directory
  34 
  35 if [ "${TESTSRC}" = "" ] ; then
  36   TESTSRC="."
  37 fi
  38 if [ "${TESTCLASSES}" = "" ] ; then
  39   TESTCLASSES="."
  40 fi
  41 if [ "${TESTJAVA}" = "" ] ; then
  42   echo "TESTJAVA not set.  Test cannot execute."
  43   echo "FAILED!!!"
  44   exit 1
  45 fi
  46   
  47 # set platform-dependent variables
  48 OS=`uname -s`
  49 case "$OS" in
  50   SunOS | Linux )
  51     PS=":"    ;;
  52   Windows* )
  53     PS=";"    ;;
  54   * )
  55     echo "Unrecognized system!"
  56     exit 1    ;;
  57 esac
  58 
  59 # the test code
  60 
  61 echo "Using the classpath .${PS}${TESTCLASSES}"
  62 ${TESTJAVA}/bin/serialver -classpath ".${PS}${TESTCLASSES}" 'serialver.Test.Test1.Test2'
  63 
  64 exit $?


  32 # set a few environment variables so that the shell-script can run stand-alone
  33 # in the source directory
  34 
  35 if [ "${TESTSRC}" = "" ] ; then
  36   TESTSRC="."
  37 fi
  38 if [ "${TESTCLASSES}" = "" ] ; then
  39   TESTCLASSES="."
  40 fi
  41 if [ "${TESTJAVA}" = "" ] ; then
  42   echo "TESTJAVA not set.  Test cannot execute."
  43   echo "FAILED!!!"
  44   exit 1
  45 fi
  46   
  47 # set platform-dependent variables
  48 OS=`uname -s`
  49 case "$OS" in
  50   SunOS | Linux )
  51     PS=":"    ;;
  52   Windows* | CYGWIN* )
  53     PS=";"    ;;
  54   * )
  55     echo "Unrecognized system!"
  56     exit 1    ;;
  57 esac
  58 
  59 # the test code
  60 
  61 echo "Using the classpath .${PS}${TESTCLASSES}"
  62 ${TESTJAVA}/bin/serialver -classpath ".${PS}${TESTCLASSES}" 'serialver.Test.Test1.Test2'
  63 
  64 exit $?