ctdb-tests: Avoid running valgrind under valgrind
[metze/samba/wip.git] / Makefile
index d456a410050a7fa6e6612ca9d0e6d7075785d9d2..0b7b0ae8866170c2c38280322ed77cb1c27c420d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,6 +28,19 @@ subunit-test:
 testenv:
        $(WAF) test --testenv $(TEST_OPTIONS)
 
+lcov:
+       @echo usage:
+       @echo ""
+       @echo ./configure --enable-coverage
+       @echo make -j
+       @echo make test TESTS=mytest
+       @echo make lcov
+       @echo ""
+       rm -f lcov.info
+       lcov --capture --directory . --output-file lcov.info && \
+       genhtml lcov.info --output-directory public --prefix=$$(pwd) && \
+       echo Please open public/index.html in browser to view the coverage report
+
 gdbtestenv:
        $(WAF) test --testenv --gdbtest $(TEST_OPTIONS)
 
@@ -87,7 +100,7 @@ pydoctor:
 pep8:
        $(WAF) pep8
 
-# Adding force on the depencies will force the target to be always rebuild form the Make
+# Adding force on the dependencies will force the target to be always rebuild form the Make
 # point of view forcing make to invoke waf
 
 bin/smbd: FORCE