X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/729e4ab9bc6618bc3d8a898e575df7f4019e29ca..1a147d096ae81f4c8262f7bfc56bd19fc2dee932:/icuSources/test/testdata/Makefile.in?ds=inline diff --git a/icuSources/test/testdata/Makefile.in b/icuSources/test/testdata/Makefile.in index 40c79f96..04bc1c1a 100644 --- a/icuSources/test/testdata/Makefile.in +++ b/icuSources/test/testdata/Makefile.in @@ -1,6 +1,8 @@ +# Copyright (C) 2016 and later: Unicode, Inc. and others. +# License & terms of use: http://www.unicode.org/copyright.html #****************************************************************************** # -# Copyright (C) 1998-2010, International Business Machines +# Copyright (C) 1998-2015, International Business Machines # Corporation and others. All Rights Reserved. # #****************************************************************************** @@ -29,7 +31,7 @@ SUBDIRS = .PHONY : all all-local all-recursive install install-local \ install-recursive clean clean-local clean-recursive distclean \ distclean-local distclean-recursive doc dist dist-local dist-recursive \ -check check-local check-recursive build-dir testdata.jar xcheck +check check-local check-recursive build-dir testdata.jar xcheck check-exhaustive xcheck: all-local @@ -46,6 +48,8 @@ distclean : distclean-local dist: dist-local check: all check-local +check-exhaustive: check + all-local: build-dir build-testdata testdata packagetest install-local: @@ -123,103 +127,22 @@ TESTDATA=testdata # prefix for files that are testdata TESTDT=$(TESTDATA) -# File definitions -TEST_DAT_FILES=$(TESTBUILDDIR)/test.icu -TEST_SPP_FILES=$(TESTBUILDDIR)/nfscsi.spp $(TESTBUILDDIR)/nfscss.spp $(TESTBUILDDIR)/nfscis.spp $(TESTBUILDDIR)/nfsmxs.spp $(TESTBUILDDIR)/nfsmxp.spp - -TEST_UCM_SOURCE= test1.ucm test1bmp.ucm test3.ucm test4.ucm test4x.ucm test5.ucm ibm9027.ucm -TEST_UCM_FILES=$(TEST_UCM_SOURCE:%=$(TESTSRCDATADIR)/data/%) -TEST_CNV_FILES=$(TEST_UCM_SOURCE:%.ucm=$(TESTBUILDDIR)/%.cnv) - -TEST_NRM_FILES=$(TESTBUILDDIR)/testnorm.nrm - -# import the shared .mk file -include $(TESTSRCDATADIR)/tstfiles.mk --include $(TESTSRCDATADIR)/tstlocal.mk - -# TEST_RES_SOURCE comes from tstfiles.mk -TEST_RES = $(TEST_RES_SOURCE) $(TEST_RES_LOCAL) casing.txt mc.txt root.txt sh.txt sh_YU.txt te.txt te_IN.txt te_IN_REVISED.txt testtypes.txt testaliases.txt testempty.txt structLocale.txt idna_rules.txt conversion.txt icuio.txt testtable32.txt -TEST_RES_FILES=$(TEST_RES:%.txt=$(TESTBUILDDIR)/%.res) $(TESTBUILDDIR)/iscii.res $(TESTBUILDDIR)/old_l_testtypes.res $(TESTBUILDDIR)/old_e_testtypes.res - -ALL_TEST_FILES = $(TEST_DAT_FILES) $(TEST_SPP_FILES) $(TEST_BRK_FILES) $(TEST_CNV_FILES) $(TEST_NRM_FILES) $(TEST_RES_FILES) $(TESTOUTDIR)/$(TESTDT)/nam.typ - -# list - -$(TESTBUILDDIR)/testdata.lst: $(SRCLISTDEPS) - @echo "generating $@ (list of data files)" - @-$(RMV) $@ - @for file in $(TEST_RES_FILES:$(TESTBUILDDIR)/%.res=%.res) $(TEST_DAT_FILES:$(TESTBUILDDIR)/%.icu=%.icu) $(TEST_SPP_FILES:$(TESTBUILDDIR)/%.spp=%.spp) $(TEST_CNV_FILES:$(TESTBUILDDIR)/%.cnv=%.cnv) $(TEST_NRM_FILES:$(TESTBUILDDIR)/%.nrm=%.nrm); do \ - echo $$file >> $@; \ - done; - - -build-testdata: build-dir $(ALL_TEST_FILES) $(TESTBUILDDIR)/testdata.lst $(TESTBUILDDIR)/iscii.res - -# test.icu -$(TESTBUILDDIR)/test.icu: $(GENTEST) - $(INVOKE) $(GENTEST) -d $(TESTBUILDDIR) - -$(TESTBUILDDIR)/testtable32.txt: $(GENTEST) - $(INVOKE) $(GENTEST) -r -d $(TESTBUILDDIR) - -$(TESTBUILDDIR)/testtable32.res: $(TESTBUILDDIR)/testtable32.txt $(TOOLBINDIR)/genrb$(EXEEXT) - $(INVOKE) $(TOOLBINDIR)/genrb $(GENRBOPTS) -s $(TESTBUILDDIR) $(ICU_DATA_OPT) -d $(TESTBUILDDIR) $(/dev/null || ( echo "WARNING: could not open ISCII - it may have been disabled." | tee $@ ) - @echo Finished testing genrb -e option +include $(top_builddir)/$(subdir)/rules.mk -################################################################### TYP -# TYP FILES -$(TESTOUTDIR)/$(TESTDT)/nam.typ: $(TESTBUILDDIR)/te_IN.res - cp $< $@ -$(TESTBUILDDIR)/old_l_testtypes.res: $(TESTSRCDATADIR)/old_l_testtypes.res - cp $< $@ -$(TESTBUILDDIR)/old_e_testtypes.res: $(TESTSRCDATADIR)/old_e_testtypes.res - cp $< $@ +build-testdata: build-dir $(TESTDATA_ALL_OUTPUT_FILES) -testdata: build-dir $(ALL_TEST_FILES) $(UNPACKAGEDTESTDATA) +testdata: build-testdata -#$(ALL_TEST_FILES) $(TESTBUILDDIR)/testtable32.txt $(TESTBUILDDIR)/testdata.lst: build-dir -packagetest: build-dir testdata pkgdata.inc $(TESTBUILDDIR)/testdata.lst - $(PKGDATA_INVOKE) $(PKGDATA) -T $(TESTBUILDDIR) -d $(TESTOUTDIR) -s $(TESTBUILDDIR) -p $(TESTDATA) -m common $(TESTBUILDDIR)/testdata.lst +packagetest: build-dir testdata pkgdata.inc $(TMP_DIR)/testdata.lst + $(PKGDATA_INVOKE) $(PKGDATA) -T $(TESTBUILDDIR) -d $(TESTOUTDIR) -s $(TESTBUILDDIR) -p $(TESTDATA) -m common $(TMP_DIR)/testdata.lst build-dir: $(BUILD_DIRS) $(BUILD_DIRS):