6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23 #!/bin/sh
24 #
25 # @test
26 # @bug 6336885 7196799 7197573 7198834 8000245 8000615
27 # @summary tests for "java.locale.providers" system property
28 # @compile -XDignore.symbol.file LocaleProviders.java
29 # @run shell/timeout=600 LocaleProviders.sh
30
31 if [ "${TESTSRC}" = "" ]
32 then
33 echo "TESTSRC not set. Test cannot execute. Failed."
34 exit 1
35 fi
36 echo "TESTSRC=${TESTSRC}"
37 if [ "${TESTJAVA}" = "" ]
38 then
39 echo "TESTJAVA not set. Test cannot execute. Failed."
40 exit 1
41 fi
42 echo "TESTJAVA=${TESTJAVA}"
43 if [ "${TESTCLASSES}" = "" ]
44 then
45 echo "TESTCLASSES not set. Test cannot execute. Failed."
46 exit 1
226 PREFLIST=HOST
227 PARAM1=
228 PARAM2=
229 PARAM3=
230 runTest
231
232 # testing 8000245 fix.
233 METHODNAME=tzNameTest
234 PREFLIST="JRE -Djava.ext.dirs=${SPIDIR}"
235 PARAM1=Europe/Moscow
236 PARAM2=
237 PARAM3=
238 runTest
239
240 # testing 8000615 fix.
241 METHODNAME=tzNameTest
242 PREFLIST="JRE -Djava.ext.dirs=${SPIDIR}"
243 PARAM1=America/Los_Angeles
244 PARAM2=
245 PARAM3=
246 runTest
247
248 exit $result
|
6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation.
8 #
9 # This code is distributed in the hope that it will be useful, but WITHOUT
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # version 2 for more details (a copy is included in the LICENSE file that
13 # accompanied this code).
14 #
15 # You should have received a copy of the GNU General Public License version
16 # 2 along with this work; if not, write to the Free Software Foundation,
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 #
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 # or visit www.oracle.com if you need additional information or have any
21 # questions.
22 #
23 #!/bin/sh
24 #
25 # @test
26 # @bug 6336885 7196799 7197573 7198834 8000245 8000615 8001205
27 # @summary tests for "java.locale.providers" system property
28 # @compile -XDignore.symbol.file LocaleProviders.java
29 # @run shell/timeout=600 LocaleProviders.sh
30
31 if [ "${TESTSRC}" = "" ]
32 then
33 echo "TESTSRC not set. Test cannot execute. Failed."
34 exit 1
35 fi
36 echo "TESTSRC=${TESTSRC}"
37 if [ "${TESTJAVA}" = "" ]
38 then
39 echo "TESTJAVA not set. Test cannot execute. Failed."
40 exit 1
41 fi
42 echo "TESTJAVA=${TESTJAVA}"
43 if [ "${TESTCLASSES}" = "" ]
44 then
45 echo "TESTCLASSES not set. Test cannot execute. Failed."
46 exit 1
226 PREFLIST=HOST
227 PARAM1=
228 PARAM2=
229 PARAM3=
230 runTest
231
232 # testing 8000245 fix.
233 METHODNAME=tzNameTest
234 PREFLIST="JRE -Djava.ext.dirs=${SPIDIR}"
235 PARAM1=Europe/Moscow
236 PARAM2=
237 PARAM3=
238 runTest
239
240 # testing 8000615 fix.
241 METHODNAME=tzNameTest
242 PREFLIST="JRE -Djava.ext.dirs=${SPIDIR}"
243 PARAM1=America/Los_Angeles
244 PARAM2=
245 PARAM3=
246 runTest
247
248 # testing 8001205 fix.
249 METHODNAME=bug8001205Test
250 PREFLIST=SPI
251 PARAM1=
252 PARAM2=
253 PARAM3=
254 runTest
255
256 exit $result
|