summaryrefslogtreecommitdiffstats
path: root/source3/torture
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-torture: Don't leak memory.Andreas Schneider2013-02-221-0/+3
| | | | Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s3:torture: call fault_setup() to get usage backtracesStefan Metzmacher2013-02-191-0/+1
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:torture: s/struct event_context/struct tevent_contextStefan Metzmacher2013-02-192-5/+5
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:torture: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-1913-26/+26
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* torture: We use transactions for CLEAR_IF_FIRST dbVolker Lendecke2013-02-081-1/+1
| | | | | | | This does not work in the ctdb case Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:torture/vfstest add memreport optionChristian Ambach2013-02-041-0/+8
| | | | | | | this will run a talloc_report_full on the talloc stackframe after each command Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:torture/vfstest implement sys_acl_blob_get_fdChristian Ambach2013-02-041-0/+45
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:torture/vfstest implement sys_acl_blob_get_fileChristian Ambach2013-02-041-0/+32
| | | | | Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* Regression test for bug #9571 - Unlink after open causes smbd to panicJeremy Allison2013-01-281-0/+44
| | | | | | | | | | Replicates the protocol activity that triggers the crash. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jan 28 15:33:17 CET 2013 on sn-devel-104
* smbtorture: Satisfy a linker dependencyVolker Lendecke2013-01-181-1/+8
| | | | Reviewed by: Jeremy Allison <jra@samba.org>
* torture/vfstest.c: Always use create_conn_struct(). Don't hand create ↵Jeremy Allison2013-01-091-10/+22
| | | | | | | | connection structs. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: remove crypto from serverinfo_to_SamInfoX calls.Günther Deschner2012-12-091-1/+1
| | | | | | | | | All crypto is dealt with within the netlogon samlogon server now. Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* torture: Use new samba_getpass() in masktest.Andreas Schneider2012-12-031-2/+5
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* torture: Use new samba_getpass() in smbtorture3.Andreas Schneider2012-12-031-3/+6
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* torture: Use new samba_getpass() in locktest2.Andreas Schneider2012-12-031-3/+6
| | | | Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
* s3: test dbwrap_ctdbVolker Lendecke2012-11-293-0/+151
| | | | Reviewed-by: Michael Adam <obnox@samba.org>
* s3-rpc_client: try to use socket_addr if available in rpc_pipe_open_tcp() ↵Günther Deschner2012-11-261-1/+2
| | | | | | | | | | | | (bug #9426) Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Nov 26 17:36:20 CET 2012 on sn-devel-104
* torture: remove source3 locktest and masktestAndrew Bartlett2012-11-221-692/+0
| | | | | | | | | | We now just build these in waf, using the source4/torture code. The source4 versions of these are tested in make test. Andrew Bartlett Reviewed-by: Andreas Schneider <asn@samba.org>
* Ensure we Correctly set fsp->is_directory before dealing with ACLs.Andrew Bartlett2012-11-131-1/+1
| | | | Reviewed by: Jeremy Allison <jra@samba.org>
* s3-torture:test_ctdbconn: fix the build against older ctdb versionsBjörn Baumbach2012-11-021-0/+6
| | | | | | | by checking if we have the ctdb_protocol.h and including ctdb_private.h otherwise. Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Michael Adam <obnox@samba.org>
* vfstest: set umask(0) in vfstestAndrew Bartlett2012-10-261-0/+5
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Oct 26 10:07:03 CEST 2012 on sn-devel-104
* s3:smbd: add exit_server to the smbd_shim hooksStefan Metzmacher2012-10-191-3/+11
| | | | | | | | | This is in preparation of moving sessionid_tdb and conn_tdb to smbd exclusively. metze Signed-off-by: Michael Adam <obnox@samba.org>
* smbd: Add mem_ctx to {f,}get_nt_acl VFS callAndrew Bartlett2012-10-111-2/+6
| | | | | | | | | | | This makes it clear which context the returned SD is allocated on, as a number of callers do not want it on talloc_tos(). As the ACL transformation allocates and then no longer needs a great deal of memory, a talloc_stackframe() call is used to contain the memory that is not returned further up the stack. Andrew Bartlett
* smbd: Add mem_ctx to sys_acl_init() and all callersAndrew Bartlett2012-10-111-2/+2
| | | | | | | | | | This changes from allocation on NULL to allocation on the supplied memory context. Currently that supplied context is talloc_tos() at the the final consumer of the ACL. Andrew Bartlett
* s3: Add two tests a CLEAR_IF_FIRST crashVolker Lendecke2012-10-061-0/+56
| | | | | Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Sat Oct 6 17:16:39 CEST 2012 on sn-devel-104
* s3-torture: Allow vfstest to set ACLs on a directoryAndrew Bartlett2012-08-171-6/+11
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Aug 17 02:35:49 CEST 2012 on sn-devel-104
* s3-selftest: Add a seperate test for ACL tests using vfstestAndrew Bartlett2012-08-161-10/+35
| | | | | | | | | | | This does not check for consistency or correctness yet, that will be done with python unit tests. The purpose of this test is to ensure that the vfstest wrapper doesn't crash. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Aug 16 09:32:25 CEST 2012 on sn-devel-104
* s3-torture: Add ACL commands to vfstestAndrew Bartlett2012-08-161-0/+311
| | | | | | This will allow easier investigation of our ACL layer. Andrew Bartlett
* s3-torture: Use talloc more in vfstestAndrew Bartlett2012-08-162-29/+25
| | | | | | This matches the rest of Samba, which allocates many of these structures with talloc. Andrew Bartlett
* s3-torture: Initialise fsp fully in vfstest openAndrew Bartlett2012-08-161-0/+34
|
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-2/+2
|
* Check error returns from strupper_m() (in all reasonable places).Jeremy Allison2012-08-091-1/+1
|
* s3:torture:delete: add a 12th subtest to the delete-on-close testsMichael Adam2012-08-091-0/+98
| | | | | | test whether second open is possible with initial delete on close and how setting and unsetting delete on close on the handle affects the initial delete on close (it does not...)
* s3:torture:delete: fix 11th test to work against windowsMichael Adam2012-08-091-9/+6
|
* s3:torture:delete: simplify return code handling, fixing a couple of return ↵Michael Adam2012-08-091-48/+3
| | | | codes in error cases
* s3:torture:delete: reduce indentationMichael Adam2012-08-091-8/+6
|
* s3:torture:delete: add a commentMichael Adam2012-08-091-0/+2
|
* s3:torture:delete: add a commentMichael Adam2012-08-091-0/+2
|
* s3:torture:delete: add a commentMichael Adam2012-08-091-0/+2
|
* s3:torture:delete: move the success message for a subtest to the correct placeMichael Adam2012-08-091-2/+3
|
* s3:torture:delete: remove an else, reducing indentationMichael Adam2012-08-091-2/+3
|
* s3:torture:delete: remove an else, reducing indentationMichael Adam2012-08-091-2/+3
|
* s3:torture:delete: remove an else, reducing indentationMichael Adam2012-08-091-2/+3
|
* s3:torture:delete: remove an else, reducing indentationMichael Adam2012-08-091-2/+3
|
* s3:torture:delete: really fail the test in a failure caseMichael Adam2012-08-091-2/+2
|
* s3:torture:delete: fix a commentMichael Adam2012-08-091-1/+1
|
* s3:torture:delete: fix a messageMichael Adam2012-08-091-1/+1
|
* s3:torture:delete: fix a messageMichael Adam2012-08-091-1/+1
|
* s3:torture:delete: fix a messageMichael Adam2012-08-091-1/+1
|
* s3:torture:delete: fix a message (counting the opens)Michael Adam2012-08-091-1/+1
|