test/com/sun/jdi/ImmutableResourceTest.sh

Print this page
rev 8975 : 8028537: PPC64: Updated the JDK regression tests to run on AIX
Reviewed-by: alanb
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, volker.simonis@gmail.com


  39  { echo "The test failed :-("
  40    echo "$*" 1>&2
  41    echo "exit status was $status"
  42    exit $status
  43  } #end of fail()
  44 
  45 #Call this from anywhere to pass the test with a message
  46 # usage: pass "reason why the test passed if applicable"
  47 pass()
  48  { echo "The test passed!!!"
  49    echo "$*" 1>&2
  50    exit 0
  51  } #end of pass()
  52 
  53 # end of subroutines
  54 
  55 # The beginning of the script proper
  56 
  57 OS=`uname -s`
  58 case "$OS" in
  59    SunOS | Linux | Darwin )
  60       PATHSEP=":"
  61       ;;
  62 
  63    Windows* | CYGWIN*)
  64       PATHSEP=";"
  65       ;;
  66 
  67    # catch all other OSs
  68    * )
  69       echo "Unrecognized system!  $OS"
  70       fail "Unrecognized system!  $OS"
  71       ;;
  72 esac
  73 
  74 TARGETCLASS="ImmutableResourceTest"
  75 if [ -z "${TESTJAVA}" ] ; then
  76    # TESTJAVA is not set, so the test is running stand-alone.
  77    # TESTJAVA holds the path to the root directory of the build of the JDK
  78    # to be tested.  That is, any java files run explicitly in this shell
  79    # should use TESTJAVA in the path to the java interpreter.




  39  { echo "The test failed :-("
  40    echo "$*" 1>&2
  41    echo "exit status was $status"
  42    exit $status
  43  } #end of fail()
  44 
  45 #Call this from anywhere to pass the test with a message
  46 # usage: pass "reason why the test passed if applicable"
  47 pass()
  48  { echo "The test passed!!!"
  49    echo "$*" 1>&2
  50    exit 0
  51  } #end of pass()
  52 
  53 # end of subroutines
  54 
  55 # The beginning of the script proper
  56 
  57 OS=`uname -s`
  58 case "$OS" in
  59    SunOS | Linux | Darwin | AIX )
  60       PATHSEP=":"
  61       ;;
  62 
  63    Windows* | CYGWIN*)
  64       PATHSEP=";"
  65       ;;
  66 
  67    # catch all other OSs
  68    * )
  69       echo "Unrecognized system!  $OS"
  70       fail "Unrecognized system!  $OS"
  71       ;;
  72 esac
  73 
  74 TARGETCLASS="ImmutableResourceTest"
  75 if [ -z "${TESTJAVA}" ] ; then
  76    # TESTJAVA is not set, so the test is running stand-alone.
  77    # TESTJAVA holds the path to the root directory of the build of the JDK
  78    # to be tested.  That is, any java files run explicitly in this shell
  79    # should use TESTJAVA in the path to the java interpreter.