summaryrefslogtreecommitdiff
path: root/script
AgeCommit message (Collapse)AuthorFilesLines
2015-08-20script/autobuild.py: make sure --nonshared-binary=smbtorture,smbd/smbd keeps ↵Stefan Metzmacher1-1/+6
working - It's very useful to have a static smbtorture binary that can be copied arround. - It's sometimes also useful to have a static smbd binary in order avoid runtime overhead via do_lookup_x() (in ld*.so), note that Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Thu Aug 20 19:10:19 CEST 2015 on sn-devel-104
2015-08-20script/autobuild.py: test some --with-{static,shared}-modules combinationsStefan Metzmacher1-1/+16
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2015-08-20script/autobuild.py: use -Wmissing-prototypes and --picky-developer for ↵Stefan Metzmacher1-1/+2
samba-libs* Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2015-08-20script/autobuild.py: split out a samba_libs_configure variableStefan Metzmacher1-5/+11
The avoids too long lines. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2015-08-06script/librelease.sh: this is replaced by script/release.sh nowStefan Metzmacher1-110/+0
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 6 03:49:40 CEST 2015 on sn-devel-104
2015-08-06script/release.sh: This is a new script to do releasesStefan Metzmacher1-0/+615
This will replace script/librelease.sh and is more flexible and powerful. Usage: release.sh <PRODUCT> <COMMAND> PRODUCT: ldb, talloc, tevent, tdb, samba-rc COMMAND: fullrelease, create, push, upload, announce GNUPGHOME=/path/to/private/gpg script/librelease.sh tdb becomes GNUPGHOME=/path/to/private/gpg script/release.sh tdb fullrelease GNUPGHOME=/path/to/private/gpg script/librelease.sh samba becomes GNUPGHOME=/path/to/private/gpg script/release.sh samba-rc create or later GNUPGHOME=/path/to/private/gpg script/release.sh samba-stable create Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2015-07-31generate_param: add a means to generate param_table_gen.c from the docsMichael Adam1-3/+104
This is triggered by the new argument PARAMTABLE. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-31generate_param: teach missing types cmdlist, bytes, octal, ustring.Michael Adam1-0/+8
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-31generate_param: more uniform formatting of various type dictsMichael Adam1-5/+18
This allows for easier extension later on (patch context-wise). Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-31param: move dnsdomain from generate_param to EXTRA_GLOBALSMichael Adam1-1/+0
This is alongside realm_original which is of the same kind. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-31generate_param: generate struct entries if we don't generate access functions.Michael Adam1-2/+0
This shrinks LOADPARM_EXTRA_GLOBALS/LOCALS. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-31generate_param: make it possible to handle generated and synonym flags in ↵Michael Adam1-2/+22
iteration Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2015-07-10script/librelease.sh: use download-master.samba.org:~ftp/pub/ for uploadingStefan Metzmacher1-2/+2
master.samba.org might be removed in future. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Björn Jacke <bj@sernet.de> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Jul 10 16:38:20 CEST 2015 on sn-devel-104
2015-06-10autobuild email mentions the elapsed timeDouglas Bagnall1-9/+18
This is occasionally very useful. When it is not, it is easily ignored. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 10 13:26:21 CEST 2015 on sn-devel-104
2015-05-20autobuild: Add test for cross-compilation infrastructureUri Simchoni1-3/+15
With added option to generate cross-answers by cross-execute script, a test is added to verify that at least for tested build environments, the infrastructure is self-consistent. The test runs samba configuration in three modes: 1. Native 2. Cross compile with cross-execute, using the build machine as its own target 3. Cross compile with cross-answers, using the answers generated in step 2 The build environments created by the three processes are then tested to be equal. Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed May 20 14:10:05 CEST 2015 on sn-devel-104
2015-05-20waf: add a script that compares configurationsUri Simchoni1-0/+40
This script is intended for use with the cross-build infrastructure self-test during autobuild. The script takes two or more "default.cache.py" files which are the result of the waf configure process, and performs an intelligent comparison - allowing for a limited set of variables to be different. If the configurations are identical (apart from allowed differences) then the script exit with 0 code. If there are differences, the script outputs them to standard output in unified diff format. Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2015-05-20waf: add a cross-execute program that runs nativelyUri Simchoni1-0/+10
This added script is for supporting self-testing of the cross-build infrastructure using autobuild. The script can be used as the --cross-execute parameter to samba's configure process, but it actually runs the program natively on the build machine. This can be done if the build is actually a native build disguised as a cross-build, i.e. native toolchain is being used. Signed-off-by: Uri Simchoni <urisimchoni@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2015-04-15autobuild: Add options to set mail host and send e-mail with logsAndrew Bartlett1-23/+45
This helps when running the script in a cloud instance as it is cheapest to shut it down once run Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Apr 15 08:41:37 CEST 2015 on sn-devel-104
2015-04-15autobuild: Do not consider IDL.pm and Expr.pm changes to make a build badAndrew Bartlett1-0/+1
This allows a different yapp to be installed on the build host without failing the whole autobuild Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-04-15Improve output of check-clean-tree.sh scriptAndrew Bartlett1-2/+2
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-04-15autobuild: Do not wait when running just one targetAndrew Bartlett1-0/+5
This avoids having to remember to specify AUTOBUILD_RANDOM_SLEEP_OVERRIDE manually Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2015-03-30Pass --recursive to 'git clone' in autobuild.Jelmer Vernooij1-2/+2
This makes it possible to use submodules in Samba. Change-Id: Iccb1876b1daf82864b18486f2dca9036d7d3c75c Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
2015-03-17autobuild: Remove ntdb targetVolker Lendecke2-18/+3
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-03-17Remove ntdb from scriptsVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2015-03-06script/autobuild.py: build the samba target with --with-profiling-dataStefan Metzmacher1-1/+1
In future we may get also runtime tests for profiling... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Dec 15 16:20:14 CET 2014 on sn-devel-104 (cherry picked from commit 4958fcdfa30fd9d8dc51ceafaab35721e61e72c7)
2015-03-06show_test_time: Use system subunit.Jelmer Vernooij1-8/+1
Change-Id: I7d799b5f9d6066d988aa2e101e0fe7b6efe74aea Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-12-17autobuild: adapt a commentMichael Adam1-1/+1
The configure-option --with-cluster-support now only builds against the included ctdb, and it also builds the ctdb component. The comment in autobuild.py this patch changes was still from the olden days... Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Dec 17 21:13:44 CET 2014 on sn-devel-104
2014-12-17script/autobuild.py: use --picky-developer for the samba-ctdb targetStefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Wed Dec 17 11:52:25 CET 2014 on sn-devel-104
2014-12-16Revert "script/autobuild.py: build the samba target with --with-profiling-data"Stefan Metzmacher1-1/+1
This reverts commit 4958fcdfa30fd9d8dc51ceafaab35721e61e72c7. This only works for a single user on a system, as only one can create the sysv shared memory segment. In future we'll use a tdb instead of sysv shared memory, then we can readd this. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Dec 16 11:25:47 CET 2014 on sn-devel-104
2014-12-15script/autobuild.py: build the samba target with --with-profiling-dataStefan Metzmacher1-1/+1
In future we may get also runtime tests for profiling... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Mon Dec 15 16:20:14 CET 2014 on sn-devel-104
2014-11-25script/autobuild.py: build 'samba' using --picky-developerStefan Metzmacher1-1/+1
This makes sure we don't get unexpected new compiler warnings. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Nov 25 09:46:30 CET 2014 on sn-devel-104
2014-11-24Print number of slow tests from script rather than wscript.Jelmer Vernooij1-0/+2
Change-Id: I6eaa0803b95cc81f514a2176f4e06f1e3fff4077 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Jelmer Vernooij <jelmer@samba.org> Autobuild-Date(master): Mon Nov 24 13:06:46 CET 2014 on sn-devel-104
2014-11-19Rewrite show_test_time in python and support --limit argument.Jelmer Vernooij1-19/+39
Change-Id: I6c3f28ed52cc8597251aa195ec3c7e38587c2573 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2014-10-30script: fix display of ten slowest tests if < 10 tests are run.Michael Adam1-1/+1
Note: $#array is the biggest index in an array in perl. @array evaluated in scalar context is the number of elements. Hence scalar(@array) = 1 + $#array Or equivalently: 0 + @array = 1 + $#array ... :-) Apart from this off-by-one error, the "unless" clause to trigger the capping of the number of tests listed was wrong. Hence if less then 10 tests were run, a number of blank lines were appended. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-30script/show_testsuite_time: error out if number argument is not a decimal numberMichael Adam1-0/+3
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-10-28autobuild: check whether ctdbd has been installed in the samba-ctdb targetMichael Adam1-0/+1
An intermediate test until we have full runtime-tests. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Tue Oct 28 08:05:40 CET 2014 on sn-devel-104
2014-10-28autobuild: adapt samba-ctdb target does not need a separate ctdb build any moreMichael Adam1-6/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2014-10-17scripts: Allow to specify a limit on the number of tests reportedMatthieu Patou1-2/+8
This allows to report the 10 most slowest for instance. Change-Id: I987520dbc28f598221c47df314d823f916312aab Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
2014-09-05script/autobuild.py: remove explicit --with-perl-*-install-dir optionsStefan Metzmacher1-6/+3
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10472 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Sep 5 22:09:47 CEST 2014 on sn-devel-104
2014-06-21autobuild: fix ctdb build of samba-ctdb target after switch to waf.Michael Adam1-2/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Sat Jun 21 02:05:38 CEST 2014 on sn-devel-104
2014-06-20autobuild: Remove unsupported --enable-socket-wrapper option from the "ctdb" ↵Amitay Isaacs1-1/+1
target. Socket wrapper now works with LD_PRELOAD. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
2014-06-20autobuild: Don't need autogen.sh anymore in the "ctdb" target.Amitay Isaacs1-1/+0
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
2014-06-17autobuild: fix samba-ctdb samba build to pick up right tdbMichael Adam1-1/+1
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jun 17 11:58:00 CEST 2014 on sn-devel-104
2014-06-17autobuild: add cflags and ldflags to find locally installed tdbMichael Adam1-1/+1
So that we can find our self-installed tdb lib and use new features. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2014-05-09script/autobuild: make use of --with-perl-{arch,lib}-install-dirStefan Metzmacher1-1/+3
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10472 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2014-03-13script/autobuild: use --force-rebase optionStefan Metzmacher1-2/+2
This makes sure the current user will be the committer. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-03-06autobuild: Set perl vendorlib direcotry.Andreas Schneider1-3/+4
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2014-03-04autobuild: Run "make dist" to ensure non-waf docs build is runAndrew Bartlett1-1/+2
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Mar 4 05:00:27 CET 2014 on sn-devel-104
2014-02-20param: change s3_param.h from a generated file to a static oneGarming Sam1-31/+2
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Change-Id: I131e37ec92f7a826caec382023915c5e4b4c52be Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>
2014-02-20param: remove generated loadparm ctx table file and include it directlyGarming Sam1-27/+2
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Change-Id: I5f1d42e3ae6495accf7a711938cc28c03ab2cd62 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Nadezhda Ivanova <nivanova@samba.org>