Cleanups for building with test coverage

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2016-02-26 15:42:59 -08:00
parent 33273c0f93
commit a11afb9d3b
2 changed files with 13 additions and 3 deletions
+3
View File
@@ -13,6 +13,7 @@ bsdump
bspatch
compile
configure
coverage/
depcomp
install-sh
libbsdiff.la
@@ -21,6 +22,8 @@ ltmain.sh
m4/
missing
src/.dirstamp
src/*.gcda
src/*.gcno
stamp-h1
bsdiff-*.tar.xz
test/*.diff
+10 -3
View File
@@ -28,11 +28,15 @@ EXTRA_DIST = \
AUTOMAKE_OPTIONS = color-tests parallel-tests
if COVERAGE
coverage:
AM_CFLAGS += --coverage
coverage: coverage-clean
mkdir -p coverage
lcov --compat-libtool --directory . --capture --output-file coverage/report
genhtml -o coverage/ coverage/report
AM_CFLAGS += --coverage
coverage-clean:
rm -rf coverage
endif
bin_PROGRAMS = \
@@ -98,7 +102,10 @@ distclean-local:
install-exec-hook:
perl findstatic.pl */*.o | grep -v Checking ||:
check_PROGRAMS =
TEST_EXTENSIONS = .sh
TESTS = $(dist_check_SCRIPTS)
dist_check_SCRIPTS = \
test/run.sh
release:
@git rev-parse v$(PACKAGE_VERSION) &> /dev/null; \