summaryrefslogtreecommitdiff
path: root/script
Commit message (Collapse)AuthorAgeFilesLines
* script/autobuild.py: create tmpdir for each try and export it as TMPDIRStefan Metzmacher2016-12-171-0/+4
| | | | | | | | This way the compiler and other tools hopefully don't use /tmp anymore. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* script/autobuild.py: cleanup testbase/prefix before each retryStefan Metzmacher2016-12-171-1/+3
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* script/autobuild.py: remove pointless mkdir/rmdir commandsStefan Metzmacher2016-12-171-2/+0
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* script/autobuild.py: don't add subdirs of testbase to cleanup_listStefan Metzmacher2016-12-171-3/+0
| | | | | | | We already have testbase in there. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* autobuild: add system-mitkrb5 build environment.Günther Deschner2016-09-291-1/+16
| | | | | | | | | | | | We finally need to make sure the build with MIT Kerberos does not break all the time. Guenther Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* script/release.sh: use 8 byte gpg key idsStefan Metzmacher2016-09-021-6/+6
| | | | | | | | 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): Fri Sep 2 22:05:33 CEST 2016 on sn-devel-144
* autobuild: disable abi check on O3 buildDouglas Bagnall2016-08-311-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* autobuild --restrict-tests to test a restricted setDouglas Bagnall2016-08-311-1/+20
| | | | | | | | This allows autobuild to be used as a test framework for running particular Samba tests in a cloud environment. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* autobuild: remove unused argumentDouglas Bagnall2016-08-311-2/+2
| | | | | | | | The "tasklist" parameter is the same as the global "tasks" variable, but only the latter is used. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* script/autobuild.py: include the branch name in the outputStefan Metzmacher2016-08-111-5/+5
| | | | | | | | 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): Thu Aug 11 08:38:47 CEST 2016 on sn-devel-144
* script/autobuild.py: check for AUTOBUILD_SKIP_SAMBA_O3 environment variableStefan Metzmacher2016-08-041-0/+3
| | | | | | | | | | We need to skip the samba-o3 target on older systems like sn-devel-104. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12108 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* autobuild: Don't compare socket wrapper so_path for xc checkMichael Adam2016-07-111-1/+2
| | | | | | | | | | This uses the build-directory which, hence is not the same. Achieve this by adding the path itself and the whole defines dictionary to the exclude list. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* autobuild: run the samba-o3 target by defaultMichael Adam2016-05-131-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* autobuild: add a target samba-o3 that is built with -O3Michael Adam2016-05-131-0/+9
| | | | | | | | Only run quicktest against the ad_dc env. This currently just takes some 6 odd minutes. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* autobuild: fix typo in autobuild success subject lineGarming Sam2016-05-051-1/+1
| | | | | | | | Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Garming Sam <garming@samba.org> Autobuild-Date(master): Thu May 5 04:15:16 CEST 2016 on sn-devel-144
* autobuild: Return the last 50 log linesGarming Sam2016-05-031-1/+18
| | | | | | | | This means that you don't have to deal with tars for quickly determining the cause of a failure. Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Revert "autobuild: Return the last 50 log lines"Stefan Metzmacher2016-03-231-12/+1
| | | | | | | | | | | | | | | | | | | | | This reverts commit aab2f39bb7ff330fbb01da4021c096e69a429d2e. This breaks if log_base is an https url... Traceback (most recent call last): File "script/autobuild.py", line 744, in <module> elapsed_time, log_base=options.log_base) File "script/autobuild.py", line 608, in email_failure f = open("%s/%s.stdout" % (log_base, failed_tag), 'r') IOError: [Errno 2] No such file or directory: 'https://git.samba.org/uri/samba-autobuild/ctdb.stdout' Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Mar 23 18:59:17 CET 2016 on sn-devel-144
* autobuild: Return the last 50 log linesGarming Sam2016-03-221-1/+12
| | | | | | | | | | | This means that you don't have to deal with tars for quickly determining the cause of a failure. Signed-off-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): Tue Mar 22 11:39:38 CET 2016 on sn-devel-144
* script/release.sh: generate announce.${tagname}.patch.txt in ↵Karolin Seeger2016-02-151-0/+34
| | | | | | | | | | | | | | announcement_samba_rc() This was only done in announcement_samba_stable() before. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Karolin Seeger <kseeger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Feb 15 17:41:49 CET 2016 on sn-devel-144
* script/release.sh: improve error messages if the tag verification failsKarolin Seeger2016-02-151-2/+8
| | | | | | | | | This makes it more obvious if a gpg key is expired. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Karolin Seeger <kseeger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* script/autobuild.py: use --extra-python=/usr/bin/python3 by defaultStefan Metzmacher2016-02-151-6/+12
| | | | | | | | | | export AUTOBUILD_NO_EXTRA_PYTHON=1 can overwrite this if required. 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): Mon Feb 15 14:28:27 CET 2016 on sn-devel-144
* autobuild: Use make -j on samba-libs/samba-static build as wellAndrew Bartlett2016-01-051-4/+4
| | | | | | | We need this build to be fast when split out as a seperate VM Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* autobuild: Put the static build in another stanzaAndrew Bartlett2016-01-051-7/+9
| | | | | | | | | | | | This will allow it to run on a different VM in travis-ci and so keep us below the 50min limit. Because we do not rebuild the libs (and real world static builds are likely to have internal libs), this changes us to build them internally. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* autobuild: Use cp --recursive --link --archiveAndrew Bartlett2016-01-051-4/+7
| | | | | | | | | | | | | | | | | | | | | This works on waf based builds as source files are not modified during the build TODO: In order to make sure build doesn't influence each other, we need to add something like: try: if options.rebase is not None: rebase_tree(options.rebase, rebase_branch=options.branch) + run_cmd("find -type f | xargs chmod -w", show=True, dir=test_master) except Exception: But that means we need to change the way 'make distcheck' works for the standalone libraries. For now this will help to reduce the (mem)disk usage of an autobuild a lot. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* autobuild: Give a clearer failure messageAndrew Bartlett2016-01-051-0/+18
| | | | | | | | | | | | This helps when autobuild.py is used in --tail mode and where there is neither e-mail nor access to the logs.tar.gz Working back to find where the error happened is typically quite difficult, as many failures are actually due to the cleanup. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* script/autobuild.py: exclude !pytalloc-util and !pyldb-util from bundling in ↵Stefan Metzmacher2015-10-311-1/+1
| | | | | | | | | | | samba-libs We need to make sure we're really not bundling any of these. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11458 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* autobuild: Confirm we can build without --enable-developerAndrew Bartlett2015-10-231-4/+5
| | | | | | | We also confirm that such builds do not contain the NTVFS file server Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* script/release.sh: make it possible to create stable .x releases (x >= 1)Stefan Metzmacher2015-10-211-131/+352
| | | | | | | | | | This version was used to create samba-4.3.1. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Oct 21 14:27:53 CEST 2015 on sn-devel-104
* autobuild: add some system information to the autobuild tarballDouglas Bagnall2015-10-211-0/+12
| | | | | | | | | | When running multiple autobuilds on VMs with various parameters, you can easily get confused about which was which, and the tarball doesn't help much. This adds an extra file with information about the system. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* script/release.sh: make it possible to create stable .0 releasesStefan Metzmacher2015-10-201-6/+398
| | | | | | | This version was used to create samba-4.3.0. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Karolin Seeger <kseeger@samba.org>
* script/autobuild.py: make sure --nonshared-binary=smbtorture,smbd/smbd keeps ↵Stefan Metzmacher2015-08-201-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
* script/autobuild.py: test some --with-{static,shared}-modules combinationsStefan Metzmacher2015-08-201-1/+16
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* script/autobuild.py: use -Wmissing-prototypes and --picky-developer for ↵Stefan Metzmacher2015-08-201-1/+2
| | | | | | | samba-libs* Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* script/autobuild.py: split out a samba_libs_configure variableStefan Metzmacher2015-08-201-5/+11
| | | | | | | The avoids too long lines. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* script/librelease.sh: this is replaced by script/release.sh nowStefan Metzmacher2015-08-061-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
* script/release.sh: This is a new script to do releasesStefan Metzmacher2015-08-061-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>
* generate_param: add a means to generate param_table_gen.c from the docsMichael Adam2015-07-311-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>
* generate_param: teach missing types cmdlist, bytes, octal, ustring.Michael Adam2015-07-311-0/+8
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* generate_param: more uniform formatting of various type dictsMichael Adam2015-07-311-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>
* param: move dnsdomain from generate_param to EXTRA_GLOBALSMichael Adam2015-07-311-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>
* generate_param: generate struct entries if we don't generate access functions.Michael Adam2015-07-311-2/+0
| | | | | | | This shrinks LOADPARM_EXTRA_GLOBALS/LOCALS. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* generate_param: make it possible to handle generated and synonym flags in ↵Michael Adam2015-07-311-2/+22
| | | | | | | iteration Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* script/librelease.sh: use download-master.samba.org:~ftp/pub/ for uploadingStefan Metzmacher2015-07-101-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
* autobuild email mentions the elapsed timeDouglas Bagnall2015-06-101-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
* autobuild: Add test for cross-compilation infrastructureUri Simchoni2015-05-201-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
* waf: add a script that compares configurationsUri Simchoni2015-05-201-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>
* waf: add a cross-execute program that runs nativelyUri Simchoni2015-05-201-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>
* autobuild: Add options to set mail host and send e-mail with logsAndrew Bartlett2015-04-151-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
* autobuild: Do not consider IDL.pm and Expr.pm changes to make a build badAndrew Bartlett2015-04-151-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>
* Improve output of check-clean-tree.sh scriptAndrew Bartlett2015-04-151-2/+2
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jelmer Vernooij <jelmer@samba.org>