summaryrefslogtreecommitdiff
path: root/script
Commit message (Collapse)AuthorAgeFilesLines
* autobuild: Fix random-sleep.sh invocation in autobuild.pyAndrew Bartlett2018-07-051-11/+13
| | | | | | | | | | | The scripts were not running with the correct path and this causes sn-devel to hit a very high load as many of the compile jobs start at once. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Thu Jul 5 06:51:26 CEST 2018 on sn-devel-144
* autobuild: Build samba-fileserver --without-json-auditAndrew Bartlett2018-06-261-1/+1
| | | | | | | | | | | This build target is already --without-ad-dc and is the one we need to ensure is compatible with a host without the Jansson JSON library. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Tue Jun 26 02:03:30 CEST 2018 on sn-devel-144
* autobuild: cover the Gentoo case with python disabled all down the stackAndrew Bartlett2018-05-251-4/+28
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri May 25 13:07:47 CEST 2018 on sn-devel-144
* autobuild: Include information of disk free in system-info.txtAndrew Bartlett2018-05-241-1/+2
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu May 24 00:42:48 CEST 2018 on sn-devel-144
* autobuild: build ldb --without-ldb-lmdbAndrew Bartlett2018-05-231-0/+3
| | | | | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed May 23 05:11:13 CEST 2018 on sn-devel-144
* script: Add 'random-seed' option to traffic_replayTim Beale2018-05-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When using a traffic-model file to generate traffic, there is some randomness in the actual packets that get generated. This means it's hard to use the tool to detect an increase/decrease in Samba performance - we don't know whether a decrease in packets sent is due to a regression in the Samba codebase, or just due to the tool sending different types of packets (i.e. ones that take longer to process). This patch adds an option to seed the python random number generator. This means that exactly the same traffic can be generated across multiple test runs. (Previously we were using the '--traffic-summary' option to avoid this problem - we can generate a summary-file based on the model, and then use the same summary file across multiple runs. However, this proved impractical when you want to run multiple combinations of scale/rate parameters, e.g. 21 x 8 different permutations just fills up disk space with summary-files.) Signed-off-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: William Brown <william@blackhats.net.au> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed May 16 13:53:26 CEST 2018 on sn-devel-144
* traffic_replay: fetch domain from creds other than optsJoe Guo2018-05-121-1/+1
| | | | | | | | | | | For traffic_replay script, when user provides `--workgroup` or `-W` option, it will be set on the creds option group, not the default opts one. The previous code will not work properly when smb.conf file is missing. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* traffic_replay: fix typo in message stringJoe Guo2018-05-121-1/+1
| | | | | | Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* traffic_replay: set gensec features to encrypt credentialsJoe Guo2018-05-121-0/+3
| | | | | | | | | | | | While running traffic_replay script against windows dc, it will fail with a `LDAP_UNWILLING_TO_PERFORM` error for adding user. Windows requires the credentials to be encrypted before sending. `set_gensec_features` will fix it. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* autobuild: do not try to send email to no recipientDouglas Bagnall2018-05-051-0/+5
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: add compiler version to results tarballDouglas Bagnall2018-05-051-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Extend build combinations tested to include --without-ldapAndrew Bartlett2018-05-031-2/+2
| | | | | | | | This bumps --without-ads to the samba-nt4 job so that option alone is still covered. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* script/git-hooks: add check-trailing-whitespaceRalph Boehme2018-04-262-0/+19
| | | | | | | | | Signed-off-by: Ralph Boehme <slow at samba.org> Reviewed-by: Martin Schwenke <martin at meltin.net> Reviewed-by: Jeremy Allison <jra at samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 26 03:54:39 CEST 2018 on sn-devel-144
* Add a wrapper script as git pre-commit hookRalph Boehme2018-04-262-0/+34
| | | | | | | | | | | | | | | | When developer mode is enabled, the wrapper script "script/git-hooks/pre-commit-hook" gets installed as .git/hooks/pre-commit and calls "script/git-hooks/pre-commit-script". This way we can later modify the "script/git-hooks/pre-commit-script" without the need to ever change the installed commit hook itself. Signed-off-by: Ralph Boehme <slow at samba.org> Reviewed-by: Martin Schwenke <martin at meltin.net> Reviewed-by: Jeremy Allison <jra at samba.org>
* traffic_relay: bulk port print to modern py3 styleJoe Guo2018-04-131-50/+55
| | | | | | | | | | | Change print to function and avoid the ugly `print >>sys.stderr`. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Fri Apr 13 10:36:32 CEST 2018 on sn-devel-144
* autobuild: Run all envs that depend on ad_dc in the ad_dc jobAndrew Bartlett2018-03-271-1/+12
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Split up the build further with samba-ad-dc-2Andrew Bartlett2018-03-271-0/+12
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Try and test different configure options for new environmentsAndrew Bartlett2018-03-271-1/+1
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Remove fileserver tests from the main buildAndrew Bartlett2018-03-271-1/+12
| | | | | | | | Again, this is to allow these to run in the 50min timelimit of travis-ci and so gain test coverage. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Run all "ad_dc" environment tests in samba-ad-dcAndrew Bartlett2018-03-271-1/+11
| | | | | | | | | This allows us not to run ad_dc tests in the main build, making the autobuild process faster. The ad_dc tests run in less than 50mins on travis-ci, which allows this part of the tests to be run. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Run nt4_dc and nt4_member tests in parallelAndrew Bartlett2018-03-271-3/+14
| | | | | | | These do not interact with the main AD DC environments, so can run in parallel Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
* autobuild: Move "none" environment to samba-none-envAndrew Bartlett2018-03-231-1/+14
| | | | | | | | | | | | This takes this part of the test out of the main, slow samba task but also keeps it away from samba-o3 which is up against the 50min budget on travis-ci. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 23 12:00:40 CET 2018 on sn-devel-144
* script: convert print func to be py2/py3 compatibleNoel Power2018-03-232-7/+9
| | | | | | Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* autobuild: Move defaulttasks to one-per-lineAndrew Bartlett2018-03-221-1/+15
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* scripts/ python: convert 'except X, e' to 'except X as e'Douglas Bagnall2018-02-152-2/+2
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest and autrobuild: convert 'except X, e' to 'except X as e'Douglas Bagnall2018-02-151-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* autobuild: fix quoting of --restrict-testsJamie McClymont2018-01-051-1/+1
| | | | | | | | | | | | Currently, passing multiple tests causes those other than the first to be passed to make, causing failures. Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Fri Jan 5 02:51:09 CET 2018 on sn-devel-144
* tests: replace traffic_summary test with python blackbox testGary Lockyer2017-08-173-5065/+0
| | | | | | | | | | | | | | Replace the shell subunit test for script/traffic_summary.pl with a python black box test. This involves moving the test files to more standard locations. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Thu Aug 17 07:59:38 CEST 2017 on sn-devel-144
* scripts: Scripts to replay and generate samba trafficGary Lockyer2017-08-172-0/+425
| | | | | | | | | | | | | | | | | | | | | | | | Scripts to generate representative network traffic and replay this to a samba instance. For load testing, performance profiling and capacity planning. traffic_learner process a file generated by traffic_summary and generate a model that can be used by traffic_replay to generate samba network traffic. traffic_replay Replay a summary file generated by traffic_summary, or use a model created by traffic_learner to generate network traffic. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Tim Beale <timbeale@catalyst.net.nz>
* traffic_summary: avoid uninitialised variable warningDouglas Bagnall2017-08-171-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* autobuild: Use new selftest.pl feature to run only some environmentsAndrew Bartlett2017-06-301-3/+3
| | | | | | | This is cleaner than test filtering with regular expressions Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* autobuild: Do not require cmocka to be installed for samba-libs to buildAndrew Bartlett2017-04-191-1/+1
| | | | | | | | | | cmocka does not have an install target, but is a depencency of ldb for the tests Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Wed Apr 19 19:43:15 CEST 2017 on sn-devel-144
* lib: Add pam_wrapper 1.0.3Andreas Schneider2017-04-071-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* script/compare_cc_results.py: ignore all LIB*_WRAPPER_SO_PATH valuesStefan Metzmacher2017-04-071-3/+8
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* autobuild: Stop waf uninstall from removing test_tmpdirMartin Schwenke2017-03-211-0/+5
| | | | | | | | | | | | | | | | | | | Most of the autobuild tasks run "make distcheck", which does a recursive "waf configure make install uninstall". "waf uninstall" (via BuildContext.install() in Build.py) removes empty directories all the way up the directory tree. This means that it removes test_tmpdir, if it is empty, and any empty directories above it. While this is arguably a waf bug, the simplest solution is to make test_tmpdir non-empty so it don't get removed. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12703 Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Mar 21 10:37:08 CET 2017 on sn-devel-144
* autobuild: Add nopython environment to test --disable-python builds (but ↵Andrew Bartlett2017-03-101-1/+17
| | | | | | | | | | | | | | without tests) This ensures we keep this option building as we extend our use of python. The rule is that new features and changes to existing features that require python are most welcome, they just need to be disabled for the minimalistic targets we still ecourage Samba on, that typically just want smbd Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* scripts/traffic_summary: documentation typoDouglas Bagnall2017-03-101-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* script: Add test script for traffic_summary.plGary Lockyer2017-03-011-0/+47
| | | | | | | | | | | | Add the test script for traffic_summary.pl, test data in previous commit. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Wed Mar 1 09:01:07 CET 2017 on sn-devel-144
* script: Add script to provide an anonymous summary from tsharkGary Lockyer2017-03-011-0/+707
| | | | | | | | | | The tshark command needs to output a PDML XML stream, which this command will read. The summary is intended not to expose private or customer data while allowing a good view on the range and frequency of the network traffic. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* script: Add test data for traffic_summary.plGary Lockyer2017-03-012-0/+5018
| | | | | | | | | | This network capture summary tool will be added in the next commit This sample is taken from make test under SOCKET_WRAPPER_PCAP_FILE Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* script/autobuild.py: ignore missing test_tmpdirStefan Metzmacher2017-02-211-1/+1
| | | | | | | It is still unknown what removes it... Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* script/autobuild.py: try to make TMPDIR handling more verboseStefan Metzmacher2017-01-121-4/+7
| | | | | | | | This hopefully gives some hints regarding flakey tests where the tmpdir is not available. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: add a do_print() wrapper function that flushes after ↵Stefan Metzmacher2017-01-121-18/+23
| | | | | | | each message Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: export PYTHONUNBUFFERED=1Stefan Metzmacher2017-01-121-0/+2
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: cleanup the task subdirs when they're done.Stefan Metzmacher2017-01-121-0/+4
| | | | | | | This hopefully reduces the used space on the memdisk. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* script/autobuild.py: use --enable-developer and --picky-developer for the ↵Stefan Metzmacher2017-01-121-1/+2
| | | | | | | ctdb build Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
* script/release.sh: fix off by 1 error in announce.${tagname}.mail.txt creationStefan Metzmacher2017-01-121-2/+3
| | | | | | | | | | Pair-Programmed-With: Karolin Seeger <kseeger@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Karolin Seeger <kseeger@samba.org> Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Thu Jan 12 15:34:25 CET 2017 on sn-devel-144
* script/autobuild.py: try make test TESTS=samba3.*ktest for samba-systemkrb5Stefan Metzmacher2017-01-101-1/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* 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>