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