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