test/jdk/java/lang/Character/CheckScript.java
changeset 55013 8dae495a59e7
parent 47216 71c04702a3d5
equal deleted inserted replaced
55012:fb0cfce19262 55013:8dae495a59e7
     1 /*
     1 /*
     2  * Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @bug 6945564 6959267 7033561 7070436 7198195 8032446 8072600
    26  * @bug 6945564 6959267 7033561 7070436 7198195 8032446 8072600 8221431
    27  * @summary  Check that the j.l.Character.UnicodeScript
    27  * @summary  Check that the j.l.Character.UnicodeScript
       
    28  * @library /lib/testlibrary/java/lang
    28  */
    29  */
    29 
    30 
    30 import java.io.*;
    31 import java.io.*;
    31 import java.util.*;
    32 import java.util.*;
    32 import java.util.regex.*;
    33 import java.util.regex.*;
    36 
    37 
    37     public static void main(String[] args) throws Exception {
    38     public static void main(String[] args) throws Exception {
    38         File fScripts;
    39         File fScripts;
    39         File fAliases;
    40         File fAliases;
    40         if (args.length == 0) {
    41         if (args.length == 0) {
    41             fScripts = new File(System.getProperty("test.src", "."), "Scripts.txt");
    42             fScripts = UCDFiles.SCRIPTS.toFile();
    42             fAliases = new File(System.getProperty("test.src", "."), "PropertyValueAliases.txt");
    43             fAliases = UCDFiles.PROPERTY_VALUE_ALIASES.toFile();
    43         } else if (args.length == 2) {
    44         } else if (args.length == 2) {
    44             fScripts = new File(args[0]);
    45             fScripts = new File(args[0]);
    45             fAliases = new File(args[1]);
    46             fAliases = new File(args[1]);
    46         } else {
    47         } else {
    47             System.out.println("java CharacterScript Scripts.txt PropertyValueAliases.txt");
    48             System.out.println("java CharacterScript Scripts.txt PropertyValueAliases.txt");