test/java/nio/channels/spi/SelectorProvider/inheritedChannel/run_tests.sh

Print this page




  92             ;;
  93     esac
  94 fi
  95 
  96 LIBDIR=lib/${PLATFORM}-${ARCH}
  97 LAUNCHERLIB=${LIBDIR}/libLauncher.so
  98 echo $LIBDIR
  99 
 100 if [ ! -f "${TESTSRC}/${LAUNCHERLIB}" ]; then
 101     echo "Cannot find ${LAUNCHERLIB} - library not available for this system"
 102     exit 0
 103 fi
 104 
 105 LD_LIBRARY_PATH=${TESTSRC}/${LIBDIR}
 106 export LD_LIBRARY_PATH
 107 
 108 failures=0
 109 
 110 go() {
 111     echo ''
 112     sh -xc "$JAVA $DFLAG $1 $2 $3 $4 $5 $6 $7 $8" 2>&1
 113     if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
 114 }
 115 
 116 # Run the tests
 117 
 118 go StateTest
 119 go EchoTest
 120 go CloseTest
 121 
 122 # Re-run StateTest with a SecurityManager set
 123 # Note that the system properties are arguments to StateTest and not options.
 124 # These system properties are passed to the launched service as options:
 125 #   java [-options] class [args...]
 126 
 127 go StateTest -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.pass
 128 go StateTest -expectFail -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.fail
 129 
 130 
 131 #
 132 # Results


  92             ;;
  93     esac
  94 fi
  95 
  96 LIBDIR=lib/${PLATFORM}-${ARCH}
  97 LAUNCHERLIB=${LIBDIR}/libLauncher.so
  98 echo $LIBDIR
  99 
 100 if [ ! -f "${TESTSRC}/${LAUNCHERLIB}" ]; then
 101     echo "Cannot find ${LAUNCHERLIB} - library not available for this system"
 102     exit 0
 103 fi
 104 
 105 LD_LIBRARY_PATH=${TESTSRC}/${LIBDIR}
 106 export LD_LIBRARY_PATH
 107 
 108 failures=0
 109 
 110 go() {
 111     echo ''
 112     sh -xc "$JAVA ${TESTVMOPTS} ${TESTJAVAOPTS} $DFLAG $1 $2 $3 $4 $5 $6 $7 $8" 2>&1
 113     if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
 114 }
 115 
 116 # Run the tests
 117 
 118 go StateTest
 119 go EchoTest
 120 go CloseTest
 121 
 122 # Re-run StateTest with a SecurityManager set
 123 # Note that the system properties are arguments to StateTest and not options.
 124 # These system properties are passed to the launched service as options:
 125 #   java [-options] class [args...]
 126 
 127 go StateTest -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.pass
 128 go StateTest -expectFail -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.fail
 129 
 130 
 131 #
 132 # Results