summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2023-10-17 build: Add 'make printversion' to provide version stringChristof Schmitt1-0/+4
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15497 Signed-off-by: Christof Schmitt <christof.schmitt@us.ibm.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-09-11Makefile: Fix spellingJoseph Sutton1-3/+3
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-04-11Makefile: Fix spellingAndreas Schneider1-1/+1
Best reviewed with: `git show --word-diff`. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
2023-02-02Python: remove pydoctorRob van der Linde1-3/+0
Removes: * waf pydoctor * waf wafdocs * make pydoctor There is no "make wafdocs" it only appears to be in wscript. The reasoning being is these are broken and appear to not have been run for some time. Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Feb 2 21:15:54 UTC 2023 on atb-devel-224
2021-01-27Makefile: add support for 'make testonly'Stefan Metzmacher1-0/+3
That skips any attempt to recompile before running the tests. Some times that's useful for debugging and we'll use it to split the build and test stages in autobuild and gitlab-ci later. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2019-09-01Spelling fixes s/depencies/dependencies/Mathieu Parent1-1/+1
Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
2019-05-22Makefile: add lcov commandJoe Guo1-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>
2019-02-20selftest: Add basic sanity-check tests for nopython targetTim Beale1-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
2018-12-14build: Move python detection back into waf (instead of in configure and ↵Andrew Bartlett1-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>
2018-12-13build: Workaround python3 hash order issues (for now)Andrew Bartlett1-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>
2018-12-10PY3: switch current build to use python3Noel Power1-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>
2016-08-31make perftest: for performance testingDouglas Bagnall1-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>
2015-09-15Makefile: Add option to list all testsAndreas Schneider1-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
2014-11-19Add 'make randomized-test' rule.Jelmer Vernooij1-0/+3
Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
2014-09-28Declare empty target as phony otherwise they are caught by the '%' ruleMatthieu Patou1-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>
2014-09-26Add some plumbing in our top level Makefile to make life easierMatthieu Patou1-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
2014-07-02make: Add gdbtestenv target.Andreas Schneider1-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>
2012-11-09Makefile: Allow specifying PYTHON environment variable.Jelmer Vernooij1-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
2011-12-09Add 'make pep8' target.Jelmer Vernooij1-0/+3
2011-11-10build: only run symbol checking if running all testsAndrew Tridgell1-4/+4
this makes it much faster to run 1 test Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-09-08build: Add duplicate symbol checking as part of make testAndrew Bartlett1-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
2011-06-10waf: fixed 'make bin/XXX' for the remaining binariesAndrew Tridgell1-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
2011-02-07waf: added top level build rules Andrew Tridgell1-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>