X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..08b89b0a244153b9f5bbb2f49c55ab0f7298122e:/icuSources/test/testdata/testdata.mak diff --git a/icuSources/test/testdata/testdata.mak b/icuSources/test/testdata/testdata.mak index dbe0f079..1f3999bb 100644 --- a/icuSources/test/testdata/testdata.mak +++ b/icuSources/test/testdata/testdata.mak @@ -1,5 +1,5 @@ #********************************************************************** -#* Copyright (C) 1999-2004, International Business Machines Corporation +#* Copyright (C) 1999-2014, International Business Machines Corporation #* and others. All Rights Reserved. #********************************************************************** # @@ -8,55 +8,68 @@ .SUFFIXES : .res .txt TESTPKG=testdata -TESTDT=$(TESTPKG)_ +TESTDT=$(TESTPKG) ALL : "$(TESTDATAOUT)\testdata.dat" @echo Test data is built. -# icu26_testtypes.res is there for cintltst/udatatst.c/TestSwapData() -# I generated it with an ICU 2.6.1 build on Windows after removing -# testincludeUTF (which made it large, unnecessarily for this test) -# and CollationElements (which will not work with a newer swapper) -# markus 2003nov19 +# 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 -# icu26e_testtypes.res is the same, but icuswapped to big-endian EBCDIC -# markus 2003nov21 +# old_e_testtypes.res is the same, but icuswapped to big-endian EBCDIC -"$(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" +# the following file has $(TEST_RES_SOURCE) +!INCLUDE "$(TESTDATA)\tstfiles.mk" + +TEST_RES_FILES = $(TEST_RES_SOURCE:.txt=.res) + +"$(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" @echo Building test data - @copy "$(TESTDATABLD)\$(TESTDT)te.res" "$(TESTDATAOUT)\$(TESTDT)nam.typ" - @copy "$(TESTDATA)\$(TESTDT)icu26_testtypes.res" "$(TESTDATABLD)" - @copy "$(TESTDATA)\$(TESTDT)icu26e_testtypes.res" "$(TESTDATABLD)" - @"$(ICUP)\bin\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" << -$(TESTDT)casing.res -$(TESTDT)conversion.res -$(TESTDT)mc.res -$(TESTDT)root.res -$(TESTDT)testtable32.res -$(TESTDT)te.res -$(TESTDT)te_IN.res -$(TESTDT)testtypes.res -$(TESTDT)icu26_testtypes.res -$(TESTDT)icu26e_testtypes.res -$(TESTDT)testempty.res -$(TESTDT)testaliases.res -$(TESTDT)structLocale.res -$(TESTDT)icuio.res -$(TESTDT)iscii.res -$(TESTDT)DataDrivenCollationTest.res -$(TESTDT)test.icu -$(TESTDT)test1.cnv -$(TESTDT)test3.cnv -$(TESTDT)test4.cnv -$(TESTDT)test4x.cnv -$(TESTDT)ibm9027.cnv -$(TESTDT)idna_rules.res -$(TESTDT)nfscsi.spp -$(TESTDT)nfscss.spp -$(TESTDT)nfscis.spp -$(TESTDT)nfsmxs.spp -$(TESTDT)nfsmxp.spp + @copy "$(TESTDATABLD)\te.res" "$(TESTDATAOUT)\$(TESTDT)\nam.typ" + @copy "$(TESTDATA)\old_l_testtypes.res" "$(TESTDATABLD)" + @copy "$(TESTDATA)\old_e_testtypes.res" "$(TESTDATABLD)" + "$(ICUPBIN)\pkgdata" -f -v -m common -c -p"$(TESTPKG)" -d "$(TESTDATAOUT)" -T "$(TESTDATABLD)" -s "$(TESTDATABLD)" << +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 +old_l_testtypes.res +old_e_testtypes.res +testempty.res +testaliases.res +structLocale.res +icuio.res +iscii.res +test.icu +test1.cnv +test1bmp.cnv +test2.cnv +test3.cnv +test4.cnv +test4x.cnv +test5.cnv +ibm9027.cnv +idna_rules.res +nfscsi.spp +nfscss.spp +nfscis.spp +nfsmxs.spp +nfsmxp.spp +testnorm.nrm +$(TEST_RES_FILES:.res =.res +) << @@ -65,72 +78,87 @@ $(TESTDT)nfsmxp.spp # The -q option is there on purpose, so we don't see it normally. {$(TESTDATA)}.txt.res:: @echo Making Test Resource Bundle files $< - @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -t -p"$(TESTPKG)" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $< + @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" $< -"$(TESTDATABLD)\$(TESTDT)iscii.res": "$(TESTDATA)\iscii.bin" +"$(TESTDATABLD)\iscii.res": "$(TESTDATA)\iscii.bin" @echo Making Test Resource Bundle file with encoding ISCII,version=0 - @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -p"$(TESTPKG)" -q -s"$(TESTDATA)" -eISCII,version=0 -d"$(TESTDATABLD)" iscii.bin + @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -eISCII,version=0 -d"$(TESTDATABLD)" iscii.bin -"$(TESTDATABLD)\$(TESTDT)idna_rules.res": "$(TESTDATA)\idna_rules.txt" +"$(TESTDATABLD)\idna_rules.res": "$(TESTDATA)\idna_rules.txt" @echo Making Test Resource Bundle file for IDNA reference implementation - @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -p"$(TESTPKG)" -q -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt + @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATA)" -d"$(TESTDATABLD)" idna_rules.txt -"$(TESTDATABLD)\$(TESTDT)test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe +"$(TESTDATABLD)\test.icu" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe "$(ICUTOOLS)\gentest\$(CFG)\gentest" -d"$(TESTDATABLD)" # testtable32 resource file "$(TESTDATABLD)\testtable32.txt" : {"$(ICUTOOLS)\gentest\$(CFG)"}gentest.exe "$(ICUTOOLS)\gentest\$(CFG)\gentest" -r -d"$(TESTDATABLD)" -"$(TESTDATABLD)\$(TESTDT)testtable32.res": "$(TESTDATABLD)\testtable32.txt" - @echo Making Test Resource Bundle file for IDNA reference implementation - @"$(ICUTOOLS)\genrb\$(CFG)\genrb" -p"$(TESTPKG)" -q -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt +"$(TESTDATABLD)\testtable32.res": "$(TESTDATABLD)\testtable32.txt" + "$(ICUTOOLS)\genrb\$(CFG)\genrb" -s"$(TESTDATABLD)" -d"$(TESTDATABLD)" testtable32.txt # Targets for nfscsi.spp -"$(TESTDATABLD)\$(TESTDT)nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt" +"$(TESTDATABLD)\nfscsi.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_ci.txt" @echo Building $@ - @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -p "$(TESTPKG)" -u 3.2.0 nfs4_cs_prep_ci.txt + @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscsi -u 3.2.0 nfs4_cs_prep_ci.txt # Targets for nfscss.spp -"$(TESTDATABLD)\$(TESTDT)nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt" +"$(TESTDATABLD)\nfscss.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cs_prep_cs.txt" @echo Building $@ - @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -p "$(TESTPKG)" -u 3.2.0 nfs4_cs_prep_cs.txt + @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscss -u 3.2.0 nfs4_cs_prep_cs.txt # Targets for nfscis.spp -"$(TESTDATABLD)\$(TESTDT)nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt" +"$(TESTDATABLD)\nfscis.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_cis_prep.txt" @echo Building $@ - @"$(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 + @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfscis -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_cis_prep.txt # Targets for nfsmxs.spp -"$(TESTDATABLD)\$(TESTDT)nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt" +"$(TESTDATABLD)\nfsmxs.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_s.txt" @echo Building $@ - @"$(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 + @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxs -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_s.txt # Targets for nfsmxp.spp -"$(TESTDATABLD)\$(TESTDT)nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt" +"$(TESTDATABLD)\nfsmxp.spp" : {"$(ICUTOOLS)\gensprep\$(CFG)"}gensprep.exe "$(TESTDATA)\nfs4_mixed_prep_p.txt" @echo Building $@ - @"$(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 + @"$(ICUTOOLS)\gensprep\$(CFG)\gensprep" -s "$(TESTDATA)" -d "$(TESTDATABLD)\\" -b nfsmxp -u 3.2.0 -k -n "$(ICUTOOLS)\..\data\unidata" nfs4_mixed_prep_p.txt # Targets for test converter data -"$(TESTDATABLD)\$(TESTDT)test1.cnv": "$(TESTDATA)\test1.ucm" +"$(TESTDATABLD)\test1.cnv": "$(TESTDATA)\test1.ucm" + @echo Building $@ + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** + +"$(TESTDATABLD)\test1bmp.cnv": "$(TESTDATA)\test1bmp.ucm" @echo Building $@ - @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $** + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** -"$(TESTDATABLD)\$(TESTDT)test3.cnv": "$(TESTDATA)\test3.ucm" +"$(TESTDATABLD)\test2.cnv": "$(TESTDATA)\test2.ucm" @echo Building $@ - @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $** + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** -"$(TESTDATABLD)\$(TESTDT)test4.cnv": "$(TESTDATA)\test4.ucm" +"$(TESTDATABLD)\test3.cnv": "$(TESTDATA)\test3.ucm" @echo Building $@ - @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $** + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** -"$(TESTDATABLD)\$(TESTDT)test4x.cnv": "$(TESTDATA)\test4x.ucm" +"$(TESTDATABLD)\test4.cnv": "$(TESTDATA)\test4.ucm" @echo Building $@ - @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $** + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** -"$(TESTDATABLD)\$(TESTDT)ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm" +"$(TESTDATABLD)\test4x.cnv": "$(TESTDATA)\test4x.ucm" @echo Building $@ - @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" -d"$(TESTDATABLD)" -p $(TESTPKG) $** + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** +"$(TESTDATABLD)\test5.cnv": "$(TESTDATA)\test5.ucm" + @echo Building $@ + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** + +"$(TESTDATABLD)\ibm9027.cnv": "$(TESTDATA)\ibm9027.ucm" + @echo Building $@ + @"$(ICUTOOLS)\makeconv\$(CFG)\makeconv" --small -d"$(TESTDATABLD)" $** + +# Target for test normalization data +"$(TESTDATABLD)\testnorm.nrm": "$(TESTDATA)\testnorm.txt" + @echo Building $@ + @"$(ICUTOOLS)\gennorm2\$(CFG)\gennorm2" -s "$(TESTDATA)" testnorm.txt -o $@