summaryrefslogtreecommitdiff
path: root/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: add lcov commandJoe Guo2019-05-221-0/+13
| | | | | | | | | | | | | | | | A helper cmd to generate .info file from .gcno and .gcda file, and then generate html report from .info file. Usage: ./configure --enable-coverage make -j make test TESTS=mytest make lcov Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* selftest: Add basic sanity-check tests for nopython targetTim Beale2019-02-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we were only checking samba compiled OK with --disable-python, not that it actually ran. The main problem is all the make test framework is based around subunit/smbtorture, neither of which we seem to build with disable-python. However, for just a simple sanity-check, we can just bypass all the subunit-filter work and just call the Perl code directly. This works OK as long as it's just simple shell script tests that we're running, as we can check the script's exit code directly. The main thing that we really want to test is that we can start up the smbd testenv and connect to it (i.e. a simple smbclient test). This patch adds a new 'make test-nopython' target. This disables the subunit filtering, and runs a small test-list that was generated manually. Note that currently this has the limitation that it doesn't support known failures or flapping tests. However, just checking that smd starts up OK is probably OK for now. Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Feb 20 02:10:00 CET 2019 on sn-devel-144
* build: Move python detection back into waf (instead of in configure and ↵Andrew Bartlett2018-12-141-1/+0
| | | | | | | | | | | | | | | | | | | Makefile) This avoids creating a mini-configure in the configure script. Users wishing to use python2 to build need to specify PYTHON= to both ./configure and make After we merged the python3 change, it became clear that relying on systems prefixing the correct python just causes trouble and make debugging harder, so only use $PYTHON for the override, not the default case This essentially reverts a660b7fb8e519bd3be558fd0425bff8f287fca1f but leaves the files more consistent. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* build: Workaround python3 hash order issues (for now)Andrew Bartlett2018-12-131-1/+1
| | | | | | | | | | | This works around python3 having a new hash seed each time it starts to allow a second "make" not to rebuild the world. This should probably be reverted once we find the hash that is causing the issue, but should reduce frustration for now. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* PY3: switch current build to use python3Noel Power2018-12-101-1/+1
| | | | | | | | | | | | | | Make sure default make and configure for all now defaults to building with python3. To build a samba (or sub component e.g. talloc etc.) with python3 ./configure && make To build a samba (or sub component e.g. talloc etc.) with python2 PYTHON=python ./configure && PYTHON=python make Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* make perftest: for performance testingDouglas Bagnall2016-08-311-0/+3
| | | | | | | | | | This runs a selection of subunit tests and reduces the output to only the time it takes to run each test. The tests are listed in selftest/perf_tests.py. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* Makefile: Add option to list all testsAndreas Schneider2015-09-151-0/+3
| | | | | | | | | | | | This allows you to run 'make testlist' to get a complete list of all our tests available. You can limit it using 'make testlist TESTS=spoolss' to only show spoolss tests for example. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Sep 15 21:57:50 CEST 2015 on sn-devel-104
* Add 'make randomized-test' rule.Jelmer Vernooij2014-11-191-0/+3
| | | | Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
* Declare empty target as phony otherwise they are caught by the '%' ruleMatthieu Patou2014-09-281-1/+1
| | | | | | | | | | | | | | | | | Without that build on the build farm is broken: 'build' finished successfully (8.162s) WAF_MAKE=1 python ./buildtools/bin/waf --targets=everything Selected embedded Heimdal build Waf: Entering directory `/memdisk/build/samba_4_0_test/bin' Selected embedded Heimdal build Waf: Leaving directory `/memdisk/build/samba_4_0_test/bin' target 'everything' does not exist make: *** [everything] Error 1 Change-Id: Id5bc37f803efd764f00c37f8add560d6de2e3a2f Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Michael Adam <obnox@samba.org>
* Add some plumbing in our top level Makefile to make life easierMatthieu Patou2014-09-261-5/+35
| | | | | | | | | | | | | | | For instance you can type make bin/smbd to build just smbd (and it's dependencies still) or make bin/smbd bin/smbtorture You can also do make service_drepl if you want just to build the stuff related to DRS Change-Id: I61bdaeff79ecfb1a15728c2de7e6a6a14dd8bc7d Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Matthieu Patou <mat@samba.org> Autobuild-Date(master): Fri Sep 26 11:48:11 CEST 2014 on sn-devel-104
* make: Add gdbtestenv target.Andreas Schneider2014-07-021-0/+3
| | | | | | | | This starts the sever components in a xterm with gdb. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Makefile: Allow specifying PYTHON environment variable.Jelmer Vernooij2012-11-091-1/+2
| | | | | | | | | | This is required for Minix, where python is named "python2.X". Reviewed-by: Simo Sorce <idra@samba.org> Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Fri Nov 9 16:39:09 CET 2012 on sn-devel-104
* Add 'make pep8' target.Jelmer Vernooij2011-12-091-0/+3
|
* build: only run symbol checking if running all testsAndrew Tridgell2011-11-101-4/+4
| | | | | | this makes it much faster to run 1 test Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* build: Add duplicate symbol checking as part of make testAndrew Bartlett2011-09-081-4/+4
| | | | | | | | | | This ensures we do not get duplicate symbols again, when run as ./configure.developer on non-build farm machines. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Sep 8 13:37:40 CEST 2011 on sn-devel-104
* waf: fixed 'make bin/XXX' for the remaining binariesAndrew Tridgell2011-06-101-1/+1
| | | | | | | | | this fixes 'make bin/smbd' to work correctly with the waf build. It didn't work before as smbd is actually 'smbd/smbd' internally and we tried to use the target name 'smbd'. The new approach reads the symlink to get the right target. This also speeds up the null build by quite a lot
* waf: added top level build rules Andrew Tridgell2011-02-071-0/+75
This adds build rules for the top level directory based on the ones from source4. This is an intermediate step towards a combined top level build which will build both the Samba3 (bin/smbd, bin/nmbd etc) and Samba4 (bin/samba) binaries from a single build Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>