mirror of
https://github.com/samba-team/samba.git
synced 2025-09-21 21:44:21 +03:00
committed by
Gerald (Jerry) Carter
parent
45c2b83ec7
commit
1a803d13b8
@@ -160,3 +160,4 @@ source/pidl/blib
|
|||||||
source/pidl/pm_to_blib
|
source/pidl/pm_to_blib
|
||||||
source/coverage
|
source/coverage
|
||||||
source/st
|
source/st
|
||||||
|
source/samba.info
|
||||||
|
@@ -336,20 +336,18 @@ MANPAGE = man/locktest.1
|
|||||||
GCOV_FLAGS = -ftest-coverage -fprofile-arcs
|
GCOV_FLAGS = -ftest-coverage -fprofile-arcs
|
||||||
GCOV_LIBS = -lgcov
|
GCOV_LIBS = -lgcov
|
||||||
|
|
||||||
gcov:
|
test_cov:
|
||||||
@$(MAKE) test \
|
@$(MAKE) test \
|
||||||
HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
|
HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
|
||||||
CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
|
CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
|
||||||
LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
|
LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
|
||||||
|
|
||||||
|
gcov: test_cov
|
||||||
for I in $(sort $(dir $(ALL_OBJS))); \
|
for I in $(sort $(dir $(ALL_OBJS))); \
|
||||||
do $(GCOV) -p -o $$I $$I/*.c; \
|
do $(GCOV) -p -o $$I $$I/*.c; \
|
||||||
done
|
done
|
||||||
|
|
||||||
lcov:
|
lcov: test_cov
|
||||||
@$(MAKE) test \
|
rm heimdal/lib/*/{lex,parse}.{gcda,gcno}
|
||||||
HOSTCC_CFLAGS="$(HOSTCC_CFLAGS) $(GCOV_FLAGS)" \
|
|
||||||
CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
|
|
||||||
LDFLAGS="$(LDFLAGS) $(GCOV_FLAGS) $(GCOV_LIBS)"
|
|
||||||
rm **/{lex,parse}.{gcda,gcno}
|
|
||||||
lcov --base-directory `pwd` --directory . --capture --output-file samba.info
|
lcov --base-directory `pwd` --directory . --capture --output-file samba.info
|
||||||
genhtml -o coverage samba.info
|
genhtml -o coverage samba.info
|
||||||
|
Reference in New Issue
Block a user