summaryrefslogtreecommitdiff
path: root/source4/torture/smbtorture.c
AgeCommit message (Collapse)AuthorFilesLines
2010-03-31smbtorture: Report number of available tests in a testsuite using subunit.Jelmer Vernooij1-1/+7
2010-01-10s4/torture: Parameterize output in LOCK tests based off server supportSteven Danneman1-0/+3
Two new torture parameters: * smbexit_pdu_support: if the Server supports the Exit command * range_not_locked_on_file_close: whether the server returns the NT_STATUS_RANGE_NOT_LOCKED error when a file is closed which has a pending lock request. Windows returns this error, though per the spec, this error should only be returned to an unlock request.
2009-12-07s4 torture: Add a new torture:hide_on_access_denied parameterTim Prouty1-0/+3
It appears some newer versions of windows return NT_STATUS_OBJECT_NAME_NOT_FOUND on a createfile when access is denied rather than NT_STATUS_ACCESS_DENIED. I'm not sure how this translates to directory enumeration yet, but for now make this a parameter that can be checked in the various torture tests. This also gets RAW-ACLS and SMB2-CREATE passing against win7.
2009-12-03s4 torture: Make RAW-SEARCH pass against win7Zachary Loafman1-0/+9
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Parameterize WRITE_AND_CLOSE supportZachary Loafman1-0/+1
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Allow READ to be parameterized, add more readx testsZachary Loafman1-0/+1
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4-torture: Allow the legacy DENY_FCB/DENY_DOS share modes to be ignoredZachary Loafman1-0/+2
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-12-03s4 torture: Add a few more windows target typesTim Prouty1-0/+4
2009-12-03s4 torture: Allow some implementations to break from level1 to none with two ↵Tim Prouty1-0/+2
breaks
2009-12-02s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman1-1/+6
Abstract the server requirements to pass some BRL tests. * The new default for >64bit lock tests, is that the server should return STATUS_INVALID_LOCK_RANGE. * Add parameter for targets that don't implement DENY_DOS
2009-12-01Revert "s4 torture: Allow onefs to be checked like samba3 and samba4"Tim Prouty1-1/+0
This reverts commit 98f595036e196dd61340fef0faf63ca762a25307. No longer necessary
2009-11-25s4 torture: Allow onefs to be checked like samba3 and samba4Tim Prouty1-0/+1
This is needed for the new RAW-SFILEINFO-END-OF-FILE test to differentiate what appears to be a windows bug.
2009-11-17s4/torture: Port SMBv1 Change Notify tests to SMBv2Aravind Srinivasan1-0/+2
* Ported all tests from raw/notify.c to smb2/notify.c * Parameterized the max_buffer_size so it can be set on a per-target basis. * Fixed CHECK macros to use torture_result * Created a SMB2-NOTIFY test suite
2009-11-17torture/smb2: make SMB2 BRL tests pass against W2K8R2Steven Danneman1-0/+2
The BRL tests previously based their results off several bugs in the W2K8 byte range lock code. I've fixed up the tests to pass against Win7 which has fixed these bugs, and assume that the Win7 behavior is the default. I have inverted the test behavior for >63-bit lock requests. The tests previously expected NT_STATUS_OK as their default in this case. I've changed that default to expect STATUS_INVALID_LOCK_RANGE. This may requires some changing of make test to compensate. I've also removed a few test scenarios from VALID-REQUEST in preparation of replacing them with separate tests ported from RAW-LOCK.
2009-10-22s4:smbtorture - Add "const" before "value"Matthias Dieter Wallnöfer1-1/+1
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-4/+0
This reduces compile time somewhat.
2009-10-15s4-torture: catch bad command line optionsAndrew Tridgell1-0/+3
It is annoying when you mistype a command line option and aren't told.
2009-10-06s4/torture: Add server target of OneFSSteven Danneman1-2/+5
I've added a "--target=onefs" which lists expected deviation in the OneFS SMB server implementation compared to a Windows machine. I've added this in a generic way using a list of module specific parameters. This list currently only contains the absence of SACL support but will be added to as additional server differences are defined. I'd liked to use this abstraction for defining the differences between a WinXP and Win7 server as well.
2009-07-06RAW-LOCK: fix the run against w2k3, w2k8, win7rc and samba3/4Stefan Metzmacher1-0/+2
We now allow --target=w2k8. The strange thing is that w2k8 and win7rc only do half of the timeout that was given by the client. metze
2009-06-13smbtorture: Output subunit by default.Jelmer Vernooij1-1/+1
2009-06-13smbtorture: Remove unused 'quiet' output format.Jelmer Vernooij1-36/+0
2009-02-11s4 torture: Smbtorture additions for Windows BRLZack Kirsch1-0/+2
- Adds a few new BRL tests to RAW-LOCK - Adds a "win7" target to allow torture to handle protocol changes in windows 7
2008-12-22Fix segfault when there are no tests registered.Jelmer Vernooij1-1/+1
2008-11-02Fix the build.Jelmer Vernooij1-0/+3
2008-11-01Split out torture results from torture context.Jelmer Vernooij1-3/+6
2008-10-23Move subunit ui ops out of smbtorture to the torture library.Jelmer Vernooij1-75/+1
2008-10-20Make sure prototypes are always included, make some functions static andJelmer Vernooij1-1/+1
remove some unused functions.
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-07-26smbtorture: add --extra-user optionStefan Metzmacher1-1/+13
This can we used to pass additional credentials to torture tests (it can be used multiple times. metze (This used to be commit 4d80dbfac27659046e0986a2af3d06999e2cb2f2)
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce1-1/+1
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-05-27Use new dynconfig.h location.Jelmer Vernooij1-1/+1
(This used to be commit c3f556915f09d078253e4c5539910a1cf420eeca)
2008-05-23Include test case name when reporting with subunit. This should make it ↵Jelmer Vernooij1-6/+21
possible to having a test fail against some test cases and success against other ones. (This used to be commit 0af138a85bba21a5009967e2610c898615fb536b)
2008-05-10Merge branch 'v4-0-test' into v4-0-gmake3Jelmer Vernooij1-1/+1
Conflicts: source/auth/config.mk source/auth/gensec/config.mk source/torture/smbtorture.c (This used to be commit edfd02e59bba86b977bd60848f57a614691fff7a)
2008-04-27Move subunit infrastructure code into lib/torture.Jelmer Vernooij1-1/+1
(This used to be commit 5b44d8121de7735d69e6238a1442aff034a8ebd3)
2008-04-25Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij1-1/+3
Conflicts: source/Makefile source/auth/config.mk source/auth/gensec/config.mk source/build/m4/public.m4 source/build/make/python.mk source/build/make/rules.mk source/build/smb_build/header.pm source/build/smb_build/main.pl source/build/smb_build/makefile.pm source/dsdb/config.mk source/dsdb/samdb/ldb_modules/config.mk source/kdc/config.mk source/lib/events/config.mk source/lib/events/events.c source/lib/ldb/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/util/config.mk source/libcli/smb2/config.mk source/libnet/config.mk source/librpc/config.mk source/nbt_server/config.mk source/ntptr/ntptr_base.c source/ntvfs/posix/config.mk source/ntvfs/sysdep/config.mk source/param/config.mk source/rpc_server/config.mk source/rpc_server/service_rpc.c source/scripting/ejs/config.mk source/scripting/python/config.mk source/smb_server/config.mk source/smbd/server.c source/torture/config.mk source/torture/smb2/config.mk source/wrepl_server/config.mk (This used to be commit 13bbd420681519894a4036729c43273912c9b402)
2008-04-17Remove event context tracking from the credentials struct.Jelmer Vernooij1-1/+1
(This used to be commit 4d7fc946b2ec50e774689c9036423b6feef99b8e)
2008-04-14Fix problems with event context not being the parent.Simo Sorce1-1/+3
(This used to be commit 957c4d893acf9e6db06a3fc3a4687ab6bb238635)
2008-03-08Push SOVERSION and VERSION out of perl code.Jelmer Vernooij1-1/+0
(This used to be commit 0ba8ac6a14c62ff9edfe9f0bf43b8a7406b85291)
2008-02-20Fix static module list generation for ldb.Jelmer Vernooij1-2/+0
(This used to be commit 92c1c0e9137f0845cac6cc96bf78711b6aaffe21)
2007-12-21r26540: Revert my previous commit after concerns raised by Andrew.Jelmer Vernooij1-3/+3
(This used to be commit 6ac86f8be7d9a8c5ab396a93e6d1e6819e11f173)
2007-12-21r26539: Remove unnecessary statics.Jelmer Vernooij1-3/+3
(This used to be commit e53e79eebef3ece6978f0a2b4a1ee0a0814bb5d2)
2007-12-21r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.Kai Blin1-0/+1
Fix up callers to free the memory returned, as that is needed if we use the original readline function as well. (This used to be commit c81ead1c38f417d442157b21d0d389f6a540c6f9)
2007-12-21r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij1-3/+3
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21r26355: Eliminate global_loadparm in more places.Jelmer Vernooij1-12/+12
(This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
2007-12-21r26278: Tallocify convenience table for iconv handles.Jelmer Vernooij1-3/+3
(This used to be commit ad64b3baa4a5383c603d17ae75c33083af4690bb)
2007-12-21r26260: Store loadparm context in gensec context.Jelmer Vernooij1-3/+3
(This used to be commit b9e3a4862e267be39d603fed8207a237c3d72081)
2007-12-21r26240: We now actually use torture_context pointers for more than just ↵Jelmer Vernooij1-1/+1
allocation. Fix a few places where we were passing talloc contexts that were not torture contexts. (This used to be commit 9d12fc7dc5abc82c8ad189420db1f85a89c71e4f)
2007-12-21r26238: Add a loadparm context parameter to torture_context, remove more ↵Jelmer Vernooij1-29/+42
uses of global_loadparm. (This used to be commit a33a5530545086b81a3b205aa109dff11c546926)
2007-12-21r25929: Add some help strings.Jelmer Vernooij1-4/+4
(This used to be commit ef364df37f2f00c238903bec4c8a035c05bdf366)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-2/+2
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)