blob: 3d50686e2303d0960d62ea5fd33b5613e91cdbcf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
testlib_files := lib/comparators.c;lib/list.c;lib/testassert.c
testlib_files := $(testlib_files);lib/testobject.c;lib/utils.c
TESTCFLAGS := $(TESTCFLAGS) -I$(CURDIR) -I$(CURDIR)/$(DIR)
DIR_TEST_ITEMS := binding:binding.c;$(testlib_files) \
test-list:test-list.c;$(testlib_files)
define add_xml_test
ifeq ($$(WANT_TEST),yes)
$(DIR)xml/c/$1.c: $(DIR)xml/tests/$1.xml
$$(Q)$$(XSLTPROC) $$(XSLTPROCFLAGS) -o $$@ \
$(DIR)transform/test-to-c.xsl $$<
DIR_TEST_ITEMS := $$(DIR_TEST_ITEMS) $1:xml/c/$1.c;$$(testlib_files)
endif
DISTCLEAN_ITEMS := $$(DISTCLEAN_ITEMS) $(DIR)xml/c/$1.c
endef
# Add DOMTS tests to the list of items to build
$(eval $(foreach XML,$(wildcard $(DIR)xml/tests/*.xml), \
$(call add_xml_test,$(basename $(notdir $(XML))))))
include build/makefiles/Makefile.subdir
|