]>
Commit | Line | Data |
---|---|---|
374ca955 | 1 | #********************************************************************** |
73c04bcf | 2 | #* Copyright (C) 1999-2006, 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 | ||
17 | # icu26_testtypes.res is there for cintltst/udatatst.c/TestSwapData() | |
18 | # I generated it with an ICU 2.6.1 build on Windows after removing | |
19 | # testincludeUTF (which made it large, unnecessarily for this test) | |
20 | # and CollationElements (which will not work with a newer swapper) | |
21 | # markus 2003nov19 | |
22 | ||
23 | # icu26e_testtypes.res is the same, but icuswapped to big-endian EBCDIC | |
24 | # markus 2003nov21 | |
25 | ||
73c04bcf | 26 | "$(TESTDATAOUT)\testdata.dat" : "$(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)\DataDrivenCollationTest.res" "$(TESTDATABLD)\test.icu" "$(TESTDATABLD)\testtable32.res" "$(TESTDATABLD)\test1.cnv" "$(TESTDATABLD)\test3.cnv" "$(TESTDATABLD)\test4.cnv" "$(TESTDATABLD)\test4x.cnv" "$(TESTDATABLD)\ibm9027.cnv" "$(TESTDATABLD)\nfscsi.spp" "$(TESTDATABLD)\nfscss.spp" "$(TESTDATABLD)\nfscis.spp" "$(TESTDATABLD)\nfsmxs.spp" "$(TESTDATABLD)\nfsmxp.spp" |
374ca955 | 27 | @echo Building test data |
73c04bcf A |
28 | @copy "$(TESTDATABLD)\te.res" "$(TESTDATAOUT)\$(TESTDT)\nam.typ" |
29 | @copy "$(TESTDATA)\icu26_testtypes.res" "$(TESTDATABLD)" | |
30 | @copy "$(TESTDATA)\icu26e_testtypes.res" "$(TESTDATABLD)" | |
31 | "$(ICUP)\bin\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" << | |
32 | casing.res | |
33 | conversion.res | |
34 | mc.res | |
35 | root.res | |
36 | testtable32.res | |
37 | sh.res | |
38 | sh_YU.res | |
39 | te.res | |
40 | te_IN.res | |
41 | te_IN_REVISED.res | |
42 | testtypes.res | |
43 | icu26_testtypes.res | |
44 | icu26e_testtypes.res | |
45 | testempty.res | |
46 | testaliases.res | |
47 | structLocale.res | |
48 | icuio.res | |
49 | iscii.res | |
50 | DataDrivenCollationTest.res | |
51 | test.icu | |
52 | test1.cnv | |
53 | test3.cnv | |
54 | test4.cnv | |
55 | test4x.cnv | |
56 | ibm9027.cnv | |
57 | idna_rules.res | |
58 | nfscsi.spp | |
59 | nfscss.spp | |
60 | nfscis.spp | |
61 | nfsmxs.spp | |
62 | nfsmxp.spp | |
374ca955 A |
63 | << |
64 | ||
65 | ||
66 | # Inference rule for creating resource bundles | |
67 | # Some test data resource bundles are known to have warnings and bad data. | |
68 | # The -q option is there on purpose, so we don't see it normally. | |
69 | {$(TESTDATA)}.txt.res:: | |
70 | @echo Making Test Resource Bundle files $< | |
73c04bcf | 71 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $< |
374ca955 | 72 | |
73c04bcf | 73 | "$(TESTDATABLD)\iscii.res": "$(TESTDATA)\iscii.bin" |
374ca955 | 74 | @echo Making Test Resource Bundle file with encoding ISCII,version=0 |
73c04bcf | 75 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -eISCII,version=0 -d"$(TESTDATABLD)" iscii.bin |
374ca955 | 76 | |
73c04bcf | 77 | "$(TESTDATABLD)\idna_rules.res": "$(TESTDATA)\idna_rules.txt" |
374ca955 | 78 | @echo Making Test Resource Bundle file for IDNA reference implementation |
73c04bcf | 79 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt |
374ca955 A |
80 | |
81 | ||
73c04bcf | 82 | "$(TESTDATABLD)\test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe |
374ca955 A |
83 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)" |
84 | ||
85 | # testtable32 resource file | |
86 | "$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe | |
87 | "$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)" | |
88 | ||
73c04bcf | 89 | "$(TESTDATABLD)\testtable32.res": "$(TESTDATABLD)\testtable32.txt" |
374ca955 | 90 | @echo Making Test Resource Bundle file for IDNA reference implementation |
73c04bcf | 91 | @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt |
374ca955 A |
92 | |
93 | # Targets for nfscsi.spp | |
73c04bcf | 94 | "$(TESTDATABLD)\nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt" |
374ca955 | 95 | @echo Building $@ |
73c04bcf | 96 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -u 3.2.0 nfs4_cs_prep_ci.txt |
374ca955 A |
97 | |
98 | # Targets for nfscss.spp | |
73c04bcf | 99 | "$(TESTDATABLD)\nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt" |
374ca955 | 100 | @echo Building $@ |
73c04bcf | 101 | @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -u 3.2.0 nfs4_cs_prep_cs.txt |
374ca955 A |
102 | |
103 | # Targets for nfscis.spp | |
73c04bcf | 104 | "$(TESTDATABLD)\nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt" |
374ca955 | 105 | @echo Building $@ |
73c04bcf | 106 | @"$(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 |
107 | |
108 | # Targets for nfsmxs.spp | |
73c04bcf | 109 | "$(TESTDATABLD)\nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt" |
374ca955 | 110 | @echo Building $@ |
73c04bcf | 111 | @"$(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 |
112 | |
113 | # Targets for nfsmxp.spp | |
73c04bcf | 114 | "$(TESTDATABLD)\nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt" |
374ca955 | 115 | @echo Building $@ |
73c04bcf | 116 | @"$(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 |
117 | |
118 | ||
119 | # Targets for test converter data | |
73c04bcf | 120 | "$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm" |
374ca955 | 121 | @echo Building $@ |
73c04bcf | 122 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" $** |
374ca955 | 123 | |
73c04bcf | 124 | "$(TESTDATABLD)\test3.cnv": "$(TESTDATA)\test3.ucm" |
374ca955 | 125 | @echo Building $@ |
73c04bcf | 126 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" $** |
374ca955 | 127 | |
73c04bcf | 128 | "$(TESTDATABLD)\test4.cnv": "$(TESTDATA)\test4.ucm" |
374ca955 | 129 | @echo Building $@ |
73c04bcf | 130 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" $** |
374ca955 | 131 | |
73c04bcf | 132 | "$(TESTDATABLD)\test4x.cnv": "$(TESTDATA)\test4x.ucm" |
374ca955 | 133 | @echo Building $@ |
73c04bcf | 134 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" $** |
374ca955 | 135 | |
73c04bcf | 136 | "$(TESTDATABLD)\ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm" |
374ca955 | 137 | @echo Building $@ |
73c04bcf | 138 | @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" $** |
374ca955 | 139 |