libcli/smb: harden smbXcli_session_shallow_copy against nonce reusage
[metze/samba-autobuild/.git] / Makefile
index c2de1df..07b928e 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)
 
@@ -40,6 +53,9 @@ randomized-test:
 testlist:
        $(WAF) test --list $(TEST_OPTIONS)
 
+test-nopython:
+       $(WAF) test --no-subunit-filter --test-list=selftest/no-python-tests.txt $(TEST_OPTIONS)
+
 dist:
        touch .tmplock
        WAFLOCK=.tmplock $(WAF) dist