]>
Commit | Line | Data |
---|---|---|
374ca955 | 1 | #********************************************************************** |
b331163b | 2 | #* Copyright (C) 1999-2015, 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 | ||
b331163b | 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)\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 | 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)" | |
b331163b | 36 | @copy "$(TESTDATABLD)\zoneinfo64.res" "$(TESTDATAOUT)\$(TESTDT)" |
729e4ab9 | 37 | "$(ICUPBIN)\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" << |
73c04bcf A |
38 | casing.res |
39 | conversion.res | |
40 | mc.res | |
41 | root.res | |
42 | testtable32.res | |
43 | sh.res | |
44 | sh_YU.res | |
45 | te.res | |
46 | te_IN.res | |
47 | te_IN_REVISED.res | |
48 | testtypes.res | |
729e4ab9 A |
49 | old_l_testtypes.res |
50 | old_e_testtypes.res | |
73c04bcf A |
51 | testempty.res |
52 | testaliases.res | |
53 | structLocale.res | |
54 | icuio.res | |
b331163b | 55 | encoded.res |
73c04bcf A |
56 | test.icu |
57 | test1.cnv | |
46f4442e | 58 | test1bmp.cnv |
51004dcb | 59 | test2.cnv |
73c04bcf A |
60 | test3.cnv |
61 | test4.cnv | |
62 | test4x.cnv | |
729e4ab9 | 63 | test5.cnv |
73c04bcf A |
64 | ibm9027.cnv |
65 | idna_rules.res | |
66 | nfscsi.spp | |
67 | nfscss.spp | |
68 | nfscis.spp | |
69 | nfsmxs.spp | |
70 | nfsmxp.spp | |
729e4ab9 | 71 | testnorm.nrm |
46f4442e A |
72 | $(TEST_RES_FILES:.res =.res |
73 | ) | |
374ca955 A |
74 | << |
75 | ||
76 | ||
77 | # Inference rule for creating resource bundles | |
78 | # Some test data resource bundles are known to have warnings and bad data. | |
79 | # The -q option is there on purpose, so we don't see it normally. | |
80 | {$(TESTDATA)}.txt.res:: | |
81 | @echo Making Test Resource Bundle files $< | |
73c04bcf | 82 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $< |
374ca955 | 83 | |
b331163b A |
84 | "$(TESTDATABLD)\encoded.res": "$(TESTDATA)\encoded.utf16be" |
85 | @echo Making Test Resource Bundle file with encoding | |
86 | "$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -eUTF-16BE -d"$(TESTDATABLD)" encoded.utf16be | |
374ca955 | 87 | |
73c04bcf | 88 | "$(TESTDATABLD)\idna_rules.res": "$(TESTDATA)\idna_rules.txt" |
374ca955 | 89 | @echo Making Test Resource Bundle file for IDNA reference implementation |
73c04bcf | 90 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt |
374ca955 A |
91 | |
92 | ||
73c04bcf | 93 | "$(TESTDATABLD)\test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe |
374ca955 A |
94 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)" |
95 | ||
96 | # testtable32 resource file | |
97 | "$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe | |
98 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)" | |
99 | ||
73c04bcf | 100 | "$(TESTDATABLD)\testtable32.res": "$(TESTDATABLD)\testtable32.txt" |
46f4442e | 101 | "$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt |
374ca955 A |
102 | |
103 | # Targets for nfscsi.spp | |
73c04bcf | 104 | "$(TESTDATABLD)\nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt" |
374ca955 | 105 | @echo Building $@ |
73c04bcf | 106 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -u 3.2.0 nfs4_cs_prep_ci.txt |
374ca955 A |
107 | |
108 | # Targets for nfscss.spp | |
73c04bcf | 109 | "$(TESTDATABLD)\nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt" |
374ca955 | 110 | @echo Building $@ |
73c04bcf | 111 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -u 3.2.0 nfs4_cs_prep_cs.txt |
374ca955 A |
112 | |
113 | # Targets for nfscis.spp | |
73c04bcf | 114 | "$(TESTDATABLD)\nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt" |
374ca955 | 115 | @echo Building $@ |
73c04bcf | 116 | @"$(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 |
117 | |
118 | # Targets for nfsmxs.spp | |
73c04bcf | 119 | "$(TESTDATABLD)\nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt" |
374ca955 | 120 | @echo Building $@ |
73c04bcf | 121 | @"$(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 |
122 | |
123 | # Targets for nfsmxp.spp | |
73c04bcf | 124 | "$(TESTDATABLD)\nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt" |
374ca955 | 125 | @echo Building $@ |
73c04bcf | 126 | @"$(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 |
127 | |
128 | ||
129 | # Targets for test converter data | |
73c04bcf | 130 | "$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm" |
374ca955 | 131 | @echo Building $@ |
46f4442e A |
132 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
133 | ||
134 | "$(TESTDATABLD)\test1bmp.cnv": "$(TESTDATA)\test1bmp.ucm" | |
135 | @echo Building $@ | |
136 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** | |
374ca955 | 137 | |
51004dcb A |
138 | "$(TESTDATABLD)\test2.cnv": "$(TESTDATA)\test2.ucm" |
139 | @echo Building $@ | |
140 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** | |
141 | ||
73c04bcf | 142 | "$(TESTDATABLD)\test3.cnv": "$(TESTDATA)\test3.ucm" |
374ca955 | 143 | @echo Building $@ |
46f4442e | 144 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
374ca955 | 145 | |
73c04bcf | 146 | "$(TESTDATABLD)\test4.cnv": "$(TESTDATA)\test4.ucm" |
374ca955 | 147 | @echo Building $@ |
46f4442e | 148 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
374ca955 | 149 | |
73c04bcf | 150 | "$(TESTDATABLD)\test4x.cnv": "$(TESTDATA)\test4x.ucm" |
374ca955 | 151 | @echo Building $@ |
46f4442e | 152 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
374ca955 | 153 | |
729e4ab9 A |
154 | "$(TESTDATABLD)\test5.cnv": "$(TESTDATA)\test5.ucm" |
155 | @echo Building $@ | |
156 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** | |
157 | ||
73c04bcf | 158 | "$(TESTDATABLD)\ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm" |
374ca955 | 159 | @echo Building $@ |
46f4442e | 160 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** |
729e4ab9 A |
161 | |
162 | # Target for test normalization data | |
163 | "$(TESTDATABLD)\testnorm.nrm": "$(TESTDATA)\testnorm.txt" | |
164 | @echo Building $@ | |
165 | @"$(ICUTOOLS)\gennorm2\$(CFG)\gennorm2" -s "$(TESTDATA)" testnorm.txt -o $@ |