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} -XaddExports:java.base/sun.nio.ch=ALL-UNNAMED $DFLAG \
113 $1 $2 $3 $4 $5 $6 $7 $8" 2>&1
114 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
115 }
116
117 # Run the tests
118
119 go StateTest
120 go EchoTest
121 go CloseTest
122
123 # Re-run StateTest with a SecurityManager set
124 # Note that the system properties are arguments to StateTest and not options.
125 # These system properties are passed to the launched service as options:
126 # java [-options] class [args...]
127
128 go StateTest -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.pass
129 go StateTest -expectFail -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.fail
130
131
132 #
|
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} --add-exports java.base/sun.nio.ch=ALL-UNNAMED $DFLAG \
113 $1 $2 $3 $4 $5 $6 $7 $8" 2>&1
114 if [ $? != 0 ]; then failures=`expr $failures + 1`; fi
115 }
116
117 # Run the tests
118
119 go StateTest
120 go EchoTest
121 go CloseTest
122
123 # Re-run StateTest with a SecurityManager set
124 # Note that the system properties are arguments to StateTest and not options.
125 # These system properties are passed to the launched service as options:
126 # java [-options] class [args...]
127
128 go StateTest -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.pass
129 go StateTest -expectFail -Djava.security.manager -Djava.security.policy=${TESTSRC}/java.policy.fail
130
131
132 #
|