2001-03-19 22:35:36 +00:00
|
|
|
#**********************************************************************
|
2014-02-25 21:21:49 +00:00
|
|
|
#* Copyright (C) 1999-2014, International Business Machines Corporation
|
2001-03-19 22:35:36 +00:00
|
|
|
#* and others. All Rights Reserved.
|
|
|
|
#**********************************************************************
|
|
|
|
#
|
2001-10-10 18:32:06 +00:00
|
|
|
# 03/19/2001 weiv, schererm Created
|
2001-03-19 22:35:36 +00:00
|
|
|
|
|
|
|
.SUFFIXES : .res .txt
|
|
|
|
|
2002-07-17 03:56:50 +00:00
|
|
|
TESTPKG=testdata
|
2006-02-24 19:31:34 +00:00
|
|
|
TESTDT=$(TESTPKG)
|
2002-07-17 03:56:50 +00:00
|
|
|
|
2002-01-24 18:12:46 +00:00
|
|
|
|
2001-07-26 21:55:49 +00:00
|
|
|
ALL : "$(TESTDATAOUT)\testdata.dat"
|
2001-03-19 22:35:36 +00:00
|
|
|
@echo Test data is built.
|
|
|
|
|
2010-01-16 05:15:30 +00:00
|
|
|
# old_l_testtypes.res is there for cintltst/udatatst.c/TestSwapData()
|
|
|
|
# I generated it with an ICU 4.2.1 build on Linux after removing
|
|
|
|
# testincludeUTF (which would make it large, unnecessarily for this test)
|
|
|
|
# and renaming the collations element to avoid build CollationElements
|
|
|
|
# (which will not work with a newer swapper)
|
|
|
|
# markus 2010jan15
|
2003-11-19 18:44:17 +00:00
|
|
|
|
2010-01-16 05:15:30 +00:00
|
|
|
# old_e_testtypes.res is the same, but icuswapped to big-endian EBCDIC
|
2003-11-21 18:31:20 +00:00
|
|
|
|
2007-07-12 21:53:20 +00:00
|
|
|
# the following file has $(TEST_RES_SOURCE)
|
|
|
|
!INCLUDE "$(TESTDATA)\tstfiles.mk"
|
|
|
|
|
|
|
|
TEST_RES_FILES = $(TEST_RES_SOURCE:.txt=.res)
|
|
|
|
|
2014-09-04 01:07:38 +00:00
|
|
|
"$(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)\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"
|
2001-03-19 22:35:36 +00:00
|
|
|
@echo Building test data
|
2006-02-24 19:31:34 +00:00
|
|
|
@copy "$(TESTDATABLD)\te.res" "$(TESTDATAOUT)\$(TESTDT)\nam.typ"
|
2010-01-16 05:15:30 +00:00
|
|
|
@copy "$(TESTDATA)\old_l_testtypes.res" "$(TESTDATABLD)"
|
|
|
|
@copy "$(TESTDATA)\old_e_testtypes.res" "$(TESTDATABLD)"
|
2014-09-04 01:07:38 +00:00
|
|
|
@copy "$(TESTDATABLD)\zoneinfo64.res" "$(TESTDATAOUT)\$(TESTDT)"
|
2008-08-12 04:41:41 +00:00
|
|
|
"$(ICUPBIN)\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" <<
|
2006-02-24 19:31:34 +00:00
|
|
|
casing.res
|
|
|
|
conversion.res
|
|
|
|
mc.res
|
|
|
|
root.res
|
|
|
|
testtable32.res
|
|
|
|
sh.res
|
|
|
|
sh_YU.res
|
|
|
|
te.res
|
|
|
|
te_IN.res
|
|
|
|
te_IN_REVISED.res
|
|
|
|
testtypes.res
|
2010-01-16 05:15:30 +00:00
|
|
|
old_l_testtypes.res
|
|
|
|
old_e_testtypes.res
|
2006-02-24 19:31:34 +00:00
|
|
|
testempty.res
|
|
|
|
testaliases.res
|
|
|
|
structLocale.res
|
|
|
|
icuio.res
|
|
|
|
iscii.res
|
|
|
|
test.icu
|
|
|
|
test1.cnv
|
2007-12-07 05:34:26 +00:00
|
|
|
test1bmp.cnv
|
2012-10-05 20:12:49 +00:00
|
|
|
test2.cnv
|
2006-02-24 19:31:34 +00:00
|
|
|
test3.cnv
|
|
|
|
test4.cnv
|
|
|
|
test4x.cnv
|
2009-06-23 21:15:32 +00:00
|
|
|
test5.cnv
|
2006-02-24 19:31:34 +00:00
|
|
|
ibm9027.cnv
|
|
|
|
idna_rules.res
|
|
|
|
nfscsi.spp
|
|
|
|
nfscss.spp
|
|
|
|
nfscis.spp
|
|
|
|
nfsmxs.spp
|
|
|
|
nfsmxp.spp
|
2010-02-16 23:43:22 +00:00
|
|
|
testnorm.nrm
|
2007-07-12 22:58:54 +00:00
|
|
|
$(TEST_RES_FILES:.res =.res
|
|
|
|
)
|
2006-02-24 21:25:44 +00:00
|
|
|
<<
|
2001-03-19 22:35:36 +00:00
|
|
|
|
2001-11-16 05:17:32 +00:00
|
|
|
|
2001-03-19 22:35:36 +00:00
|
|
|
# Inference rule for creating resource bundles
|
2001-10-10 18:32:06 +00:00
|
|
|
# Some test data resource bundles are known to have warnings and bad data.
|
|
|
|
# The -q option is there on purpose, so we don't see it normally.
|
2006-02-24 21:25:44 +00:00
|
|
|
{$(TESTDATA)}.txt.res::
|
2002-07-17 03:56:50 +00:00
|
|
|
@echo Making Test Resource Bundle files $<
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $<
|
2001-03-19 22:35:36 +00:00
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\iscii.res": "$(TESTDATA)\iscii.bin"
|
2003-02-28 21:38:30 +00:00
|
|
|
@echo Making Test Resource Bundle file with encoding ISCII,version=0
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -eISCII,version=0 -d"$(TESTDATABLD)" iscii.bin
|
2003-02-28 21:38:30 +00:00
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\idna_rules.res": "$(TESTDATA)\idna_rules.txt"
|
2003-02-28 21:38:30 +00:00
|
|
|
@echo Making Test Resource Bundle file for IDNA reference implementation
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt
|
2003-02-28 21:38:30 +00:00
|
|
|
|
2002-07-17 03:56:50 +00:00
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
|
2002-07-17 03:56:50 +00:00
|
|
|
"$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)"
|
|
|
|
|
2003-09-26 01:57:13 +00:00
|
|
|
# testtable32 resource file
|
2003-09-26 17:04:12 +00:00
|
|
|
"$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe
|
2003-09-26 01:57:13 +00:00
|
|
|
"$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)"
|
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\testtable32.res": "$(TESTDATABLD)\testtable32.txt"
|
2006-12-13 01:38:41 +00:00
|
|
|
"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt
|
2003-09-26 01:57:13 +00:00
|
|
|
|
2003-07-25 00:02:36 +00:00
|
|
|
# Targets for nfscsi.spp
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -u 3.2.0 nfs4_cs_prep_ci.txt
|
2003-07-25 00:02:36 +00:00
|
|
|
|
|
|
|
# Targets for nfscss.spp
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -u 3.2.0 nfs4_cs_prep_cs.txt
|
2003-07-25 00:02:36 +00:00
|
|
|
|
|
|
|
# Targets for nfscis.spp
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscis -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_cis_prep.txt
|
2003-07-25 00:02:36 +00:00
|
|
|
|
|
|
|
# Targets for nfsmxs.spp
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxs -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_s.txt
|
2003-07-25 00:02:36 +00:00
|
|
|
|
|
|
|
# Targets for nfsmxp.spp
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2006-02-24 19:31:34 +00:00
|
|
|
@"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxp -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_p.txt
|
2002-07-17 03:56:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Targets for test converter data
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2007-10-25 17:05:36 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
2002-07-17 03:56:50 +00:00
|
|
|
|
2007-12-07 05:34:26 +00:00
|
|
|
"$(TESTDATABLD)\test1bmp.cnv": "$(TESTDATA)\test1bmp.ucm"
|
|
|
|
@echo Building $@
|
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
|
|
|
|
2012-10-05 20:12:49 +00:00
|
|
|
"$(TESTDATABLD)\test2.cnv": "$(TESTDATA)\test2.ucm"
|
|
|
|
@echo Building $@
|
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\test3.cnv": "$(TESTDATA)\test3.ucm"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2007-10-25 17:05:36 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
2001-11-01 19:43:21 +00:00
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\test4.cnv": "$(TESTDATA)\test4.ucm"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2007-10-25 17:05:36 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
2003-04-17 18:11:28 +00:00
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\test4x.cnv": "$(TESTDATA)\test4x.ucm"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2007-10-25 17:05:36 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
2003-11-12 02:04:55 +00:00
|
|
|
|
2009-06-23 21:15:32 +00:00
|
|
|
"$(TESTDATABLD)\test5.cnv": "$(TESTDATA)\test5.ucm"
|
|
|
|
@echo Building $@
|
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
|
|
|
|
2006-02-24 19:31:34 +00:00
|
|
|
"$(TESTDATABLD)\ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm"
|
2004-03-30 06:15:34 +00:00
|
|
|
@echo Building $@
|
2007-10-25 17:05:36 +00:00
|
|
|
@"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $**
|
2010-02-16 23:43:22 +00:00
|
|
|
|
|
|
|
# Target for test normalization data
|
|
|
|
"$(TESTDATABLD)\testnorm.nrm": "$(TESTDATA)\testnorm.txt"
|
|
|
|
@echo Building $@
|
|
|
|
@"$(ICUTOOLS)\gennorm2\$(CFG)\gennorm2" -s "$(TESTDATA)" testnorm.txt -o $@
|