s3:winbindd: use better debug messages than 'talloc_strdup failed'
[metze/samba-autobuild/.git] / Makefile
index aa532b65bb44df0beed44f03b3655dc7b7663501..b037c3983911a6ce5372a6c14bfc625af977e844 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,7 @@
 # simple makefile wrapper to run waf
 
-PYTHON?=python
 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,12 @@ uninstall:
 test:
        $(WAF) test $(TEST_OPTIONS)
 
+testonly:
+       $(WAF) testonly $(TEST_OPTIONS)
+
+perftest:
+       $(WAF) test --perf-test $(TEST_OPTIONS)
+
 help:
        @echo NOTE: to run extended waf options use $(WAF_BINARY) or modify your PATH
        $(WAF) --help
@@ -26,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)
 
@@ -35,6 +53,12 @@ quicktest:
 randomized-test:
        $(WAF) test --random-order $(TEST_OPTIONS)
 
+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
@@ -43,6 +67,10 @@ distcheck:
        touch .tmplock
        WAFLOCK=.tmplock $(WAF) distcheck
 
+printversion:
+       touch .tmplock
+       WAFLOCK=.tmplock $(WAF) printversion
+
 clean:
        $(WAF) clean
 
@@ -73,13 +101,10 @@ etags:
 ctags:
        $(WAF) ctags
 
-pydoctor:
-       $(WAF) 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 rebuilt from the Make
 # point of view forcing make to invoke waf
 
 bin/smbd: FORCE
@@ -96,7 +121,7 @@ bin/smbclient: FORCE
 
 # this allows for things like "make bin/smbtorture"
 # mainly for the binary that don't have a broken mode like smbd that must
-# be build with smbd/smbd
+# be built with smbd/smbd
 bin/%: FORCE
        $(WAF) --targets=$(subst bin/,,$@)
 
@@ -107,9 +132,9 @@ bin/%: FORCE
 
 # This rule has to be the last one
 FORCE:
-# Having .NOTPARALLEL will force make to do target once at a time but still -j
+# Having .NOTPARALLEL will force make to do targets one at a time but still -j
 # will be present in the MAKEFLAGS that are in turn interpreted by WAF
-# so only 1 waf at a time will be called but it will still be able to do parralel builds if
+# so only 1 waf at a time will be called but it will still be able to do parallel builds if
 # instructed to do so
 .NOTPARALLEL: %
 .PHONY: FORCE everything testsuite check torture