summaryrefslogtreecommitdiffstats
path: root/selftest
Commit message (Collapse)AuthorAgeFilesLines
* selftest: Restore the s3member environment by avoiding smbcaclsAndrew Bartlett2011-04-292-15/+13
| | | | | | | | | This removes the need for acls on the filesystem for simple domain member tests. ACL tests should be written at some point... Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s4-selftest: Don't use a hardcoded target DC nameAndrew Bartlett2011-04-281-1/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 28 07:34:31 CEST 2011 on sn-devel-104
* selftest: Make combined test the default when s3build is enabledAndrew Bartlett2011-04-281-0/+2
|
* selftest: Fix combination of Samba3 and Samba4 test listsAndrew Bartlett2011-04-281-10/+25
| | | | | | | | | | The previous code was too subtle, and tried to filter via two xfail scripts. The --fail-immediately for the source3 knownfail would then fail samba4 know failures. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* selftest: Print a better warning warning message when smbcacls fails.Andrew Bartlett2011-04-281-1/+1
| | | | | | | These tests can't run on systems without posix ACLs. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Apr 28 06:18:59 CEST 2011 on sn-devel-104
* selftest: Don't die() when the join failsAndrew Bartlett2011-04-281-5/+14
| | | | | | | This kills off everything without a proper shutdown, and is difficult to debug. Andrew Bartlett
* selftest: s3member admember test to confirm s3/s4 interopabilityAndrew Bartlett2011-04-283-54/+168
| | | | | | | | | | | | This checks that Samba3 joins Samba4 correctly, and allows NTLM and Kerberos logons from a live Samba4 DC. This needs the common krb5.conf generation logic, and because we now override KRB5_CONFIG we must update ktest to have a valid krb5.conf. Based on an original patch by metze Andrew Bartlett
* selftest: Make overwrite of $env->{target} optionalAndrew Bartlett2011-04-281-2/+6
| | | | | | | This allows a target to be a mix of Samba3 and Samba4, and chose it's own backend for check_env and get_log_env. Andrew Bartlett
* s3-selftest: Use default name resolution methods (now that dns is emulated)Andrew Bartlett2011-04-281-2/+0
| | | | | | | Now that we have emulated DNS, we can test Samba with the default name resolve order. Andrew Bartlett
* s3-test: log to stdout for smbd/nmbd/winbinddAndrew Tridgell2011-04-281-3/+5
| | | | | | | | | | this prevents error messages from logfile creation before smb.conf is read Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Apr 28 05:29:19 CEST 2011 on sn-devel-104
* selftest: we don't get valgrind errors any more with iconvAndrew Tridgell2011-04-271-5/+0
| | | | | | | | | | | this check was causing the CP850 warning in the combined build, as the s3 tests want CP850, but we don't have builtin support for that charset Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 27 09:31:44 CEST 2011 on sn-devel-104
* selftest: Make bindir_path much less complexAndrew Bartlett2011-04-274-51/+51
| | | | | | There is no need to pass it as a function pointer, just put it in 'Samba.pm'. Andrew Bartlett
* libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srvAndrew Bartlett2011-04-261-0/+4
| | | | | | | | | By reworking the 'fake DNS' file to use struct dns_rr_srv it should be possible to emulate that resolver layer as well as the Samba4 sockaddr_storage* based layer. This will then give us a common DNS emulation for 'make test'. Andrew Bartlett
* selftest Consolidate server wall clock time limitsAndrew Bartlett2011-04-194-50/+44
| | | | | | | | | | This helps ensure that we don't have the Samba3 servers stop before the full make test is finished. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Apr 19 09:03:07 CEST 2011 on sn-devel-104
* selftest: move warning about invalid environments up to selftest.plAndrew Bartlett2011-04-192-2/+5
|
* selftest: Don't specify SELFTEST_TARGET as an env variableAndrew Bartlett2011-04-191-1/+0
| | | | | | | It is much more reliable to specify it as a direct parameter, and this is needed for the combined 'make test'. Andrew Bartlett
* selftest Test for socket_wrapper support in combined samba target as wellAndrew Bartlett2011-04-191-0/+3
|
* selftest: Add hooks to enable a combined selftest run.Andrew Bartlett2011-04-191-1/+12
| | | | Andrew Bartlett
* s4-selftest Rename Samba4 'member' test environment to s4memberAndrew Bartlett2011-04-191-4/+4
| | | | | | This will avoid a conflict with the s3 'member' environment. Andrew Bartlett
* s4-selftest: Move Samba4 test interfaces out of the way of the Samba3 tests.Andrew Bartlett2011-04-191-8/+8
| | | | This avoids a conflict when we merge the test suites.
* s3-selftest Fix interface localktest6 listens on.Andrew Bartlett2011-04-191-1/+1
| | | | Andrew Bartlett
* selftest Add combined 'Samba' target moduleAndrew Bartlett2011-04-194-3/+53
| | | | | | | | To work around environment variable handling, the initialisation of NSS_WRAPPER_WINBIND_SO_PATH is pushed in to Samba3.pm (the s3 autoconf build still overrides this) Andrew Bartlett
* s4-selftest: Avoid duplicating the servers IP in the provision() sub arguments.Andrew Bartlett2011-04-191-4/+9
| | | | | | This should make it easier to change the IP address. Andrew Bartlett
* s3-selftest Rename s3 DC environment to s3dcAndrew Bartlett2011-04-191-31/+31
| | | | | | | This should avoid a clash with the s4 DC environment in a future combined 'make test'. Andrew Bartlett
* s4-selftest: Stop creating netbios aliases everywhereAndrew Bartlett2011-04-191-32/+9
| | | | | | | | | | This reduces some of the clutter when we have quite so many server configurations starting. The one case that actually needs an alias (dc environment for the test_nmblookup.sh test) will still keep it. Andrew Bartlett
* selftest: put the target on the environmentAndrew Bartlett2011-04-191-5/+11
| | | | | | | This will allow us to have a 'switch' target type that creates environments from Samba3 or Samba4 as required. Andrew Bartlett
* selftest: Allow the top level build to run the samba4 or samba3 testsAndrew Bartlett2011-04-161-17/+33
| | | | | | | | This is selected with for example ./buildtools/bin/waf test --target=samba3 Andrew Bartlett
* selftest Remove selftest of the test subsystemAndrew Bartlett2011-04-161-21/+0
| | | | | | | The intereactions between selftest.pl and the target are now too complex to unit test like this any more. Andrew Bartlett
* selftest: Move Samba4 selftest wscript to the top levelAndrew Bartlett2011-04-161-0/+201
|
* selftest Add binary mappings for samba3 selftestAndrew Bartlett2011-04-161-6/+6
| | | | | | | | | This will help us have a top level 'make test', working around the fact that the --eanble-s3build has different names for some of these binaries, without fixing the names forever (we can just change the mapping later). Andrew Bartlett
* selftest: Start using the binary mapping at the python layer as wellAndrew Bartlett2011-04-161-0/+10
|
* selftest: Remove duplication between BUILDIR and BINDIRAndrew Bartlett2011-04-162-10/+7
| | | | | | Just have BINDIR, and have it default to ./bin Andrew Bartlett
* selftest: Remove unused BUILDDIR_ABS environment variableAndrew Bartlett2011-04-161-1/+0
|
* selftest: Provide a single bindir_path function across all targetsAndrew Bartlett2011-04-165-62/+71
| | | | | | | This will allow a mapping to be made between things like smbtorture4 -> smbtorture that is correct for the different build environments. Andrew Bartlett
* s3/selftest Tear down the environment if we fail to connectAndrew Bartlett2011-04-121-12/+36
| | | | | | | | | | | This removes the exit(1) that previously didn't tear down the environment correctly, and instead just fails to set it up, allowing the rest of the script handle that with more grace. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Apr 12 01:53:37 CEST 2011 on sn-devel-104
* selftest:Samba4: setup DC_* variables in provision_rpc_proxy()Stefan Metzmacher2011-04-071-0/+7
| | | | | | | | | | The "rpc_proxy" should behave like "member", just with a different configuration. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Apr 7 15:52:25 CEST 2011 on sn-devel-104
* s3-selftest actually wait for smbclient to connectAndrew Bartlett2011-04-071-2/+14
| | | | | | This means that we actually have a working smbd. The previous code didn't know if it worked or not, and so created flaky tests. Andrew Bartlett
* s3-selftest Fix use of the 'fake DNS' fileAndrew Bartlett2011-04-072-2/+2
| | | | | | | | | | This ensures we don't use netbios before the hosts file and that we do fill in the fake DNS zone correctly for the way we invoke smbtorture4. Currently this works because the realm in client.conf is "", if this changes then this will need to change too (perhaps an additional entry). Andrew Bartlett
* s3-selftest Add tests to show kerberos works across a password changeAndrew Bartlett2011-04-061-4/+14
| | | | | | | | | | | | | It is important that a machine account password change does not invalidate existing tickets. This is only for the default kerberos method with a password in secrets.tdb. The keytab based methods are still not tested. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Apr 6 05:24:48 CEST 2011 on sn-devel-104
* s3-selftest names into DNS hosts file to avoid NBT lookupsAndrew Bartlett2011-04-061-0/+5
| | | | | | | | | | | | NBT lookups cause trouble and variablity in 'make test', so it's much better if we just use the fake DNS code. This code is only used by smbtorture4 at this time, but the other client tools are generally told to contact by IP address. We need to contact by name to test Kerberos, and this should make the kerberos tests much more reliable. Andrew Bartlett
* s3-selftest Add testing of kerberos loginAndrew Bartlett2011-04-041-0/+65
| | | | | | | This uses a pre-calculated credentials cache, that should be valid until 2036. Andrew Bartlett
* s3-selftest Disable log rotation in 'make test'Andrew Bartlett2011-04-041-0/+1
|
* s3-selftest Add tests for security=serverAndrew Bartlett2011-03-291-0/+39
| | | | Andrew Bartlett
* s3:selftest: fix Samba3.pm deprecated idmap configBjörn Baumbach2011-03-221-2/+1
| | | | | Replace deprecated idmap uid and gid option with new idmap config * : range
* selftest/Samba3: use 'debug pid=yes'Stefan Metzmacher2011-03-191-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Mar 19 10:55:34 CET 2011 on sn-devel-104
* selftest: Added ncalrpc dir to config.Andreas Schneider2011-03-081-0/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* selftest/target/Samba4: regenerate the krb5.conf after the rodc joinStefan Metzmacher2011-03-041-0/+6
| | | | | | | The RODC should be used as KDC, which will forward requests to the RWDC if required. metze
* selftest/target/Samba4: splitout a mk_krb5_conf() functionStefan Metzmacher2011-03-041-44/+51
| | | | metze
* selftest: Improve gdb_backtrace to run in batch modeAndrew Bartlett2011-02-221-2/+3
| | | | | | | | | Following Tridge's advice, we need to have no input (/dev/null) and -batch for reliable opeation on big backtraces. We should also use --pid, and let gdb find the binary Andrew Bartlett
* selftest pass in srcdir into Samba3 target moduleAndrew Bartlett2011-02-222-6/+8
|