Makefile.am 426 Bytes
Newer Older
ale's avatar
ale committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = lib src

XML_TEST_OUTPUT = $(shell pwd)/test-output/
.PHONY: check-xml
check-xml:
	-mkdir $(XML_TEST_OUTPUT)
	env GTEST_OUTPUT="xml:$(XML_TEST_OUTPUT)" $(MAKE) check
	-(echo -e '<?xml version="1.0"?>\n<unit_tests>' ; \
	  xsltproc gtest.xsl $(XML_TEST_OUTPUT)/* | fgrep '<test>' ; \
	  echo '</unit_tests>') > unittest.xml

coverage:
	sh test_coverage.sh

clean-local:
	-rm -fr coverage-*