]> git.saurik.com Git - apple/icu.git/blob - icuSources/test/testdata/testdata.mak
ICU-6.2.6.tar.gz
[apple/icu.git] / icuSources / test / testdata / testdata.mak
1 #**********************************************************************
2 #* Copyright (C) 1999-2004, International Business Machines Corporation
3 #* and others. All Rights Reserved.
4 #**********************************************************************
5 #
6 # 03/19/2001 weiv, schererm Created
7
8 .SUFFIXES : .res .txt
9
10 TESTPKG=testdata
11 TESTDT=$(TESTPKG)_
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
26 "$(TESTDATAOUT)\testdata.dat" : "$(TESTDATABLD)\casing.res" "$(TESTDATABLD)\conversion.res" "$(TESTDATABLD)\icuio.res" "$(TESTDATABLD)\mc.res" "$(TESTDATABLD)\structLocale.res" "$(TESTDATABLD)\root.res" "$(TESTDATABLD)\te.res" "$(TESTDATABLD)\te_IN.res" "$(TESTDATABLD)\testaliases.res" "$(TESTDATABLD)\testtypes.res" "$(TESTDATABLD)\testempty.res" "$(TESTDATABLD)\$(TESTDT)iscii.res" "$(TESTDATABLD)\$(TESTDT)idna_rules.res" "$(TESTDATABLD)\DataDrivenCollationTest.res" "$(TESTDATABLD)\$(TESTDT)test.icu" "$(TESTDATABLD)\$(TESTDT)testtable32.res" "$(TESTDATABLD)\$(TESTDT)test1.cnv" "$(TESTDATABLD)\$(TESTDT)test3.cnv" "$(TESTDATABLD)\$(TESTDT)test4.cnv" "$(TESTDATABLD)\$(TESTDT)test4x.cnv" "$(TESTDATABLD)\$(TESTDT)ibm9027.cnv" "$(TESTDATABLD)\$(TESTDT)nfscsi.spp" "$(TESTDATABLD)\$(TESTDT)nfscss.spp" "$(TESTDATABLD)\$(TESTDT)nfscis.spp" "$(TESTDATABLD)\$(TESTDT)nfsmxs.spp" "$(TESTDATABLD)\$(TESTDT)nfsmxp.spp"
27 @echo Building test data
28 @copy "$(TESTDATABLD)\$(TESTDT)te.res" "$(TESTDATAOUT)\$(TESTDT)nam.typ"
29 @copy "$(TESTDATA)\$(TESTDT)icu26_testtypes.res" "$(TESTDATABLD)"
30 @copy "$(TESTDATA)\$(TESTDT)icu26e_testtypes.res" "$(TESTDATABLD)"
31 @"$(ICUP)\bin\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" <<
32 $(TESTDT)casing.res
33 $(TESTDT)conversion.res
34 $(TESTDT)mc.res
35 $(TESTDT)root.res
36 $(TESTDT)testtable32.res
37 $(TESTDT)te.res
38 $(TESTDT)te_IN.res
39 $(TESTDT)testtypes.res
40 $(TESTDT)icu26_testtypes.res
41 $(TESTDT)icu26e_testtypes.res
42 $(TESTDT)testempty.res
43 $(TESTDT)testaliases.res
44 $(TESTDT)structLocale.res
45 $(TESTDT)icuio.res
46 $(TESTDT)iscii.res
47 $(TESTDT)DataDrivenCollationTest.res
48 $(TESTDT)test.icu
49 $(TESTDT)test1.cnv
50 $(TESTDT)test3.cnv
51 $(TESTDT)test4.cnv
52 $(TESTDT)test4x.cnv
53 $(TESTDT)ibm9027.cnv
54 $(TESTDT)idna_rules.res
55 $(TESTDT)nfscsi.spp
56 $(TESTDT)nfscss.spp
57 $(TESTDT)nfscis.spp
58 $(TESTDT)nfsmxs.spp
59 $(TESTDT)nfsmxp.spp
60 <<
61
62
63 # Inference rule for creating resource bundles
64 # Some test data resource bundles are known to have warnings and bad data.
65 # The -q option is there on purpose, so we don't see it normally.
66 {$(TESTDATA)}.txt.res::
67 @echo Making Test Resource Bundle files $<
68 @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -t -p"$(TESTPKG)" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $<
69
70 "$(TESTDATABLD)\$(TESTDT)iscii.res": "$(TESTDATA)\iscii.bin"
71 @echo Making Test Resource Bundle file with encoding ISCII,version=0
72 @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -p"$(TESTPKG)" -q -s"$(TESTDATA)" -eISCII,version=0 -d"$(TESTDATABLD)" iscii.bin
73
74 "$(TESTDATABLD)\$(TESTDT)idna_rules.res": "$(TESTDATA)\idna_rules.txt"
75 @echo Making Test Resource Bundle file for IDNA reference implementation
76 @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -p"$(TESTPKG)" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt
77
78
79 "$(TESTDATABLD)\$(TESTDT)test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
80 "$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)"
81
82 # testtable32 resource file
83 "$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
84 "$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)"
85
86 "$(TESTDATABLD)\$(TESTDT)testtable32.res": "$(TESTDATABLD)\testtable32.txt"
87 @echo Making Test Resource Bundle file for IDNA reference implementation
88 @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -p"$(TESTPKG)" -q -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt
89
90 # Targets for nfscsi.spp
91 "$(TESTDATABLD)\$(TESTDT)nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt"
92 @echo Building $@
93 @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -p "$(TESTPKG)" -u 3.2.0 nfs4_cs_prep_ci.txt
94
95 # Targets for nfscss.spp
96 "$(TESTDATABLD)\$(TESTDT)nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt"
97 @echo Building $@
98 @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -p "$(TESTPKG)" -u 3.2.0 nfs4_cs_prep_cs.txt
99
100 # Targets for nfscis.spp
101 "$(TESTDATABLD)\$(TESTDT)nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt"
102 @echo Building $@
103 @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscis -p "$(TESTPKG)" -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_cis_prep.txt
104
105 # Targets for nfsmxs.spp
106 "$(TESTDATABLD)\$(TESTDT)nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt"
107 @echo Building $@
108 @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxs -p "$(TESTPKG)" -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_s.txt
109
110 # Targets for nfsmxp.spp
111 "$(TESTDATABLD)\$(TESTDT)nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt"
112 @echo Building $@
113 @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxp -p "$(TESTPKG)" -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_p.txt
114
115
116 # Targets for test converter data
117 "$(TESTDATABLD)\$(TESTDT)test1.cnv": "$(TESTDATA)\test1.ucm"
118 @echo Building $@
119 @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $**
120
121 "$(TESTDATABLD)\$(TESTDT)test3.cnv": "$(TESTDATA)\test3.ucm"
122 @echo Building $@
123 @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $**
124
125 "$(TESTDATABLD)\$(TESTDT)test4.cnv": "$(TESTDATA)\test4.ucm"
126 @echo Building $@
127 @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $**
128
129 "$(TESTDATABLD)\$(TESTDT)test4x.cnv": "$(TESTDATA)\test4x.ucm"
130 @echo Building $@
131 @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $**
132
133 "$(TESTDATABLD)\$(TESTDT)ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm"
134 @echo Building $@
135 @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $**
136