summaryrefslogtreecommitdiffstats
path: root/source4/torture/raw
Commit message (Collapse)AuthorAgeFilesLines
...
* s4/torture: add test for zero byte read contention with byte range locksSteven Danneman2009-12-071-1/+154
|
* s4/torture: fix >80 column spacing issuesSteven Danneman2009-12-071-3/+4
|
* Make smbtorture4 match Windows behavior.Jeremy Allison2009-12-041-41/+33
| | | | Jeremy.
* s4 torture: Fix call to smbcli_openZachary Loafman2009-12-031-1/+1
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Make RAW-SEARCH pass against win7Zachary Loafman2009-12-031-2/+9
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Parameterize WRITE_AND_CLOSE supportZachary Loafman2009-12-031-0/+5
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Add lockread_supported based off of CAP_LOCK_AND_READZachary Loafman2009-12-032-0/+10
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Allow READ to be parameterized, add more readx testsZachary Loafman2009-12-031-2/+29
| | | | Signed-off-by: Tim Prouty <tprouty@samba.org>
* s4 torture: Add a new RAW-OPLOCK test: BATCH26Tim Prouty2009-12-031-0/+108
| | | | | | | | | | | | | | | | | | | | | | | Try a rename with a wide-open share mode on an already open file and the there is still share mode contention. For the reason why see: http://social.msdn.microsoft.com/Forums/en-US/os_fileservices/thread/3ca14dc9-da1f-4786-a8f7-a86e9903db0c Msft's anser: After further review, The reason for server to fail with sharing violation is that the windows server that executes a path-based rename request opens the file for DELETE access, but only with FILE_SHARED_READ as ShareAccess . Therefore, the existing open(frame 76), which has shared read/write/delete , is compatible with the Windows servers access mode (DELETE), but Windows servers open is not compatible with access mode in existing open. Note that it is correct to state that the logic in Windows server could have been written to allow shared read/write/delete in which case it would succeed as you mention. The behavior here is historical based on the existing implementation.
* s4 torture: Close the third handle in RAW-OPLOCK-BATCH22Tim Prouty2009-12-031-2/+5
|
* s4 torture: Convert an error to a warning in RAW-OPLOCK-BATCH22Tim Prouty2009-12-031-12/+27
| | | | | | | | | | | | | | Some servers choose to mark a client as bad if they fail an oplock break request by timing out (win7 is an example). Once the client is marked as bad, future oplock requests will timeout instantly. This causes subsequent runs of this test to fail, so rather than erroring out as a failure, a warning is printed instead. There is also a bug in w2k3 where it was incorrectly returning contending a share mode lock. It worked in XP and has been re-fixed in win7. This can also now be run against samba3.
* s4 torture: Convert to a more modern version of read in RAW-OPLOCK-BATCH4Tim Prouty2009-12-031-5/+7
|
* s4 torture: Allow some implementations to break from level1 to none with two ↵Tim Prouty2009-12-031-7/+13
| | | | breaks
* s4/torture: add multiple lock cancel testSteven Danneman2009-12-021-2/+91
| | | | | | | | | See what happens when we have multiple outstanding lock requests and we try to cancel both of them within a single LockingAndX. On Windows, it seems only the first lock in the array is cancelled, and the second is left pending. Though, this behavior goes against the MS-CIFS spec.
* s4/torture: add addition multiple lock testsSteven Danneman2009-12-021-0/+67
| | | | | | | | * test that 2 locks in a single LockAndX are transactional * test that 1 unlock and 1 lock in a single LockAndX are not transactional * test that SMB2 doesn't like mixed lock/unlock in a single PDU
* s4/torture: fix build warnings by removing unecessary constSteven Danneman2009-12-021-1/+1
|
* s4/torture: Add target functionality parameters to SMBv1 BRL testsSteven Danneman2009-12-021-6/+27
| | | | | | | | 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
* s4 torture: Change oplock to use passthrough for exclusive3/batch11Tim Prouty2009-12-011-2/+2
| | | | | | | In light of the INVALID_LEVEL that is seen for RAW_SFILEINFO_END_OF_FILE_INFO requests on a path, I'm changing these back to using the passthrough RAW_SFILEINFO_END_OF_FILE_INFORMATION to test the oplock break behavior as originally intended
* s4 torture: Update RAW-SFILEINFO-END-OF-FILE to test some additional corner ↵Tim Prouty2009-12-011-19/+104
| | | | | | | | | | cases It turns out setting the end-of-file with Trans2SetPathInfo using the snia spec's info level will attempt to open the file, enforcing share modes, but then subsequentlys fail the setpathinfo with a dos error of INVALID_LEVEL. Doing a Trans2SetFileInfo with either end-of-file info level succeeds as expected.
* s4 torture: Change RAW-SFILEINFO-END-OF-FILE to check for share modes by defaultTim Prouty2009-12-011-7/+5
| | | | | | Since the windows behavior appears to be a bug, only check for the windows-style share mode bug if target=<windows variant> is specified
* s4 torture: Move target macros to a common header instead of redefining them ↵Tim Prouty2009-12-011-5/+0
| | | | in multiple files
* s4:torture/raw/lock - Fix "discard const" warnings by introducing ↵Matthias Dieter Wallnöfer2009-12-011-3/+6
| | | | "discard_const_p"s
* s4-torture: mark s4 as doing valid lock range tests on SMBAndrew Tridgell2009-11-271-1/+2
|
* s4 torture: Change RAW-OPLOCK to use the documented version of ↵Tim Prouty2009-11-251-4/+4
| | | | | | | | | | | SET_END_OF_FILE_INFO The passtrhough version of SET_END_OF_FILE_INFO is tested in RAW-SFILEINFO-END-OF-FILE. Additionally, the first opener is changed to use SHARE_WRITE for the share mode since SET_END_OF_FILE_INFO actually writes data to the file via truncating/extending.
* s4 torture: Add two new setfileinfo testsTim Prouty2009-11-251-0/+191
| | | | | | | | | These tests expose a potential bug in winXP, win7, and likely others. There is also a bug in samba where share modes aren't being enforced where they should. For more details see: http://lists.samba.org/archive/cifs-protocol/2009-November/001130.html
* s4 torture: Split up the torture suite setup for RAW-SFILEINFOTim Prouty2009-11-252-10/+21
| | | | | | | A side effect of this change is that RAW-SFILEINFO now runs the whole suite instead of just the first test. I changed the name of the first test to RAW-SFILEINFO-BASE and changed all of the selftest scripts that call it.
* RAW-PING-PONG: use timeval_current/timeval_elapsed instead of ↵Stefan Metzmacher2009-11-241-19/+5
| | | | | | start_timer/end_timer metze
* s4:torture/raw/unlink - Remove unused variable and labelMatthias Dieter Wallnöfer2009-11-211-2/+1
|
* s4:torture/raw/samba3misc - Add "discard_const_p" macro before a stringMatthias Dieter Wallnöfer2009-11-021-1/+1
|
* Change RAW-STREAMS for s3 to allow rename over an existing stream,Jeremy Allison2009-10-291-1/+2
| | | | | | we need to file a CAR to find out why Windows gives INVALID_PARAMETER for this. Jeremy.
* s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell2009-10-2021-49/+0
| | | | This reduces compile time somewhat.
* s4-torture: fixed the streams tests for Samba4Andrew Tridgell2009-10-181-23/+29
| | | | | | In some cases we were not doing streams tests on s4 that we should. In others, we were calling tests that are known to fail on s4. Some of those are a bit puzzling.
* Fix the smbtorture4 build. root_fid is a "union smb_handle". tridgeJeremy Allison2009-10-171-1/+1
| | | | | please check. Jeremy.
* Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison2009-10-1714-307/+658
|\
| * s4-torture: fixed the default ACL for s4Andrew Tridgell2009-10-171-13/+41
| | | | | | | | | | s4 returns group and world ACEs in the default acl, based on unix permissions
| * s4-torture: minor debugging enhancementsAndrew Tridgell2009-10-171-3/+3
| |
| * s4-torture: add a special check for administrators and privilegesAndrew Tridgell2009-10-171-12/+12
| | | | | | | | lsa privileges calls don't expand groups. darn.
| * s4-smb: declare root_fid as a file handleAndrew Tridgell2009-10-1513-111/+111
| | | | | | | | | | | | In order to implement root_fid in the s4 SMB server we need to declare it as a handle type, just as for other fnum values in SMB. This required some extensive (but simple) changes in many bits of code.
| * torture: fixed socket leak in BENCH-TCON testAndrew Tridgell2009-10-121-0/+1
| | | | | | | | | | | | | | The BENCH-TCON test was leaving the socket open. A smbclie_tdis() closes the tree connection, but does not close the socket. This caused the build farm to run out of file descriptors
| * Exteded RAW-RENAME test to catch regressions in bug 6781.Jeremy Allison2009-10-071-4/+40
| | | | | | | | Jeremy.
| * s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer2009-10-021-4/+2
| |
| * s4/torture: Add two new SMB RAW-OPEN testsAravind Srinivasan2009-10-011-1/+170
| | | | | | | | | | | | | | | | | | * Add chained NTCREATEX_READX test which first tries to open/read a non-existant file failing on the open, then attempts the same operation on a file that does exist, opening and reading successfully. * Add test for open_dispositions on directories.
| * s4/torture: convert printf to torture_comment() in RAW-OPENAravind Srinivasan2009-10-011-58/+103
| | | | | | | | Allows "make test" and other harnesses to print cleaner output.
| * s4/torture: fix typo in test commentSteven Danneman2009-10-011-1/+1
| |
| * s4/torture: fix RAW-OPLOCK-STREAM1 test after commit a11bb14Steven Danneman2009-09-291-11/+12
| | | | | | | | | | We were pulling junk memory for our stream names after the reordering of the struct definition.
| * s4/torture: Allow receiving of oplock break requests in any orderSteven Danneman2009-09-291-88/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the oplock torture tests, being single threaded, required the server to return oplock break requests, and other SMB packets in a specific order for us to verify "correctness". Of course, in several cases the protocol allows the break packets, especially breaks to levelII to come back in any order. With tevent we're now able to wait for oplock breaks in the middle of a torture test. I've added a helper to do this, and modified all oplock tests to allow returning of oplock breaks in any order.
| * s4/torture: convert printf to torture_comment()Aravind Srinivasan2009-09-291-2/+4
| | | | | | | | Allows "make test" and other harnesses to print cleaner output.
* | unlink defer torture testTim Prouty2009-09-281-0/+100
|/
* s4 torture: Fix RAW-STREAMS to request more specific permissionsTim Prouty2009-09-241-1/+2
| | | | | This allows RAW-STREAMS to pass when the user isn't root on some systems that don't give full access rights to non-root users.
* s4/torture: don't mix declarations and codeAndrew Tridgell2009-09-101-22/+22
|