summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-01-23 00:26:03 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:03 -0500
commit1a803d13b84b99bcce498b84c42d49e762cf6133 (patch)
treef89e6e7dbd928b3d1b5f764880fd00216f2fef4a /source4/torture
parent45c2b83ec747ca5950889b32db92e902d1c83abf (diff)
downloadsamba-1a803d13b84b99bcce498b84c42d49e762cf6133.tar.gz
samba-1a803d13b84b99bcce498b84c42d49e762cf6133.tar.bz2
samba-1a803d13b84b99bcce498b84c42d49e762cf6133.zip
r20961: Fix lcov
(This used to be commit fa659bed48eae9b9c2e00be91d8cd4e816527465)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/config.mk12
1 files changed, 5 insertions, 7 deletions
diff --git a/source4/torture/config.mk b/source4/torture/config.mk
index 651f09dc25..82fbf41ed1 100644
--- a/source4/torture/config.mk
+++ b/source4/torture/config.mk
@@ -336,20 +336,18 @@ MANPAGE = man/locktest.1
GCOV_FLAGS = -ftest-coverage -fprofile-arcs
GCOV_LIBS = -lgcov
-gcov:
+test_cov:
@$(MAKE) test \
HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
+
+gcov: test_cov
for I in $(sort $(dir $(ALL_OBJS))); \
do $(GCOV) -p -o $$I $$I/*.c; \
done
-lcov:
- @$(MAKE) test \
- HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
- CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
- LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
- rm **/{lex,parse}.{gcda,gcno}
+lcov: test_cov
+ rm heimdal/lib/*/{lex,parse}.{gcda,gcno}
lcov --base-directory `pwd` --directory . --capture --output-file samba.info
genhtml -o coverage samba.info