summaryrefslogtreecommitdiff
path: root/selftest/selftest.pl
Commit message (Collapse)AuthorAgeFilesLines
* selftest: force running with TZ=UTCStefan Metzmacher2019-03-281-0/+3
| | | | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Feb 27 11:24:59 UTC 2019 on sn-devel-144 (cherry picked from commit 4f307f2302b0fe8fd0fc6379eb8e6491faf8520c)
* selftest: Add RODC variables to list of those exportedGarming Sam2018-02-271-0/+6
| | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13269 Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit e694b8a1b993bf7213b191e1132c5d02e16ab85d)
* selftest: allow more time for testsDouglas Bagnall2017-12-291-2/+2
| | | | | | | | | | | Maybe make test *should* run in under 4 hours, but it currently doesn't. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Dec 29 02:48:59 CET 2017 on sn-devel-144
* selftest: apply NSS_WRAPPER_HOSTNAME to child processesJamie McClymont2017-12-201-0/+1
| | | | | | | | | | | | | | | | | Currently, Samba3.pm returns a value for NSS_WRAPPER_HOSTNAME in provision, but selftest.pl does not apply it, so Samba3.pm /also/ sets it in its own environment. This breaks a command like this: make test TESTS="samba3.blackbox.smbclient_ntlm.plain samba3.rpc.samba3.netlogon" ... since samba3.blackbox.smbclient_ntlm.plain runs in an nt4_member env, thereby setting ENV{NSS_WRAPPER_HOSTNAME} to the value for a member, and samba3.rpc.samba3.netlogon depended on NSS_WRAPPER_HOSTNAME as a username (until previous commit). Signed-off-by: Jamie McClymont <jamiemcclymont@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Make location of log file available in testsChristof Schmitt2017-12-151-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13189 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4:bind_dlz: Use the 'binddns dir' if possibleAndreas Schneider2017-09-051-0/+7
| | | | | | | | | | | The code makes sure we are backwards compatible. It will first check if we still have files in the private directory, if yes it will use those. If the the file is not in the private directory it will try the binddns dir. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org>
* selftest: Make --include-env and --exclude-env use the base env nameAndrew Bartlett2017-07-241-3/+3
| | | | | | | | | | | | | | | | | | | | The code as deployed would have required (eg) '--include-env=ktest --include-env=ktest:local' which was not done in autobuild, causing tests to be skipped. This patch restores the intended behaviour. This causes 33 testsuites to run, one more test (the newly added samba.tests.ntlmauth) than the old regex provided (before 602772159dfd1213385f42ecbf31136f57693b63). (The regression dropped us down to matching only 7 tests). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12922 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): Mon Jul 24 03:33:01 CEST 2017 on sn-devel-144
* selftest: Allow selftest.pl to run just some environmentsAndrew Bartlett2017-06-301-1/+33
| | | | | | | | This makes it easier to declare that some autobuild environments only run some selftest environments. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* selftest: Use 'ad_dc' as the default for testenvAndreas Schneider2017-06-201-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* selftest: Make lockdir available in test environmentChristof Schmitt2017-05-081-0/+1
| | | | | Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* selftest: Add a variable to indicate that selftest is runningAndreas Schneider2017-04-291-0/+2
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Start MIT KDC if Kerberos is from MITAndreas Schneider2017-04-291-0/+6
| | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlet <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: make sure we don't have any umask limitations for selftestStefan Metzmacher2017-04-101-0/+3
| | | | | | | | | | We create $prefix with 0700 (umask 0077), but everything else should not have a umask limitation (by default). BUG: https://bugzilla.samba.org/show_bug.cgi?id=12709 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: add vampire_2000_dc environmentBob Campbell2017-02-141-0/+7
| | | | | | | | | | | | | This is the equivalent of vampire_dc, but using a domain functional level of DS_DOMAIN_FUNCTION_2000. Using this functional level is useful for tests involving replication and linked attributes, as they behave differently at it. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz> BUG: https://bugzilla.samba.org/show_bug.cgi?id=11139 Pair-programmed-with: Bob Campbell <bobcampbell@catalyst.net.nz>
* selftest: show multiple arguments for --helpDouglas Bagnall2017-02-101-1/+1
| | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Remove unsued variables WINBINDD_PRIV_PIPE_DIR and wbsockprivdirAndrew Bartlett2017-01-221-1/+0
| | | | | | | | | | I can not find anything that uses these in the testsuite 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): Sun Jan 22 22:15:01 CET 2017 on sn-devel-144
* selftest/selftest.pl: print out '[expanded] command: ' in all error casesStefan Metzmacher2017-01-101-0/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest/selftest.pl: we don't need to call Subunit::progress_pop() twice on ↵Stefan Metzmacher2017-01-101-1/+0
| | | | | | | error Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* selftest: make sure we always export KRB5CCNAMEStefan Metzmacher2016-12-171-0/+8
| | | | | | | | | | | | | We should not risk the usage of the users global ccache! This results in unpredictable effects for the user and selftest itself. 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): Sat Dec 17 22:58:28 CET 2016 on sn-devel-144
* selftest: also export TMPDIRStefan Metzmacher2016-12-171-0/+1
| | | | | | | This should hopefully avoid usage of /tmp. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* selftest: Do not include system krb5.conf in selftestAndreas Schneider2016-12-021-0/+1
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=12441 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: Do not use a central credential cacheAndreas Schneider2016-09-271-1/+1
| | | | | | | | We should use seperate caches and set the default_ccache_name accordingly. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest:Samba4: configure "password hash gpg key ids" for ad_dc (if available)Stefan Metzmacher2016-07-221-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: add check password script testBob Campbell2016-07-051-0/+1
| | | | | | | Pair-programmed-with: Garming Sam <garming@catalyst.net.nz> Signed-off-by: Bob Campbell <bobcampbell@catalyst.net.nz> Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Always set up a resolv.conf and use it in samba_dnsupdateAndrew Bartlett2016-06-161-0/+1
| | | | | | | This allows samba_dnsupdate to be tested without resolv_wrapper. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* tests/dns_forwarder: Add testing for DNS forwardingGarming Sam2016-05-031-0/+2
| | | | | | | | | | | The new tests show that single and multiple forwarders work as expected. They also describe the behaviour encountered when the DNS server encounters a CNAME from a forwarded request (which is not to pursue any further). Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Pair-programmed-with: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
* CVE-2016-2113: selftest: use "tls verify peer = no_check"Stefan Metzmacher2016-04-121-0/+1
| | | | | | | | | Individual tests will check the more secure values. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11752 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* selftest: setup information of new samba.example.com CA in the client ↵Stefan Metzmacher2016-03-171-0/+39
| | | | | | | environment Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
* selftest: Allow 4 hours for the test to run (ouch!)Andrew Bartlett2016-03-081-2/+2
| | | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
* selftest: specify a maximum runtime for 'make testenv' of 1 yearStefan Metzmacher2016-02-011-1/+9
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
* selftest: Avoid system krb5.conf in "none" test envUri Simchoni2015-10-271-4/+1
| | | | | | | | | | Some torture tests do not perform Kerberos activity and do not run against a server (hence the "none" test env), but do create a krb5 context, and that causes the Kerberos libs to read krb5.conf and choke if they don't understand it. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest/Samba4: setup trusts between forest:fl2008r2dc/ad_dc and ↵Stefan Metzmacher2015-07-081-0/+10
| | | | | | | externl:fl2003dc/ad_dc Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: use server_maxtime = 10800 by defaultStefan Metzmacher2015-06-301-1/+1
| | | | | | | | | | | | | | | | With something like this: samba.stdout: [1855(18118)/1864 at 2h37m4s] samba4.krb5.kdc with account ALLOWED permission to replicate to an RODC(fl2008r2dc) [1856(18378)/1864 at 2h37m57s] samba4.blackbox.dbcheck(ad_dc_ntvfs) ERROR: Testsuite[samba4.blackbox.dbcheck(ad_dc_ntvfs)] REASON: unable to set up environment ad_dc_ntvfs:local - exiting samba.stderr: samba: maximum runtime exceeded - terminating at 1435553350, current ts: 1435553350 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: Remove binary mappings from the build system.Adrian Cochrane2015-06-081-15/+2
| | | | | | Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: rename env member to nt4_memberMichael Adam2015-03-171-1/+1
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Mar 17 01:46:18 CET 2015 on sn-devel-104
* selftest: rename env dc to ad_dc_ntvfsMichael Adam2015-03-161-1/+1
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add missing variable to @exported_envvarsAndreas Schneider2015-03-161-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* selftest: use server_maxtime = 9000 by defaultStefan Metzmacher2015-03-161-1/+1
| | | | | | | | | | | | | | | | | With something like this: samba.stdout: [1730(16549)/1735 at 2h9m58s] samba4.blackbox.dbcheck(dc) ERROR: Testsuite[samba4.blackbox.dbcheck(dc)] REASON: unable to set up environment dc:local - exiting samba.stderr: samba: maximum runtime exceeded - terminating at 1426447450, current ts: 1426447450 samba child process 653 exited with value 0 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: re-enable nss_winbind via nss_wrapper in the test-envs.Günther Deschner2015-02-131-0/+2
| | | | | | | | | | | | | | | | | | | | | Without exporting these new variables, we can never access or test nss_winbind from the selftest environments. This shows that our posixacl test probably needs fixing since now two subtests fail against plugin_s4_dc:local. This env was just not complete without winbind in nsswitch. The test failure is probably due to the strangeness of the AD/DC setup that the domain administrator uses the same uid as the root user, which in the selftest case is overridden to be the calling user. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Pair-Programmed-With: Michael Adam <obnox@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Fri Feb 13 20:57:12 CET 2015 on sn-devel-104
* selftest: Fix typo namerserver -> nameserver.Jelmer Vernooij2015-01-301-2/+2
| | | | | | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Jan 30 19:59:40 CET 2015 on sn-devel-104
* selftest: Use resolv_wrapper in the samba4 target.Andreas Schneider2014-12-181-8/+10
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Define if we should fake dns resolving.Andreas Schneider2014-12-181-1/+12
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Preload resolv_wrapper in selftest.Andreas Schneider2014-12-181-0/+11
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Add separate command line for listing tests, allowing us of ↵Jelmer Vernooij2014-11-301-8/+12
| | | | | | | | subunit-filter (which doesn't support subunit v2). Change-Id: Icb877214a422c63fd38ef92425c7b4fe7ee19ad5 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Drop support for TESTSUITE-IDLIST, and remove its last user.Jelmer Vernooij2014-11-301-7/+4
| | | | | | Change-Id: Ic616676bb770fa4769195d73c4309915646caae0 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: add documentation for options --exclude and --include that weren't ↵Matthieu Patou2014-10-171-0/+2
| | | | | | | | | | | | documented before Change-Id: Ibf0fa1c548d376dc8d68ab8136e2532f67dd1d8a Signed-off-by: Matthieu Patou <mat@matws.net> Reviewed-by: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Oct 17 20:20:12 CEST 2014 on sn-devel-104
* Don't ignore testsuites without --list support, but consider them asJelmer Vernooij2014-10-141-0/+3
| | | | | | | | | | | | atomic entities. This prevents any such testsuites from being skipped when run using testr. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10874 Change-Id: I6ae8c92bb70e86a3b848b9cb3a53e2af466c3fe3 Signed-Off-By: Jelmer Vernooij <jelmer@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: Show filename or script we had trouble readingAndrew Bartlett2014-09-081-1/+1
| | | | | | Change-Id: I12c26e807ab0d65031347bc3be609b2e87dcabb5 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Kamen Mazdrashki <kamenim@samba.org>
* selftest: export _IPV6 environment variablesStefan Metzmacher2014-08-261-0/+6
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* selftest: teardown the environments also on getting SIGPIPEStefan Metzmacher2014-07-111-10/+15
| | | | | | | | | | | | | | | | | | make test uses selftest.pl | subuntu-filter.py ... FAIL_IMMEDIATELY=1 lets subuntu-filter.py exit, which generates SIGPIPE in selftest.pl. We should handle this just like any other signal and teardown all environments. This should make the teardown process more reliable/verbose. Pair-Programmed-With: Michael Adam <obnox@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Michael Adam <obnox@samba.org>