• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#**********************************************************************
2#* Copyright (C) 1999-2007, 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
10TESTPKG=testdata
11TESTDT=$(TESTPKG)
12
13
14ALL : "$(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# the following file has $(TEST_RES_SOURCE)
27!INCLUDE "$(TESTDATA)\tstfiles.mk"
28
29TEST_RES_FILES = $(TEST_RES_SOURCE:.txt=.res)
30
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)\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"
32	@echo Building test data
33	@copy "$(TESTDATABLD)\te.res" "$(TESTDATAOUT)\$(TESTDT)\nam.typ"
34	@copy "$(TESTDATA)\icu26_testtypes.res" "$(TESTDATABLD)"
35	@copy "$(TESTDATA)\icu26e_testtypes.res" "$(TESTDATABLD)"
36	"$(ICUP)\bin\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" <<
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
48icu26_testtypes.res
49icu26e_testtypes.res
50testempty.res
51testaliases.res
52structLocale.res
53icuio.res
54iscii.res
55test.icu
56test1.cnv
57test3.cnv
58test4.cnv
59test4x.cnv
60ibm9027.cnv
61idna_rules.res
62nfscsi.spp
63nfscss.spp
64nfscis.spp
65nfsmxs.spp
66nfsmxp.spp
67$(TEST_RES_FILES:.res =.res
68)
69<<
70
71
72# Inference rule for creating resource bundles
73# Some test data resource bundles are known to have warnings and bad data.
74# The -q option is there on purpose, so we don't see it normally.
75{$(TESTDATA)}.txt.res::
76	@echo Making Test Resource Bundle files $<
77	@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $<
78
79"$(TESTDATABLD)\iscii.res": "$(TESTDATA)\iscii.bin"
80	@echo Making Test Resource Bundle file with encoding ISCII,version=0
81	@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -eISCII,version=0 -d"$(TESTDATABLD)" iscii.bin
82
83"$(TESTDATABLD)\idna_rules.res": "$(TESTDATA)\idna_rules.txt"
84	@echo Making Test Resource Bundle file for IDNA reference implementation
85	@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt
86
87
88"$(TESTDATABLD)\test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
89	"$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)"
90
91# testtable32 resource file
92"$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
93	"$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)"
94
95"$(TESTDATABLD)\testtable32.res": "$(TESTDATABLD)\testtable32.txt"
96	"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt
97
98# Targets for nfscsi.spp
99"$(TESTDATABLD)\nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt"
100	@echo Building $@
101	@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -u 3.2.0 nfs4_cs_prep_ci.txt
102
103# Targets for nfscss.spp
104"$(TESTDATABLD)\nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt"
105	@echo Building $@
106	@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -u 3.2.0 nfs4_cs_prep_cs.txt
107
108# Targets for nfscis.spp
109"$(TESTDATABLD)\nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt"
110	@echo Building $@
111	@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscis -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_cis_prep.txt
112
113# Targets for nfsmxs.spp
114"$(TESTDATABLD)\nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt"
115	@echo Building $@
116	@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxs -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_s.txt
117
118# Targets for nfsmxp.spp
119"$(TESTDATABLD)\nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt"
120	@echo Building $@
121	@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxp -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_p.txt
122
123
124# Targets for test converter data
125"$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm"
126	@echo Building $@
127	@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
128
129"$(TESTDATABLD)\test3.cnv": "$(TESTDATA)\test3.ucm"
130	@echo Building $@
131	@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
132
133"$(TESTDATABLD)\test4.cnv": "$(TESTDATA)\test4.ucm"
134	@echo Building $@
135	@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
136
137"$(TESTDATABLD)\test4x.cnv": "$(TESTDATA)\test4x.ucm"
138	@echo Building $@
139	@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
140
141"$(TESTDATABLD)\ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm"
142	@echo Building $@
143	@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
144
145