svn commit: samba r10038 - in branches/SAMBA_4_0/source/lib/ldb: .
jelmer at samba.org
jelmer at samba.org
Mon Sep 5 18:11:15 GMT 2005
Author: jelmer
Date: 2005-09-05 18:11:15 +0000 (Mon, 05 Sep 2005)
New Revision: 10038
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10038
Log:
Update instructions on using gcov with ldb
Modified:
branches/SAMBA_4_0/source/lib/ldb/README_gcov.txt
Changeset:
Modified: branches/SAMBA_4_0/source/lib/ldb/README_gcov.txt
===================================================================
--- branches/SAMBA_4_0/source/lib/ldb/README_gcov.txt 2005-09-05 12:21:40 UTC (rev 10037)
+++ branches/SAMBA_4_0/source/lib/ldb/README_gcov.txt 2005-09-05 18:11:15 UTC (rev 10038)
@@ -1,18 +1,14 @@
Here is how to use gcov to test code coverage in ldb.
-Step 1: enable gcov support
+Step 1: build ldb with gcov enabled
- Edit Makefile.ldb and uncommend the two GCOV_ lines
-
-Step 2: build ldb
+ make clean all WITH_GCOV=1
- make -sf Makefile.ldb clean all
-
Step 3: run the test suite
- make -sf Makefile.ldb test-tdb
+ make test-tdb
Step 4: produce the gcov report
- make -sf Makefile.ldb gcov
+ make gcov
Step 5: read the summary reports
less *.report.gcov
@@ -22,7 +18,7 @@
You can also combine steps 2 to 4 like this:
- make -sf Makefile.ldb clean all test-tdb gcov
+ make clean all test-tdb gcov WITH_GCOV=1
Note that you should not expect 100% coverage, as some error paths
(such as memory allocation failures) are very hard to trigger. There
More information about the samba-cvs
mailing list