Volker Lendecke
1cd20441a7
torture: Remove some unused code
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
2013-05-14 14:34:20 +02:00
Volker Lendecke
2b97eb13ff
vfstest: Convert cmd_set_nt_acl to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
6f7d9b24d0
vfstest: Convert cmd_utime to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
6624095d67
vfstest: Convert cmd_lstat to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
7d5403037a
vfstest: Convert cmd_stat to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
a6985e6e67
vfstest: Convert cmd_rename to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:03 -07:00
Volker Lendecke
434885a4ac
vfstest: Convert cmd_pathfunc to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Volker Lendecke
1f6b0af7e7
vfstest: Convert cmd_open to synthetic_smb_fname
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-17 14:50:02 -07:00
Jeremy Allison
d9afb2b14d
s3:torture: Add new LARGE_READX test to investigate large SMBreadX behavior.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-03-20 09:32:26 -07:00
Guenter Kukkukk
e10c81553b
vfs_catia: write a testcase - add a translate command to vfstest
...
first approach
Signed-off-by: Guenter Kukkukk <kukks@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2013-03-11 21:44:43 -07:00
Guenter Kukkukk
b40c4b069a
vfstest: fix the "-c" multiple-command option
...
Signed-off-by: Guenter Kukkukk <kukks@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2013-03-11 21:40:23 -07:00
Andreas Schneider
d5a210a26f
s3-torture: Don't leak memory.
...
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2013-02-22 16:36:14 +01:00
Stefan Metzmacher
f3aa372bcb
s3:torture: call fault_setup() to get usage backtraces
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:48:05 +01:00
Stefan Metzmacher
5c72385f3d
s3:torture: s/struct event_context/struct tevent_context
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:51 +01:00
Stefan Metzmacher
60fa4c7305
s3:torture: make use of samba_tevent_context_init()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
2013-02-19 23:47:48 +01:00
Volker Lendecke
dc2e47508d
torture: We use transactions for CLEAR_IF_FIRST db
...
This does not work in the ctdb case
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-02-08 12:58:12 +01:00
Christian Ambach
940b7ec78c
s3:torture/vfstest add memreport option
...
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>
2013-02-04 12:19:30 +01:00
Christian Ambach
8e571fd385
s3:torture/vfstest implement sys_acl_blob_get_fd
...
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-02-04 12:19:30 +01:00
Christian Ambach
de676555ab
s3:torture/vfstest implement sys_acl_blob_get_file
...
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-02-04 12:19:30 +01:00
Jeremy Allison
e104e5a819
Regression test for bug #9571 - Unlink after open causes smbd to panic
...
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
2013-01-28 15:33:17 +01:00
Volker Lendecke
a8fe624948
smbtorture: Satisfy a linker dependency
...
Reviewed by: Jeremy Allison <jra@samba.org>
2013-01-18 09:16:58 -08:00
Jeremy Allison
5bffdac4ed
torture/vfstest.c: Always use create_conn_struct(). Don't hand create connection structs.
...
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-01-09 14:54:31 +11:00
Günther Deschner
f2d9589b17
s3-auth: remove crypto from serverinfo_to_SamInfoX calls.
...
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>
2012-12-09 19:39:08 +01:00
Andreas Schneider
1ded99cd14
torture: Use new samba_getpass() in masktest.
...
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-12-03 14:35:09 +01:00
Andreas Schneider
531af0af1a
torture: Use new samba_getpass() in smbtorture3.
...
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-12-03 14:35:09 +01:00
Andreas Schneider
17bcdb5200
torture: Use new samba_getpass() in locktest2.
...
Reviewed-by: Jelmer Vernooij <jelmer@samba.org>
2012-12-03 14:35:09 +01:00
Volker Lendecke
24c36e7484
s3: test dbwrap_ctdb
...
Reviewed-by: Michael Adam <obnox@samba.org>
2012-11-29 17:41:15 +01:00
Günther Deschner
b11ba24883
s3-rpc_client: try to use socket_addr if available in rpc_pipe_open_tcp() (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
2012-11-26 17:36:19 +01:00
Andrew Bartlett
ef195a18aa
torture: remove source3 locktest and masktest
...
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>
2012-11-22 10:21:16 +01:00
Andrew Bartlett
dc05ab8e19
Ensure we Correctly set fsp->is_directory before dealing with ACLs.
...
Reviewed by: Jeremy Allison <jra@samba.org>
2012-11-13 22:48:19 +01:00
Björn Baumbach
5f1b5404b8
s3-torture:test_ctdbconn: fix the build against older ctdb versions
...
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>
2012-11-02 13:47:35 +01:00
Andrew Bartlett
cb50e85a5a
vfstest: set umask(0) in vfstest
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Oct 26 10:07:03 CEST 2012 on sn-devel-104
2012-10-26 10:07:01 +02:00
Stefan Metzmacher
8a1c7a0a66
s3:smbd: add exit_server to the smbd_shim hooks
...
This is in preparation of moving sessionid_tdb and conn_tdb
to smbd exclusively.
metze
Signed-off-by: Michael Adam <obnox@samba.org>
2012-10-19 12:14:58 +02:00
Andrew Bartlett
c8ade07760
smbd: Add mem_ctx to {f,}get_nt_acl VFS call
...
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
2012-10-11 12:25:11 +11:00
Andrew Bartlett
9158974540
smbd: Add mem_ctx to sys_acl_init() and all callers
...
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
2012-10-11 12:25:11 +11:00
Volker Lendecke
9fc42daf75
s3: Add two tests a CLEAR_IF_FIRST crash
...
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Sat Oct 6 17:16:39 CEST 2012 on sn-devel-104
2012-10-06 17:16:39 +02:00
Andrew Bartlett
6b7a99107d
s3-torture: Allow vfstest to set ACLs on a directory
...
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 17 02:35:49 CEST 2012 on sn-devel-104
2012-08-17 02:35:49 +02:00
Andrew Bartlett
df8e9c1287
s3-selftest: Add a seperate test for ACL tests using vfstest
...
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
2012-08-16 09:32:25 +02:00
Andrew Bartlett
05885a84f9
s3-torture: Add ACL commands to vfstest
...
This will allow easier investigation of our ACL layer.
Andrew Bartlett
2012-08-16 15:25:40 +10:00
Andrew Bartlett
345b980c3e
s3-torture: Use talloc more in vfstest
...
This matches the rest of Samba, which allocates many of these structures with talloc.
Andrew Bartlett
2012-08-16 15:25:40 +10:00
Andrew Bartlett
43255a1d18
s3-torture: Initialise fsp fully in vfstest open
2012-08-16 15:25:40 +10:00
Jeremy Allison
b70f23c2b5
Correctly check for errors in strlower_m() returns.
2012-08-09 12:08:18 -07:00
Jeremy Allison
526e875cec
Check error returns from strupper_m() (in all reasonable places).
2012-08-09 12:06:54 -07:00
Michael Adam
523602863a
s3:torture:delete: add a 12th subtest to the delete-on-close tests
...
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...)
2012-08-09 16:22:53 +02:00
Michael Adam
db160bf510
s3:torture:delete: fix 11th test to work against windows
2012-08-09 16:22:50 +02:00
Michael Adam
2e53fb109f
s3:torture:delete: simplify return code handling, fixing a couple of return codes in error cases
2012-08-09 15:29:51 +02:00
Michael Adam
49a2c68011
s3:torture:delete: reduce indentation
2012-08-09 15:29:50 +02:00
Michael Adam
54e5810638
s3:torture:delete: add a comment
2012-08-09 15:29:49 +02:00
Michael Adam
c228b7abee
s3:torture:delete: add a comment
2012-08-09 15:29:47 +02:00
Michael Adam
7a7b86d3c7
s3:torture:delete: add a comment
2012-08-09 15:29:46 +02:00