s3:tests: Reformat test_symlink_rename_smb1_posix.sh
[gd/samba-autobuild/.git] / Makefile
index 4290986a939ee4eb4bbed775a5f5ca894dd824bd..7f5960d5191c154e0290a2c07f8c33f9d8f7f8e0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
 # simple makefile wrapper to run waf
 
-PYTHON?=python3
 WAF_BINARY=$(PYTHON) ./buildtools/bin/waf
-WAF=WAF_MAKE=1 $(WAF_BINARY)
+WAF=PYTHONHASHSEED=1 WAF_MAKE=1 $(WAF_BINARY)
 
 all:
        $(WAF) build
@@ -16,6 +15,9 @@ uninstall:
 test:
        $(WAF) test $(TEST_OPTIONS)
 
+testonly:
+       $(WAF) testonly $(TEST_OPTIONS)
+
 perftest:
        $(WAF) test --perf-test $(TEST_OPTIONS)
 
@@ -29,6 +31,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)
 
@@ -41,6 +56,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
@@ -85,7 +103,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