summaryrefslogtreecommitdiff
path: root/source4/torture/raw
AgeCommit message (Collapse)AuthorFilesLines
2009-03-10added a test that triggers a bug in the Samba3 notify codeAndrew Tridgell1-0/+169
The Samba3 internal notify code doesn't work correctly when there is more than one tree connect to the same smbd process. This change to the RAW-NOTIFY test triggers the bug.
2009-02-27And the prize for the most pain caused in the build farm for a simpleJeremy Allison1-1/+1
typo goes to..... Tim Prouty !!!! Sorry Tim, nice test but you made a typo in passing in the size of an array so we were reading uninitialized memory :-). That took far longer than it should have to track down... (%$&#ing build system....). The build farm should now slowly go back to normal. Jeremy.
2009-02-26Add another torture test inspired by George @ Apple.Jeremy Allison1-0/+86
Inside a directory, keep a file open and then renaming the directory should fail with ACCESS_DENIED. This is connected to the test case where the close was failing due to a delayed write on a file not being able to succeed when Samba allowed the containing directory to be renamed. I will fix this in the server shortly (this should be done across connections also but with will be very hard in Samba - would need a full scan of the open file db on every directory rename) - so I will fix for the local case first (scanning local file opens inside an smbd is cheap). Jeremy.
2009-02-24Added torture test from a usage case from the Apple OS/X client.Jeremy Allison1-0/+119
Setting an attribute on a stream fnum must change the attribute on the base file. Jeremy.
2009-02-20s4 torture: Add comment to clarify testZack Kirsch1-0/+3
2009-02-20Added torture tests to RAW-NOTIFYSteven Danneman1-2/+150
* This adds a test to check the change notify behavior of the SMB server when more events have been generated than can be returned in a single change notify response. * Second test makes sure the server doesn't return notification events for changes to the watched directory itself
2009-02-18s4 torture: Add new test to create a file with a lot of streamsTim Prouty1-0/+45
This tests how streaminfo deals with large buffers smbclient seems to have problems when the buffer size approaches the max data size. Also smbclient exposes no way to specify the max data size that is sent in a trans2 request. Instead it hardcodes in a much larger max than windows uses. For these reasons this test isn't actually run, but is more of a reference for how windows handles streaminfo buffers.
2009-02-18s4 torture: Add additional streams create disposition testTim Prouty1-0/+20
2009-02-13s4 torture: Add rename test to imitate the way OS X renames filesAravind Srinivasan1-0/+83
This tests for mis-behaved case-insensitive get_real_filename implementations.
2009-02-11s4 torture: Smbtorture additions for Windows BRLZack Kirsch1-5/+566
- Adds a few new BRL tests to RAW-LOCK - Adds a "win7" target to allow torture to handle protocol changes in windows 7
2009-02-11s4 torture: Two minor fixes to smbtorture BRL tests.Zack Kirsch1-2/+0
2009-02-10s4 torture: Change nttransrename to use a normal access maskTim Prouty1-1/+1
batch9 already tests for stat-only opens
2009-02-02s4:libcliraw: s/private/private_dataStefan Metzmacher4-18/+18
metze
2009-02-02s4:torture: s/private/private_dataStefan Metzmacher2-14/+14
metze
2009-01-09s4 torture: Add new create disposition test to RAW-STREAMSTim Prouty1-1/+167
2009-01-07added support for stream renames in Samba4Andrew Tridgell1-1/+2
This allows the RAW-STREAMS test to work again. We still have some limitations though: - renames of a stream to the default stream doesn't work - delete on close handling between streams and the main file is still broken
2009-01-04s4 torture: Add more rename tests to RAW-STREAMSTim Prouty1-3/+198
There is one part of the new rename tests that passes against windows, but doesn't pass against samba3 right now. Windows allow renaming a stream to the default stream, but none of the current streams module support this. When this ability is added the check for samba can be removed from this test. This patch also adds a missing unlink in the cleanup of test_stream_delete and changes the order that the tests are run to be consistent with the physical order in the file.
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher5-19/+19
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-12-23Fix more compiler warnings.Jelmer Vernooij2-2/+1
2008-12-22Make it clearer when RAW-STREAMS is failing (don't always print names).Jeremy Allison1-4/+6
Jeremy.
2008-12-19Add torture test for bug #5986 - streams rename, so we don't regress.Jeremy Allison1-0/+98
Jeremy.
2008-12-18RAW-CHKPATH: not every server behaves like samba3...Stefan Metzmacher1-1/+1
metze
2008-12-17Samba3 smbd now passes test BATCH23 (with the fix for bug #5979), only ↵Jeremy Allison1-4/+0
BATCH22 left to fix. Jeremy.
2008-12-13Added torture test for doing an openX over a directoryJeremy Allison1-0/+47
to ensure we get the correct error message. Jeremy.
2008-12-01RAW-STREAMS: test stream renamesStefan Metzmacher1-8/+74
metze
2008-12-01RAW-STREAMS: some more tests...Stefan Metzmacher1-18/+180
metze
2008-12-01RAW-STREAMS: test valid character in the range of 0x01 => 0x7FStefan Metzmacher1-0/+69
metze
2008-12-01RAW-STREAMS: check some strange stream name combinationsStefan Metzmacher1-0/+102
metze
2008-12-01RAW-CHKPATH: test every character in the range of 0x01 => 0x7FStefan Metzmacher1-0/+81
metze
2008-11-08Remove debug code added in error.Jeremy Allison1-13/+2
Jeremy.
2008-11-08Fix a subtle logic bug in the adaption of se_create_child_secdesc(), pass ↵Jeremy Allison1-5/+18
RAW-ACL inheritance tests. Only access masks for SD get/set left to fix. Jeremy.
2008-11-06Start factoring out the inheritance differences.Jeremy Allison1-1/+3
Jeremy.
2008-11-04Pass all of RAW-ACLS except for inheritence. Working on that next.Jeremy Allison1-1/+1
Jeremy.
2008-11-04Trigger (and fix) a bug in Samba3 making smbd an infinite data sourceVolker Lendecke2-0/+81
A deferred open directly followed by a ulogoffX makes smbd3 send an infinite stream of ERRinvuid replies :-(
2008-11-03Be more verbose about a directory ACL error.Jeremy Allison1-0/+5
Jeremy.
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij5-2/+8
Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
2008-11-02Fix the build.Jelmer Vernooij4-4/+2
2008-11-02Add gensec_settings structure. This wraps loadparm_context for now, butJelmer Vernooij2-2/+8
should in the future only contain some settings required for gensec.
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij3-0/+5
2008-10-28RAW-ACLS: test the behavior of NULL DACL vs. empty DACLStefan Metzmacher1-0/+244
This is based on the torture test attached to bug 4284 by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>. metze
2008-10-24Remove unused include param/param.h.Jelmer Vernooij9-9/+0
2008-10-24Eliminate another instance of global_loadparm.Jelmer Vernooij4-2/+7
2008-10-14Add the oplock-batch25 test showing that a writeattr does not break an oplockVolker Lendecke1-0/+70
Probably that's already somewhere else, but I did not find it.
2008-10-10Use const.Jelmer Vernooij1-5/+5
2008-09-30Use a getatr instead to make things cleaner.root1-2/+4
Jeremy.
2008-09-30Add in test name visible on the wire or in debug logs so you can see when ↵Jeremy Allison1-16/+17
particular tests start. Jeremy.
2008-09-30Cope with API changes.Jelmer Vernooij2-3/+6
2008-09-30Pass session options around; saves another use of global_loadparm.Jelmer Vernooij3-0/+3
2008-09-30Remove global_loadparm instance.Jelmer Vernooij1-1/+1
2008-09-30Pass options struct into session initialization functions rather thanJelmer Vernooij2-9/+22
using global_loadparm.