< prev index next >

test/java/lang/management/RuntimeMXBean/TestInputArgument.sh

Print this page




  31 # @run shell TestInputArgument.sh
  32 #
  33 
  34 #Set appropriate jdk
  35 
  36 if [ ! -z "${TESTJAVA}" ] ; then
  37      jdk="$TESTJAVA"
  38 else
  39      echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
  40      exit 1
  41 fi
  42 
  43 runOne()
  44 { 
  45    echo "runOne $@"
  46    $TESTJAVA/bin/java $TESTVMOPTS -classpath $TESTCLASSES "$@" || exit 2
  47 }
  48 
  49 runOne InputArgument 
  50 
  51 runOne -XX:+UseFastJNIAccessors -XX:+PrintGCDetails InputArgument -XX:+PrintGCDetails
  52 runOne -XX:+UseFastJNIAccessors -XX:+PrintGCDetails InputArgument -XX:+UseFastJNIAccessors
  53 runOne "-Dprops=one two three" InputArgument "-Dprops=one two three"
  54 
  55 exit 0


  31 # @run shell TestInputArgument.sh
  32 #
  33 
  34 #Set appropriate jdk
  35 
  36 if [ ! -z "${TESTJAVA}" ] ; then
  37      jdk="$TESTJAVA"
  38 else
  39      echo "--Error: TESTJAVA must be defined as the pathname of a jdk to test."
  40      exit 1
  41 fi
  42 
  43 runOne()
  44 { 
  45    echo "runOne $@"
  46    $TESTJAVA/bin/java $TESTVMOPTS -classpath $TESTCLASSES "$@" || exit 2
  47 }
  48 
  49 runOne InputArgument 
  50 
  51 runOne -XX:+UseFastJNIAccessors -Xlog:gc*=debug InputArgument
  52 runOne -XX:+UseFastJNIAccessors -Xlog:gc*=debug InputArgument -XX:+UseFastJNIAccessors
  53 runOne "-Dprops=one two three" InputArgument "-Dprops=one two three"
  54 
  55 exit 0
< prev index next >