test/java/util/Locale/LocaleProviders.sh

Print this page
rev 7221 : imported patch 8013903


   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 #      8013086 8013233
  28 # @summary tests for "java.locale.providers" system property
  29 # @compile -XDignore.symbol.file LocaleProviders.java
  30 # @run shell/timeout=600 LocaleProviders.sh
  31 
  32 if [ "${TESTSRC}" = "" ]
  33 then
  34   echo "TESTSRC not set.  Test cannot execute.  Failed."
  35   exit 1
  36 fi
  37 echo "TESTSRC=${TESTSRC}"
  38 if [ "${TESTJAVA}" = "" ]
  39 then
  40   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  41   exit 1
  42 fi
  43 if [ "${COMPILEJAVA}" = "" ]
  44 then
  45   COMPILEJAVA="${TESTJAVA}"
  46 fi
  47 echo "TESTJAVA=${TESTJAVA}"


 282 runTest
 283 
 284 # testing 8010666 fix.
 285 if [ "${DEFLANG}" = "en" ]
 286 then
 287   METHODNAME=bug8010666Test
 288   PREFLIST=HOST
 289   PARAM1=
 290   PARAM2=
 291   PARAM3=
 292   runTest
 293 fi
 294 
 295 # testing 8013086 fix.
 296 METHODNAME=bug8013086Test
 297 PREFLIST="JRE,SPI -Djava.ext.dirs=${SPIDIR}"
 298 PARAM1=ja
 299 PARAM2=JP
 300 PARAM3=
 301 runTest














 302 
 303 exit $result


   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 #      8013086 8013233 8013903
  28 # @summary tests for "java.locale.providers" system property
  29 # @compile -XDignore.symbol.file LocaleProviders.java
  30 # @run shell/timeout=600 LocaleProviders.sh
  31 
  32 if [ "${TESTSRC}" = "" ]
  33 then
  34   echo "TESTSRC not set.  Test cannot execute.  Failed."
  35   exit 1
  36 fi
  37 echo "TESTSRC=${TESTSRC}"
  38 if [ "${TESTJAVA}" = "" ]
  39 then
  40   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  41   exit 1
  42 fi
  43 if [ "${COMPILEJAVA}" = "" ]
  44 then
  45   COMPILEJAVA="${TESTJAVA}"
  46 fi
  47 echo "TESTJAVA=${TESTJAVA}"


 282 runTest
 283 
 284 # testing 8010666 fix.
 285 if [ "${DEFLANG}" = "en" ]
 286 then
 287   METHODNAME=bug8010666Test
 288   PREFLIST=HOST
 289   PARAM1=
 290   PARAM2=
 291   PARAM3=
 292   runTest
 293 fi
 294 
 295 # testing 8013086 fix.
 296 METHODNAME=bug8013086Test
 297 PREFLIST="JRE,SPI -Djava.ext.dirs=${SPIDIR}"
 298 PARAM1=ja
 299 PARAM2=JP
 300 PARAM3=
 301 runTest
 302 
 303 # testing 8013903 fix. (Windows only)
 304 METHODNAME=bug8013903Test
 305 PREFLIST=HOST,JRE
 306 PARAM1=
 307 PARAM2=
 308 PARAM3=
 309 runTest
 310 METHODNAME=bug8013903Test
 311 PREFLIST=HOST
 312 PARAM1=
 313 PARAM2=
 314 PARAM3=
 315 runTest
 316 
 317 exit $result