test/java/util/Locale/LocaleProviders.sh

Print this page
rev 6958 : imported patch 8010666
   1 #
   2 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   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 8001440
  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 if [ "${COMPILEJAVA}" = "" ]
  43 then
  44   COMPILEJAVA="${TESTJAVA}"
  45 fi
  46 echo "TESTJAVA=${TESTJAVA}"


 241 PARAM2=
 242 PARAM3=
 243 runTest
 244 
 245 # testing 8000615 fix.
 246 METHODNAME=tzNameTest
 247 PREFLIST="JRE -Djava.ext.dirs=${SPIDIR}"
 248 PARAM1=America/Los_Angeles
 249 PARAM2=
 250 PARAM3=
 251 runTest
 252 
 253 # testing 8001440 fix.
 254 METHODNAME=bug8001440Test
 255 PREFLIST=CLDR
 256 PARAM1=
 257 PARAM2=
 258 PARAM3=
 259 runTest
 260 











 261 exit $result
   1 #
   2 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   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 8001440 8010666
  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 if [ "${COMPILEJAVA}" = "" ]
  43 then
  44   COMPILEJAVA="${TESTJAVA}"
  45 fi
  46 echo "TESTJAVA=${TESTJAVA}"


 241 PARAM2=
 242 PARAM3=
 243 runTest
 244 
 245 # testing 8000615 fix.
 246 METHODNAME=tzNameTest
 247 PREFLIST="JRE -Djava.ext.dirs=${SPIDIR}"
 248 PARAM1=America/Los_Angeles
 249 PARAM2=
 250 PARAM3=
 251 runTest
 252 
 253 # testing 8001440 fix.
 254 METHODNAME=bug8001440Test
 255 PREFLIST=CLDR
 256 PARAM1=
 257 PARAM2=
 258 PARAM3=
 259 runTest
 260 
 261 # testing 8010666 fix.
 262 if [ "${DEFLANG}" = "en" ]
 263 then
 264   METHODNAME=bug8010666Test
 265   PREFLIST=HOST
 266   PARAM1=
 267   PARAM2=
 268   PARAM3=
 269   runTest
 270 fi
 271 
 272 exit $result