summaryrefslogtreecommitdiff
path: root/selftest
AgeCommit message (Collapse)AuthorFilesLines
2012-03-04selftest: Add testlist management module.Jelmer Vernooij3-1/+73
2012-03-04selftest.target: Add Environment.get_vars.Jelmer Vernooij1-0/+11
2012-03-04selftest: Add tests for trying to reuse an environment that has gone down.Jelmer Vernooij1-1/+7
2012-03-04selftest: Add tests for NoneEnvironment.Jelmer Vernooij1-0/+17
2012-03-04selftest.target: Test that environments are reused.Jelmer Vernooij1-0/+5
2012-03-04selftest.target: Add tests for get_running_env.Jelmer Vernooij1-0/+7
2012-03-04selftest.target: Add tests for getlog_env.Jelmer Vernooij1-0/+8
2012-03-04selftest.target: Add tests for check.Jelmer Vernooij2-2/+9
2012-03-04selftest.target: Add tests for setup.Jelmer Vernooij2-9/+14
2012-03-04selftest: Add base classes for Target/Environment and their management.Jelmer Vernooij3-1/+199
2012-03-04selftest.socket_wrapper: interface is an integer.Jelmer Vernooij1-1/+1
2012-03-04selftest.socket_wrapper: Add basic unit tests.Jelmer Vernooij2-3/+16
2012-03-04selftest.socket_wrapper: Add docstrings.Jelmer Vernooij1-1/+8
2012-03-04Add test infrastructure for selftest.Jelmer Vernooij2-0/+52
2012-03-04selftest: Add python version of socket wrapper utilities.Jelmer Vernooij1-0/+54
2012-03-04selftest: Add selftest.py.Jelmer Vernooij1-0/+944
2012-03-04selftest: Rework Samba3.pm process terminationAndrew Bartlett1-15/+23
We now store the timelimit child PID in memory, and confirm that the child has exited with both waitpid() and kill(0, $pid). By calling Samba::cleanup_child() we get exit status information. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sun Mar 4 11:51:12 CET 2012 on sn-devel-104
2012-03-04selftest: Rework Samba4.pm process termination.Andrew Bartlett1-6/+23
We now double-check the waitpid() result with kill(0, $pid) We now also send a SIGTERM, then a SIGKILL. Andrew Bartlett
2012-03-04selftest: Fix waitpid termination testAndrew Bartlett1-2/+2
2012-03-04selftest: Use fork()/exec() rather than system()Andrew Bartlett2-71/+59
This follows the Samba3.pm model for starting child processes is to use fork()/exec(). This reduces the number of processes being created by selftest.pl, and gives us more information about the child process and the running state in the parent. Andrew Bartlett
2012-03-04selftest: Remove unused vde functions.Jelmer Vernooij1-25/+0
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Mar 4 07:54:51 CET 2012 on sn-devel-104
2012-03-04selftest/README: Expand inconsistent tabsJelmer Vernooij1-11/+11
2012-03-04selftest: Remove outdated template.Jelmer Vernooij1-47/+0
2012-03-04selftest: Remove unused and broken target 'windows'.Jelmer Vernooij2-46/+0
2012-03-03selftest: more precisely skip durable-open, not durable.openMichael Adam1-1/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Mar 3 19:17:32 CET 2012 on sn-devel-104
2012-03-03s4:torture:smb2: start a testsuite for durable v2 handles: durable and ↵Michael Adam1-0/+1
persistent opens
2012-03-02selftest: close stdin and wait with waitpid() for a safer exitAndrew Bartlett2-2/+36
This avoids timelimit sending kill -9 after 1 second, which may disrupt the writing of gcov data. Andrew Bartlett
2012-03-02selftest: Put stdin pipe on the environmentAndrew Bartlett1-9/+8
This seems to help us close the right pipe at cleanup time. Andrew Bartlett
2012-03-02selftest: Move manual page into a separate file.Jelmer Vernooij2-101/+78
(Generated using pod2man from selftest.pl itself)
2012-03-02selftest: Establish a registry of socket wrapper IPsAndrew Bartlett3-29/+56
This fixes a bug where chgdcpass was on the same IP as localsubdc, and will avoid similar mistakes in future. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Mar 2 03:48:05 CET 2012 on sn-devel-104
2012-02-29selftest: change plugin_dc to test using s3fsAndrew Bartlett2-79/+9
2012-02-29selftest: skip the troublesome samba4.rpc.unixinfo testAndrew Bartlett1-0/+2
The issue here is that while the single rpc_server process is stuck in an nss_winbind getpwuid() call, winbindd cannot contact netlogon to make the connection to the domain. nss_winbind comes into play when (for s3fs) the NSS_WRAPPER_WINBIND_SO_PATH environment variable is set. In the medium term, the unixinfo pipe should either be rewritten fully async or removed. Andrew Bartlett
2012-02-29selftest: Do not run chgdcpass test on the main DCAndrew Bartlett1-0/+46
If winbindd has it's password changed from under it, it becomes grumpy. Andrew Bartlett
2012-02-28selftest: added a pipe on stdin in s3 child processesAndrew Tridgell1-0/+17
this adds a pipe for STDIN in smbd, nmbd and winbindd when run in selftest. This allows those processes to detect when they should exit by looking for EOF on stdin.
2012-02-28s4:selftest: skip smb2.session testsuiteMichael Adam1-0/+1
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Feb 28 03:19:52 CET 2012 on sn-devel-104
2012-02-28s4:selftest: remove old "samba4.smb2.persistent.handle1" from knownfail - ↵Michael Adam1-1/+0
test does not exist
2012-02-27selftest: up the default log level in s3Andrew Bartlett1-1/+1
This may help show more detail when our tests fail. Andrew Bartlett
2012-02-23selftest: Do not skip environments that fail to start upAndrew Bartlett2-3/+7
This is a regression in 70f4a96c68e91e407651e2487cc3c66a80262fa2. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Feb 23 10:55:20 CET 2012 on sn-devel-104
2012-02-18selftest: Fix selftest to check ADS functionalty againAndrew Bartlett1-8/+10
This was found by looking over the lcov output on build.samba.org The new have_ads() check also now dies if it cannot run smbd, to avoid this in future. Andrew Bartlett
2012-02-16s3-selftest: Remove .posix_s3 from s3 test namesAndrew Bartlett2-9/+9
As far as I can tell, this simply referred to the posix_s3.sh script that originally ran these tests. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Feb 16 06:57:09 CET 2012 on sn-devel-104
2012-02-16selftest: skip plugin_s4_dc if we do not have ADSAndrew Bartlett1-0/+5
2012-02-16selftest: skip targets that are not compiled in if we do not have ADSAndrew Bartlett1-0/+25
2012-02-16s3-selftest: Require SMB signing for ktest environmentAndrew Bartlett1-0/+1
This will help weed out session key errors in the krb5 code. Andrew Bartlett
2012-02-16selftest: Do not start up an already-running test environmentAndrew Bartlett2-0/+8
Otherwise we may re-provision the dc just because we started it via s3member or s4member first. Andrew Bartlett
2012-02-16selftest: Make plugin_s4_dc set the cached environment correctlyAndrew Bartlett1-10/+12
2012-02-13s4:torture: add another SMB2 rename testChristian Ambach1-0/+1
this mimics Word 2010 saving a file Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon Feb 13 18:33:43 CET 2012 on sn-devel-104
2012-02-13selftest: Allow setup_env() to signal that an environment name is unknownAndrew Bartlett4-5/+12
This will allow us to skip samba4 environments that may be mentioned in the source3/selftest/tests.py file. Andrew Bartlett
2012-02-10selftest: add smb2.rename to testsuiteChristian Ambach1-0/+10
Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Fri Feb 10 15:02:51 CET 2012 on sn-devel-104
2012-02-10selftest: mark posix_s3.rpc.spoolss.printer as flakey testStefan Metzmacher1-0/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Feb 10 10:04:15 CET 2012 on sn-devel-104
2012-02-10build: Add --enable-coverage option to build with gcov supportAndrew Bartlett1-0/+7
This allows running lcov over the output. Andrew Bartlett