diff options
-rw-r--r-- | .bzrignore | 1 | ||||
-rw-r--r-- | source4/torture/config.mk | 12 |
2 files changed, 6 insertions, 7 deletions
diff --git a/.bzrignore b/.bzrignore index bf51f9ab9f..fc9b464621 100644 --- a/.bzrignore +++ b/.bzrignore @@ -160,3 +160,4 @@ source/pidl/blib source/pidl/pm_to_blib source/coverage source/st +source/samba.info 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 |