]>
Commit | Line | Data |
---|---|---|
f3c0d7a5 A |
1 | # Copyright (C) 2016 and later: Unicode, Inc. and others. |
2 | # License & terms of use: http://www.unicode.org/copyright.html | |
374ca955 | 3 | #********************************************************************** |
b331163b | 4 | #* Copyright (C) 1999-2015, International Business Machines Corporation |
374ca955 A |
5 | #* and others. All Rights Reserved. |
6 | #********************************************************************** | |
7 | # | |
8 | # 03/19/2001 weiv, schererm Created | |
9 | ||
10 | .SUFFIXES : .res .txt | |
11 | ||
12 | TESTPKG=testdata | |
73c04bcf | 13 | TESTDT=$(TESTPKG) |
374ca955 A |
14 | |
15 | ||
16 | ALL : "$(TESTDATAOUT)\testdata.dat" | |
17 | @echo Test data is built. | |
18 | ||
729e4ab9 A |
19 | # old_l_testtypes.res is there for cintltst/udatatst.c/TestSwapData() |
20 | # I generated it with an ICU 4.2.1 build on Linux after removing | |
21 | # testincludeUTF (which would make it large, unnecessarily for this test) | |
22 | # and renaming the collations element to avoid build CollationElements | |
23 | # (which will not work with a newer swapper) | |
24 | # markus 2010jan15 | |
374ca955 | 25 | |
729e4ab9 | 26 | # old_e_testtypes.res is the same, but icuswapped to big-endian EBCDIC |
374ca955 | 27 | |
46f4442e A |
28 | # the following file has $(TEST_RES_SOURCE) |
29 | !INCLUDE "$(TESTDATA)\tstfiles.mk" | |
30 | ||
31 | TEST_RES_FILES = $(TEST_RES_SOURCE:.txt=.res) | |
32 | ||
b331163b | 33 | "$(TESTDATAOUT)\testdata.dat" : $(TEST_RES_FILES) "$(TESTDATABLD)\casing.res" "$(TESTDATABLD)\conversion.res" "$(TESTDATABLD)\icuio.res" "$(TESTDATABLD)\mc.res" "$(TESTDATABLD)\structLocale.res" "$(TESTDATABLD)\root.res" "$(TESTDATABLD)\sh.res" "$(TESTDATABLD)\sh_YU.res" "$(TESTDATABLD)\te.res" "$(TESTDATABLD)\te_IN.res" "$(TESTDATABLD)\te_IN_REVISED.res" "$(TESTDATABLD)\testaliases.res" "$(TESTDATABLD)\testtypes.res" "$(TESTDATABLD)\testempty.res" "$(TESTDATABLD)\encoded.res" "$(TESTDATABLD)\idna_rules.res" "$(TESTDATABLD)\test.icu" "$(TESTDATABLD)\testtable32.res" "$(TESTDATABLD)\test1.cnv" "$(TESTDATABLD)\test1bmp.cnv" "$(TESTDATABLD)\test2.cnv" "$(TESTDATABLD)\test3.cnv" "$(TESTDATABLD)\test4.cnv" "$(TESTDATABLD)\test4x.cnv" "$(TESTDATABLD)\test5.cnv" "$(TESTDATABLD)\ibm9027.cnv" "$(TESTDATABLD)\nfscsi.spp" "$(TESTDATABLD)\nfscss.spp" "$(TESTDATABLD)\nfscis.spp" "$(TESTDATABLD)\nfsmxs.spp" "$(TESTDATABLD)\nfsmxp.spp" "$(TESTDATABLD)\testnorm.nrm" "$(TESTDATABLD)\zoneinfo64.res" |
374ca955 | 34 | @echo Building test data |
73c04bcf | 35 | @copy "$(TESTDATABLD)\te.res" "$(TESTDATAOUT)\$(TESTDT)\nam.typ" |
729e4ab9 A |
36 | @copy "$(TESTDATA)\old_l_testtypes.res" "$(TESTDATABLD)" |
37 | @copy "$(TESTDATA)\old_e_testtypes.res" "$(TESTDATABLD)" | |
b331163b | 38 | @copy "$(TESTDATABLD)\zoneinfo64.res" "$(TESTDATAOUT)\$(TESTDT)" |
729e4ab9 | 39 | "$(ICUPBIN)\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" << |
73c04bcf A |
40 | casing.res |
41 | conversion.res | |
42 | mc.res | |
43 | root.res | |
44 | testtable32.res | |
45 | sh.res | |
46 | sh_YU.res | |
47 | te.res | |
48 | te_IN.res | |
49 | te_IN_REVISED.res | |
50 | testtypes.res | |
729e4ab9 A |
51 | old_l_testtypes.res |
52 | old_e_testtypes.res | |
73c04bcf A |
53 | testempty.res |
54 | testaliases.res | |
55 | structLocale.res | |
56 | icuio.res | |
b331163b | 57 | encoded.res |
73c04bcf A |
58 | test.icu |
59 | test1.cnv | |
46f4442e | 60 | test1bmp.cnv |
51004dcb | 61 | test2.cnv |
73c04bcf A |
62 | test3.cnv |
63 | test4.cnv | |
64 | test4x.cnv | |
729e4ab9 | 65 | test5.cnv |
73c04bcf A |
66 | ibm9027.cnv |
67 | idna_rules.res | |
68 | nfscsi.spp | |
69 | nfscss.spp | |
70 | nfscis.spp | |
71 | nfsmxs.spp | |
72 | nfsmxp.spp | |
729e4ab9 | 73 | testnorm.nrm |
46f4442e A |
74 | $(TEST_RES_FILES:.res =.res |
75 | ) | |
374ca955 A |
76 | << |
77 | ||
78 | ||
79 | # Inference rule for creating resource bundles | |
80 | # Some test data resource bundles are known to have warnings and bad data. | |
81 | # The -q option is there on purpose, so we don't see it normally. | |
82 | {$(TESTDATA)}.txt.res:: | |
83 | @echo Making Test Resource Bundle files $< | |
73c04bcf | 84 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $< |
374ca955 | 85 | |
b331163b A |
86 | "$(TESTDATABLD)\encoded.res": "$(TESTDATA)\encoded.utf16be" |
87 | @echo Making Test Resource Bundle file with encoding | |
88 | "$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -eUTF-16BE -d"$(TESTDATABLD)" encoded.utf16be | |
374ca955 | 89 | |
73c04bcf | 90 | "$(TESTDATABLD)\idna_rules.res": "$(TESTDATA)\idna_rules.txt" |
374ca955 | 91 | @echo Making Test Resource Bundle file for IDNA reference implementation |
73c04bcf | 92 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt |
374ca955 A |
93 | |
94 | ||
73c04bcf | 95 | "$(TESTDATABLD)\test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe |
374ca955 A |
96 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)" |
97 | ||
98 | # testtable32 resource file | |
99 | "$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe | |
100 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)" | |
101 | ||
73c04bcf | 102 | "$(TESTDATABLD)\testtable32.res": "$(TESTDATABLD)\testtable32.txt" |
46f4442e | 103 | "$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt |
374ca955 A |
104 | |
105 | # Targets for nfscsi.spp | |
73c04bcf | 106 | "$(TESTDATABLD)\nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt" |
374ca955 | 107 | @echo Building $@ |
73c04bcf | 108 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -u 3.2.0 nfs4_cs_prep_ci.txt |
374ca955 A |
109 | |
110 | # Targets for nfscss.spp | |
73c04bcf | 111 | "$(TESTDATABLD)\nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt" |
374ca955 | 112 | @echo Building $@ |
73c04bcf | 113 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -u 3.2.0 nfs4_cs_prep_cs.txt |
374ca955 A |
114 | |
115 | # Targets for nfscis.spp | |
73c04bcf | 116 | "$(TESTDATABLD)\nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt" |
374ca955 | 117 | @echo Building $@ |
73c04bcf | 118 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscis -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_cis_prep.txt |
374ca955 A |
119 | |
120 | # Targets for nfsmxs.spp | |
73c04bcf | 121 | "$(TESTDATABLD)\nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt" |
374ca955 | 122 | @echo Building $@ |
73c04bcf | 123 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxs -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_s.txt |
374ca955 A |
124 | |
125 | # Targets for nfsmxp.spp | |
73c04bcf | 126 | "$(TESTDATABLD)\nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt" |
374ca955 | 127 | @echo Building $@ |
73c04bcf | 128 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxp -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_p.txt |
374ca955 A |
129 | |
130 | ||
131 | # Targets for test converter data | |
73c04bcf | 132 | "$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm" |
374ca955 | 133 | @echo Building $@ |
46f4442e A |
134 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
135 | ||
136 | "$(TESTDATABLD)\test1bmp.cnv": "$(TESTDATA)\test1bmp.ucm" | |
137 | @echo Building $@ | |
138 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** | |
374ca955 | 139 | |
51004dcb A |
140 | "$(TESTDATABLD)\test2.cnv": "$(TESTDATA)\test2.ucm" |
141 | @echo Building $@ | |
142 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** | |
143 | ||
73c04bcf | 144 | "$(TESTDATABLD)\test3.cnv": "$(TESTDATA)\test3.ucm" |
374ca955 | 145 | @echo Building $@ |
46f4442e | 146 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
374ca955 | 147 | |
73c04bcf | 148 | "$(TESTDATABLD)\test4.cnv": "$(TESTDATA)\test4.ucm" |
374ca955 | 149 | @echo Building $@ |
46f4442e | 150 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
374ca955 | 151 | |
73c04bcf | 152 | "$(TESTDATABLD)\test4x.cnv": "$(TESTDATA)\test4x.ucm" |
374ca955 | 153 | @echo Building $@ |
46f4442e | 154 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
374ca955 | 155 | |
729e4ab9 A |
156 | "$(TESTDATABLD)\test5.cnv": "$(TESTDATA)\test5.ucm" |
157 | @echo Building $@ | |
158 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** | |
159 | ||
73c04bcf | 160 | "$(TESTDATABLD)\ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm" |
374ca955 | 161 | @echo Building $@ |
46f4442e | 162 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
729e4ab9 A |
163 | |
164 | # Target for test normalization data | |
165 | "$(TESTDATABLD)\testnorm.nrm": "$(TESTDATA)\testnorm.txt" | |
166 | @echo Building $@ | |
167 | @"$(ICUTOOLS)\gennorm2\$(CFG)\gennorm2" -s "$(TESTDATA)" testnorm.txt -o $@ |