Tim Prouty
a65f1b9655
s4 torture: Add new create disposition test to RAW-STREAMS
2009-01-09 11:45:31 -08:00
Andrew Tridgell
c81863e868
added support for stream renames in Samba4
...
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-07 16:46:34 +11:00
Tim Prouty
2ddaebb2e1
s4 torture: Add more rename tests to RAW-STREAMS
...
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.
2009-01-04 19:31:30 -08:00
Stefan Metzmacher
183c379fe5
s4:lib/tevent: rename structs
...
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-29 20:46:40 +01:00
Jelmer Vernooij
dcc4081f75
Fix more compiler warnings.
2008-12-23 23:22:57 +01:00
Jeremy Allison
f1389a3950
Make it clearer when RAW-STREAMS is failing (don't always print names).
...
Jeremy.
2008-12-22 11:58:38 -08:00
Jeremy Allison
fcadf47a15
Add torture test for bug #5986 - streams rename, so we don't regress.
...
Jeremy.
2008-12-19 18:01:26 -08:00
Stefan Metzmacher
0df3036730
RAW-CHKPATH: not every server behaves like samba3...
...
metze
2008-12-18 13:31:41 +01:00
Jeremy Allison
55620b4e3c
Samba3 smbd now passes test BATCH23 (with the fix for bug #5979 ), only BATCH22 left to fix.
...
Jeremy.
2008-12-17 17:30:18 -08:00
Jeremy Allison
3c5c3aaa74
Added torture test for doing an openX over a directory
...
to ensure we get the correct error message.
Jeremy.
2008-12-13 13:10:48 -08:00
Stefan Metzmacher
db369b5567
RAW-STREAMS: test stream renames
...
metze
2008-12-01 14:45:06 -08:00
Stefan Metzmacher
540e6376cc
RAW-STREAMS: some more tests...
...
metze
2008-12-01 14:44:42 -08:00
Stefan Metzmacher
87bb9e178f
RAW-STREAMS: test valid character in the range of 0x01 => 0x7F
...
metze
2008-12-01 14:43:58 -08:00
Stefan Metzmacher
b25d69e3a8
RAW-STREAMS: check some strange stream name combinations
...
metze
2008-12-01 14:43:23 -08:00
Stefan Metzmacher
9519d5dd71
RAW-CHKPATH: test every character in the range of 0x01 => 0x7F
...
metze
2008-12-01 14:42:48 -08:00
Jeremy Allison
d64caaf593
Remove debug code added in error.
...
Jeremy.
2008-11-08 23:06:21 -08:00
Jeremy Allison
813bf8b4f4
Fix a subtle logic bug in the adaption of se_create_child_secdesc(), pass RAW-ACL inheritance tests. Only access masks for SD get/set left to fix.
...
Jeremy.
2008-11-08 22:57:57 -08:00
Jeremy Allison
87f563c230
Start factoring out the inheritance differences.
...
Jeremy.
2008-11-06 01:58:56 -08:00
Jeremy Allison
bfc59f63f3
Pass all of RAW-ACLS except for inheritence. Working on that next.
...
Jeremy.
2008-11-04 01:34:08 -08:00
Volker Lendecke
0953688012
Trigger (and fix) a bug in Samba3 making smbd an infinite data source
...
A deferred open directly followed by a ulogoffX makes smbd3 send an infinite
stream of ERRinvuid replies :-(
2008-11-04 09:41:15 +01:00
Jeremy Allison
d98e48c7cb
Be more verbose about a directory ACL error.
...
Jeremy.
2008-11-03 23:54:05 -08:00
Jelmer Vernooij
ff36c52d8c
Remove another use of global_loadparm.
...
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-02 16:07:28 +01:00
Jelmer Vernooij
3ebc574be4
Fix the build.
2008-11-02 02:30:21 +01:00
Jelmer Vernooij
b034c519f5
Add gensec_settings structure. This wraps loadparm_context for now, but
...
should in the future only contain some settings required for gensec.
2008-11-02 02:05:48 +01:00
Jelmer Vernooij
7a6190e9a7
Remove another use of global_loadparm.
2008-11-02 01:03:26 +01:00
Stefan Metzmacher
67c5aca1e8
RAW-ACLS: test the behavior of NULL DACL vs. empty DACL
...
This is based on the torture test attached to bug 4284
by Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>.
metze
2008-10-28 17:14:53 +01:00
Jelmer Vernooij
23302413b3
Remove unused include param/param.h.
2008-10-24 16:37:56 +02:00
Jelmer Vernooij
8b06312f7e
Eliminate another instance of global_loadparm.
2008-10-24 13:13:27 +02:00
Volker Lendecke
e037305187
Add the oplock-batch25 test showing that a writeattr does not break an oplock
...
Probably that's already somewhere else, but I did not find it.
2008-10-14 13:30:13 +02:00
Jelmer Vernooij
63291018df
Use const.
2008-10-10 15:00:35 +02:00
root
687ce0b60a
Use a getatr instead to make things cleaner.
...
Jeremy.
2008-09-30 12:44:24 -07:00
Jeremy Allison
a238f17e27
Add in test name visible on the wire or in debug logs so you can see when particular tests start.
...
Jeremy.
2008-09-30 12:33:00 -07:00
Jelmer Vernooij
235b729309
Cope with API changes.
2008-09-30 03:07:08 +02:00
Jelmer Vernooij
181ee01da6
Pass session options around; saves another use of global_loadparm.
2008-09-30 02:47:19 +02:00
Jelmer Vernooij
4e8cb60222
Remove global_loadparm instance.
2008-09-30 02:11:55 +02:00
Jelmer Vernooij
c8a19f0b83
Pass options struct into session initialization functions rather than
...
using global_loadparm.
2008-09-30 01:29:53 +02:00
Jeremy Allison
857609732f
Add test to show you can open for delete a readonly file.
...
Jeremy.
2008-09-26 15:20:27 -07:00
Andrew Tridgell
a22b9d6485
fixed the data in SAVEFILE op in RAW-OFFLINE
...
(This used to be commit 3441ea5df5
)
2008-08-24 17:42:29 +10:00
Andrew Tridgell
b030743d74
show the bad data in RAW-OFFLINE
...
also show the worst case latencies so far, matching tsm_torture
(This used to be commit 5859bb337c
)
2008-08-24 17:38:43 +10:00
Andrew Tridgell
3efd7d2262
don't use zero data for the first file in RAW-OFFLINE
...
the most likely bugs in HSM involve zero data, due to the
dm_punch_hole() request
(This used to be commit 330ab956ea
)
2008-08-23 11:54:02 +10:00
Stefan Metzmacher
c1c6c1b609
RAW-OPEN: be more strict in create_option checking
...
metze
(This used to be commit d548f5dee5
)
2008-08-14 15:14:53 +02:00
Andrew Tridgell
336f6810ce
expanded the SMB2-CREATE and RAW-OPEN tests to explore more of how the
...
create options fields are supposed to work
(This used to be commit 0576875ecc
)
2008-08-14 17:26:30 +10:00
Volker Lendecke
853ef0d5ef
Fix RAW-OPEN against Samba3
...
This test assumed that fnums are recycled immediately after a close. This is
not true on Samba 3.
Andrew B., I assume this is just a bug in the test. Assuming recycled fnums
might be true on Windows and Samba 4, but I don't think we should assume this
everywhere.
Volker
(This used to be commit a4c3a59d47
)
2008-07-19 12:47:31 +02:00
Andrew Bartlett
853194c308
More 'must be ignored' options from the MS-SMB doc.
...
Also in particular the 'sync' flags (which Samba has traditionally
ignored).
Thanks to Olivier Salamin <olivier.salamin@gmail.com> for pointing out
more flags that needed to be handled.
Andrew Bartlett
(This used to be commit 370bb39cd7
)
2008-07-18 18:40:19 +10:00
Andrew Bartlett
e92125e631
Ignore and handle more NT Create & X options.
...
The MS-SMB document explains that some of these options should be
ignored. The test proves it.
/* Must be ignored by the server, per MS-SMB 2.2.8 */
/* Must be ignored by the server, per MS-SMB 2.2.8 */
If we implement HSM in samba4 (likely) we should honour this bit.
/* Don't pull this file off tape in a HSM system */
Andrew Bartlett
(This used to be commit 502739ff90
)
2008-07-16 14:00:18 +10:00
Andrew Tridgell
cf4899cf4c
check use of mincnt past EOF in SMB
...
(This used to be commit 763c9d344f
)
2008-05-26 15:00:56 +10:00
Stefan Metzmacher
2f653e814a
RAW-STREAMS: better test the bahavior of streams on directories
...
Note: this has a samba3 specific code path, which we should fixed.
metze
(This used to be commit 5c5c866838
)
2008-05-23 09:55:16 +02:00
James Peach
9a975a868e
smbtorture: Add RAW-BENCH-TCON benchmark.
...
Add a simple test to benchmark the rate at which a server can accept
new tree connections. You can tune the length of time to run the
benchmark for and the number of parallel connections to make.
(This used to be commit ea3f4b9305
)
2008-05-20 11:35:32 -07:00
Jelmer Vernooij
1e973565b6
Move subunit infrastructure code into lib/torture.
...
(This used to be commit 5b44d8121d
)
2008-04-27 14:02:46 +01:00
Simo Sorce
7f464f0628
Fix more failing tests to pass the event context.
...
(This used to be commit d6c5d8baf0
)
2008-04-22 16:40:44 -04:00
Simo Sorce
c8eb82816f
Fix build
...
(This used to be commit c16d1d430a
)
2008-04-21 19:53:15 -04:00
Simo Sorce
4e83011f72
Remove more event_context_init() uses from function calls within deep down the code.
...
Make sure we pass around the event_context where we need it instead.
All test but a few python ones fail. Jelmer promised to fix them.
(This used to be commit 3045d39162
)
2008-04-21 18:12:33 -04:00
James Peach
8a3e3391fb
smbtorture: Add RAW-BENCH-LOOKUP micro-benchmark.
...
This test samples the lookup rate for a non-existant filename in a
directory, while varying the number of files in the directory. The
lookup rate should continue to approximate the lookup rate for the
empty directory case.
(This used to be commit ca7e4d9166
)
2008-04-21 15:09:43 -07:00
Jelmer Vernooij
9de0594175
Fix the build.
...
(This used to be commit 40b7b0e503
)
2008-04-17 01:30:21 +02:00
Jelmer Vernooij
06d06c6c94
Use provided event context rather than looking for it.
...
(This used to be commit fd0bb96ace
)
2008-04-17 01:19:20 +02:00
Jelmer Vernooij
1efbd5fbf6
Remove event context tracking from the credentials struct.
...
(This used to be commit 4d7fc946b2
)
2008-04-17 01:03:18 +02:00
Jelmer Vernooij
4b9c7df9b7
Avoid event_find_context when a event context is already available.
...
(This used to be commit 4ca264679e
)
2008-04-16 23:06:27 +02:00
Jelmer Vernooij
afe3e8172d
Install public header files again and include required prototypes.
...
(This used to be commit 47ffbbf674
)
2008-04-02 04:53:27 +02:00
Michael Adam
195853464a
smbtorture: fix typos in RAW-OPLOCK output.
...
Michael
(This used to be commit 9fa4b53b61
)
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
3530099cf2
RAW-BENCH-OPEN: avoid sync calls before the main loop
...
On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.
Now we setup the first opens, but send them all together
when entering the main loop.
metze
(This used to be commit 3f2d12c61e
)
2008-03-17 16:06:07 +01:00
Stefan Metzmacher
b65ad8966a
RAW-BENCH-OPEN: fix the output and calculate the total operations
...
metze
(This used to be commit c84e3abae9
)
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
23ab56cd80
RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
...
metze
(This used to be commit cd1b8efc5d
)
2008-03-12 15:13:28 +01:00
Stefan Metzmacher
2801b6a522
RAW-STREAMS: do a exit on the session after each sub tests
...
metze
(This used to be commit 3f7fef8b8c
)
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
6e9d25157d
RAW-STREAMS: do what the comments say
...
metze
(This used to be commit eb68a8ed4f
)
2008-03-12 14:23:30 +01:00
Jeremy Allison
799cfe0d76
Added test_nttransrename() to test Metze's new code.
...
Jeremy.
(This used to be commit 4556fafede
)
2008-03-11 15:27:08 -07:00
Stefan Metzmacher
fdd7f68660
RAW-SEARCH: skip RESUME_KEY tests against samba3
...
metze
(This used to be commit ca5b377471
)
2008-03-11 21:59:16 +01:00
Jeremy Allison
333870d5a0
Samba3.2 now passes a lot more tests - remove the S3 specific
...
exemptions.
Jeremy.
(This used to be commit a70719d579
)
2008-03-11 13:39:04 -07:00
Jeremy Allison
fe3316431e
Samba3 now passes the test_raw_oplock_exclusive3 test.
...
Jeremy.
(This used to be commit b2007956aa
)
2008-03-11 12:37:20 -07:00
Jeremy Allison
de4a495438
Test trans2 renames with oplocks. It looks like trans2 renames
...
ignore share modes and oplock breaks :-(.
Jeremy.
(This used to be commit a8a5339cf2
)
2008-03-11 10:21:09 -07:00
Michael Adam
97a272a4bf
torture: fix escape sequence in test_chkpath().
...
Michael
(This used to be commit d92597d29c
)
2008-03-07 15:00:37 +01:00
Stefan Metzmacher
e24d47ec2e
RAW-OPLOCK: rename _ack_to_levelII() -> ack_to_given()
...
Also improve the output.
metze
(This used to be commit d0b641a9ee
)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
4bfc32b160
RAW-OPLOCK: add BATCH24 test another case with a connection with no CAP_LEVEL_II_OPLOCKS
...
metze
(This used to be commit 4fb2c9fb1f
)
2008-03-06 17:19:43 +01:00
Stefan Metzmacher
80104efb58
RAW-OPLOCK: add BATCH23 and test with a connection with no CAP_LEVEL_II_OPLOCKS
...
metze
(This used to be commit 2192d6d2bd
)
2008-03-06 17:19:36 +01:00
Stefan Metzmacher
bc9bb918a1
RAW-OPLOCK: remove unused vars
...
metze
(This used to be commit 0905f3ebd1
)
2008-03-06 17:19:34 +01:00
Stefan Metzmacher
8ff6647d29
RAW-OPLOCK: add BATCH22 and test the behavior of oplock break timeouts
...
metze
(This used to be commit c459885898
)
2008-03-04 14:40:56 +01:00
Stefan Metzmacher
13764eb02d
RAW-OPLOCK: add BATCH21: a self write with an oplock doesn't break it
...
metze
(This used to be commit a5476ee41c
)
2008-03-04 14:40:51 +01:00
Stefan Metzmacher
e0081626ec
RAW-SFILEINFO-RENAME: test renaming of directories by path and handle
...
metze
(This used to be commit ce2b7cec10
)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
863e65e955
RAW-SFILEINFO-RENAME: test renaming by path while a handle is open on a file
...
metze
(This used to be commit 6c0395d4d9
)
2008-02-29 15:17:53 +01:00
Stefan Metzmacher
09173244d2
RAW-CHKPATH: also use qpathinfo NAME_INFO and check the returned name
...
Also add some more test combinations.
metze
(This used to be commit 09985b061a
)
2008-02-29 15:17:52 +01:00
Jelmer Vernooij
73138c1198
raw-qfsinfo: Convert to new torture API.
...
(This used to be commit 6ded77b777
)
2008-02-29 00:58:47 +01:00
Jelmer Vernooij
2946a11dc7
Remove use of global_loadparm.
...
(This used to be commit 4472d7e1e4
)
2008-02-28 20:30:03 +01:00
Stefan Metzmacher
6d184c70ca
RAW-OPLOCK: be more strict with share modes against windows and samba4
...
But still allow samba3 behavior.
metze
(This used to be commit a0decdf63e
)
2008-02-27 16:33:33 +01:00
Stefan Metzmacher
202ffb47d7
RAW-OPLOCK: use torture_result(TORTURE_FAIL) so that the knownfailures file work
...
metze
(This used to be commit 656011add3
)
2008-02-27 16:33:32 +01:00
Stefan Metzmacher
a9e6ed7d7b
RAW-OPLOCK: add BATCH20 test renaming via setpathinfo() and setfileinfo()
...
metze
(This used to be commit b66c246c5d
)
2008-02-27 16:33:31 +01:00
Stefan Metzmacher
7ad5e82388
RAW-OPLOCK: add BATCH19 test renaming via setpathinfo
...
This is really strange as, it seems to complete ignore
oplocks and share modes and doesn't match the behavior
of RENAME and NTRENAME.
metze
(This used to be commit 7bac95db5e
)
2008-02-27 16:33:30 +01:00
Stefan Metzmacher
1e94642723
RAW-OPLOCK: add BATCH18 test a ntrename with FLAG_RENAME
...
metze
(This used to be commit 22c35d9ee7
)
2008-02-27 16:33:30 +01:00
Stefan Metzmacher
852361b21a
RAW-OPLOCK: add BATCH17 test rename on a file with oplock
...
metze
(This used to be commit 32f138d4b3
)
2008-02-27 16:33:29 +01:00
Stefan Metzmacher
bc737332e6
RAW-OPLOCK: add EXCLISIVE6 test a rename on a file with an oplock
...
metze
(This used to be commit 3886a5dea2
)
2008-02-27 16:33:28 +01:00
Stefan Metzmacher
dcb43c6dbb
RAW-OPLOCK: add EXCLUSIVE5 to test attribute only with OVERWRITE_IF
...
metze
(This used to be commit 06547036e6
)
2008-02-27 16:33:19 +01:00
Stefan Metzmacher
8f4147ce5d
RAW-OPLOCK: add BATCH16 and tests attribute only with OVERWRITE_IF
...
metze
(This used to be commit 2453628623
)
2008-02-27 16:33:16 +01:00
Stefan Metzmacher
3df754a7a8
RAW-OPLOCK: add EXCLUSIVE4 a attribute only open doesn't break an exclusive oplock
...
metze
(This used to be commit b22587a5db
)
2008-02-27 16:32:35 +01:00
Stefan Metzmacher
c7b113beaf
RAW-OPLOCK: add EXCLUSIVE3
...
This tests that a setpathinfo EOF breaks
an exclusive oplock to none.
metze
(This used to be commit fd5b4b3d4e
)
2008-02-27 16:32:09 +01:00
Stefan Metzmacher
9bf7c3912a
RAW-OPLOCK: add EXCLUSIVE2
...
Exclusive oplocks break to LEVEL2
metze
(This used to be commit 1cddadb052
)
2008-02-27 16:32:09 +01:00
Stefan Metzmacher
ef892a398b
RAW-OPLOCK: rename test (NORMAL => EXCLUSIVE1)
...
metze
(This used to be commit 546536dde0
)
2008-02-27 16:32:08 +01:00
Stefan Metzmacher
9d6ce7efaa
RAW-OPLOCK: BATCH15: make sure a qpathinfo doesn't break batch oplocks
...
metze
(This used to be commit 4d17d44d3f
)
2008-02-26 14:52:50 +01:00
Stefan Metzmacher
5dc8d3ed8b
RAW-OPLOCK: remove unused var
...
(This used to be commit 6820da4482
)
2008-02-25 07:54:25 +01:00
Stefan Metzmacher
a64bd41601
RAW-OPLOCK: fix typo (send oplock releases on the correct connection)
...
metze
(This used to be commit f6ecf59c75
)
2008-02-25 07:54:24 +01:00
Jelmer Vernooij
921b176484
Remove more uses of global_loadparm.
...
(This used to be commit 47d05ecf6f
)
2008-02-21 14:50:57 +01:00
Andrew Tridgell
e939659e43
make the multiplier in the RAW-OFFLINE test settable
...
(This used to be commit f4b363d7a6
)
2008-02-07 23:05:44 +11:00
Andrew Tridgell
8ef7ddbf89
added latency reporting
...
(This used to be commit f0ffbb8e19
)
2008-01-25 17:27:36 +11:00
Andrew Tridgell
01a0aa4fd1
this is in seconds
...
(This used to be commit 019dd9a3d7
)
2008-01-25 17:27:17 +11:00
Andrew Tridgell
3249f4f84e
more useful output
...
(This used to be commit 033cab6546
)
2008-01-25 15:00:45 +11:00
Andrew Tridgell
4e4e7dbff8
added a offline file torture test BASE-OFFLINE
...
(This used to be commit d4b26fb2a3
)
2008-01-25 15:00:11 +11:00
Volker Lendecke
66871f9950
Add an exception for S3
...
Doing this correctly would involve a create_file call for qpathinfo
(This used to be commit da9a5b571e
)
2008-01-20 15:55:33 +01:00
Jelmer Vernooij
dcc282590b
r26654: libcli/smb_composite: Rather than specifying each of the gazillion options for SMB individually, just specify the smbcli_options struct.
...
(This used to be commit 8a97886e24
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
425732f688
r26651: libsmb: Allow specifying signing policy from higher up.
...
The number of arguments is getting a bit excessive now, so it
probably makes sense to pass in the smbcli_options struct rather than
all members individually and add a convenience function for obtaining a
smbcli_options struct from a loadparm context.
(This used to be commit 9f64213463
)
2008-01-03 12:33:36 -06:00
Jelmer Vernooij
5d0e4f2147
r26650: torture/raw: Fix warnings in lockbench/openbench.
...
I'm surprised this didn't cause any breakages. We should probably run (a subset of) RAW-LOCKBENCH + RAW-OPENBENCH in make test to make sure they don't regress.
(This used to be commit 9bea9c0c4f
)
2008-01-03 12:33:35 -06:00
Jelmer Vernooij
969b8579c7
r26646: libcli/smb_composite: Allow specifying SMB parameters in smb_composite_connect structure. AFAIK no global variables will now be used when doing RPC client connections.
...
(This used to be commit 0ef75e4e3c
)
2008-01-02 12:48:04 -06:00
Jelmer Vernooij
771b347f9b
r26644: Janitorial: Pass resolve_context explicitly to various SMB functions, should help fix the build for OpenChange.
...
(This used to be commit 385ffe4f4c
)
2008-01-02 12:48:03 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
4b0199a549
r26409: Pass smb ports along.
...
(This used to be commit 2833f320de
)
2007-12-21 05:49:42 +01:00
Jelmer Vernooij
ab69eb8d89
r26250: Avoid global_loadparm in a couple more places.
...
(This used to be commit 2c6b755309
)
2007-12-21 05:47:28 +01:00
Jelmer Vernooij
0a2f1a46a0
r26249: Remove a couple more uses of global_loadparm.
...
(This used to be commit 80a6120050
)
2007-12-21 05:47:27 +01:00
Jelmer Vernooij
bbdfbf8d9d
r26238: Add a loadparm context parameter to torture_context, remove more uses of global_loadparm.
...
(This used to be commit a33a553054
)
2007-12-21 05:47:20 +01:00
Volker Lendecke
0c5443cbe5
r26184: Streams are tricky....
...
(This used to be commit f8c4a5ccc6
)
2007-12-21 05:46:38 +01:00
Volker Lendecke
f6d91ea2e2
r26104: Revert 26103 -- breaks make test
...
(This used to be commit d1a220aee3
)
2007-12-21 05:46:05 +01:00
Volker Lendecke
d588d3e3ad
r26103: Leave streams around to unlink
...
Add test case for stream name case insensitity
(This used to be commit d81bb50e10
)
2007-12-21 05:46:04 +01:00
Volker Lendecke
39dec5ee66
r26029: In RAW-STREAMS test listing of streams
...
(This used to be commit 8dbe10be30
)
2007-12-21 05:45:46 +01:00
Stefan Metzmacher
a67d2e0a83
r25925: torture/raw: fix sending unitialized bytes in RAW-SAMBA3ROOTDIRFID
...
(found by make valgrindtest)
metze
(This used to be commit e95c2ffe00
)
2007-12-21 05:45:05 +01:00
Günther Deschner
f2002541ce
r25803: Make our security descriptor acl manipulation methods more generic so that we
...
can add and delete ACEs for SACLs as well as for DACLs.
Guenther
(This used to be commit 947fff9941
)
2007-12-21 05:44:06 +01:00
Andrew Tridgell
ab52f9314d
r25689: test with a non-zero size file
...
(This used to be commit 2a6713aa23
)
2007-12-21 05:43:14 +01:00
Günther Deschner
a6c4b9d179
r25607: Allow to set security descriptor type flags at creation time with
...
security_descriptor_create().
Guenther
(This used to be commit 7dd0d28d25
)
2007-12-21 05:42:51 +01:00
Jelmer Vernooij
2151cde580
r25554: Convert last instances of BOOL, True and False to the standard types.
...
(This used to be commit 566aa14139
)
2007-10-10 15:07:55 -05:00
Jelmer Vernooij
60a1046c5c
r25430: Add the loadparm context to all parametric options.
...
(This used to be commit fd697d77c9
)
2007-10-10 15:07:31 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
3048e9ad65
r25392: Add loadparm context as argument in a couple more places.
...
(This used to be commit c62f51cc28
)
2007-10-10 15:07:24 -05:00
Volker Lendecke
5f280af012
r25310: Make sure we do not regress on r25309
...
(This used to be commit 4eb0ec51aa
)
2007-10-10 15:07:12 -05:00
Volker Lendecke
70b33dc533
r25296: Apply patch by Elrond <elrond+sambaclassic@samba-tng.org>: Put
...
__location__ into a few printfs.
Thanks,
Volker
(This used to be commit b0e323a09e
)
2007-10-10 15:07:08 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ce0ff008b5
r25034: Remove unused variables.
...
(This used to be commit ec1c68e3a6
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Jelmer Vernooij
cd962355ab
r25000: Fix some more C++ compatibility warnings.
...
(This used to be commit 08bb1ef643
)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
6cf69fee18
r24994: Fix some C++ warnings.
...
(This used to be commit 925abf74fa
)
2007-10-10 15:05:26 -05:00
Jelmer Vernooij
e5470270ba
r24883: Use torture API.
...
(This used to be commit 9935aac0f3
)
2007-10-10 15:03:27 -05:00
Jelmer Vernooij
ac2a701483
r24882: Use the torture API in BASE-CHARSET.
...
(This used to be commit 93910d92cd
)
2007-10-10 15:03:27 -05:00
Volker Lendecke
afe87d6cfc
r24798: RAW-SAMBA3POSIXTIMEDLOCK
...
This adds the torture:localdir option, smbtorture expects the share to actually
reside in this directory. This might open up more solid posix vs cifs tests.
(This used to be commit b0a40dd277
)
2007-10-10 15:03:12 -05:00
Ronnie Sahlberg
2e5e9411d4
r24768: redo the pingpong torture using sync functions to make the code simpler
...
(This used to be commit b4a6a4c129
)
2007-10-10 15:03:07 -05:00
Ronnie Sahlberg
c0641b4728
r24767: add a torture test that performs "ping-pong" that works the same way as
...
ping-pong.c
this is a manual test and only makes sense to be used in parallell with
the real ping-pong.c tool
(This used to be commit b58677fa74
)
2007-10-10 15:03:07 -05:00
Andrew Tridgell
aaf7df0597
r24765: added a RAW-HOLD-OPLOCK test. This is a manual test, meant to be used
...
to test the interaction of oplocks with local filesystem or NFS
access. You start it, then manually access the 4 files via another
mechanism (such as a shell) and see what oplock breaks you get
(This used to be commit 4c3e456426
)
2007-10-10 15:03:06 -05:00
Jelmer Vernooij
748dcc3376
r24758: More use of torture API.
...
(This used to be commit e6f571227e
)
2007-10-10 15:03:04 -05:00
Jelmer Vernooij
0e6773525f
r24741: More use of the torture API.
...
(This used to be commit de05c3651a
)
2007-10-10 15:03:02 -05:00
Jelmer Vernooij
919aa6b27e
r24735: Use torture API in more places.
...
(This used to be commit 1319d88c09
)
2007-10-10 15:03:00 -05:00
Jelmer Vernooij
2fefa818a9
r24728: Use more stock torture functions.
...
(This used to be commit da3a7ee407
)
2007-10-10 15:02:58 -05:00
Andrew Bartlett
8794ffbc61
r24695: Now the Samba4 passes this test, remove the skip...
...
Andrew Bartlett
(This used to be commit 771affed88
)
2007-10-10 15:02:48 -05:00
Jelmer Vernooij
f96b1778a4
r24674: Make sure results are always on a new line, fix typo in test name.
...
(This used to be commit 40c1635b39
)
2007-10-10 15:02:37 -05:00
Jelmer Vernooij
d981c69a18
r24670: Use torture functions for settings.
...
(This used to be commit a690667630
)
2007-10-10 15:02:36 -05:00
Andrew Tridgell
f7f2323e47
r24588: use the right type
...
(This used to be commit 710f6dc17f
)
2007-10-10 15:02:22 -05:00
Andrew Tridgell
51aced3dc8
r24587: the elements of the array are not talloc pointers
...
(This used to be commit 2ebf00dc42
)
2007-10-10 15:02:21 -05:00
Andrew Tridgell
2d6e6ebddc
r24586: same bug in RAW-BENCH-OPEN
...
(This used to be commit 3bd35bb8ab
)
2007-10-10 15:02:20 -05:00
Andrew Tridgell
489d23e808
r24585: put in the right state variable when doing a SMBecho - this caused the
...
wrong connection to reconnect on a SMBecho failure
(This used to be commit c61415b05d
)
2007-10-10 15:02:20 -05:00
Volker Lendecke
d9b9acd232
r24570: Attempt to fix make test
...
Samba4 seems not to survive the newly added tests
(This used to be commit b8a8a81ffe
)
2007-10-10 15:02:18 -05:00
Volker Lendecke
7e43f973c4
r24569: Add two tests
...
A subtest for rename to check if case-changing renames work
A test that exposes the case insensitivity unix_convert bug
(This used to be commit 786706322a
)
2007-10-10 15:02:17 -05:00
Volker Lendecke
fb19fe7a51
r24529: Against samba3, treat EAS_NOT_SUPPORTED as acceptable for t2open
...
Many hosts in the build farm don't have EA support
(This used to be commit 3cca299c72
)
2007-10-10 15:02:11 -05:00
Jeremy Allison
103b1ead98
r24478: Check that NTrename also maps NT_STATUS_OBJECT_NAME_COLLISION
...
to ERRDOS, ERRrename.
Jeremy.
(This used to be commit 7cc8be50b6
)
2007-10-10 15:01:55 -05:00
Jeremy Allison
255c24eb8f
r24477: Add a rename test to prove that NT_STATUS_OBJECT_NAME_COLLISION
...
is mapped to ERRDOS, ERRrename on a rename error, but mapped
to ERRDOS, ERRfilexists on an open error.
Jeremy.
(This used to be commit e634c627b1
)
2007-10-10 15:01:55 -05:00
Jeremy Allison
e42ff21109
r24473: Prove this is also the same for NTcreateX. It's pretty much
...
guarenteed now that NT_STATUS_OBJECT_NAME_COLLISION should
map to ERRDOS, ERRfilexists on all open calls at least.
Jeremy.
(This used to be commit 125590e008
)
2007-10-10 15:01:55 -05:00
Jeremy Allison
a97fa8124f
r24469: Start adding in the torture tests that prove that NT_STATUS_OBJECT_NAME_COLLISION
...
should map to ERRDOS, ERRfilexists not ERRDOS, ERRrename as it currently does in
the errormap. This will break the build farm against Samba3 until I start adding
in the hand mapping from the above. Tridge - we may need to reconsider the mapping
here.
Jeremy.
(This used to be commit 74a871ce70
)
2007-10-10 15:01:54 -05:00
Volker Lendecke
890c42045d
r24041: After metze's ack, check in torture_comment from Zack Krisch
...
<zack.kirsch@isilon.com>
(This used to be commit b1148b7ab8
)
2007-10-10 15:01:18 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Jeremy Allison
4f2fe8e947
r23734: Add a test to prove tridge's theory that the mask, once set
...
on an open directory handle, is never changed. (He's right btw :-).
Jeremy.
(This used to be commit bf9242ad45
)
2007-10-10 14:59:09 -05:00
Volker Lendecke
a7601c9829
r23492: Also activate the split out test...
...
(This used to be commit a3cb4bcae7
)
2007-10-10 14:53:22 -05:00
Volker Lendecke
25abee0505
r23491: Split out the RENAME trans2 call into a separate test
...
(This used to be commit 80244f1ee6
)
2007-10-10 14:53:22 -05:00
Andrew Tridgell
95a3ca53e5
r23182: fixed valgrind error
...
(This used to be commit fae416cbe8
)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
aeac4f4800
r23181: prevent attempts to reopen the connection twice at the same time
...
(This used to be commit a25c27dbae
)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
9b95f57530
r23180: auto-reconnect on both NT_STATUS_END_OF_FILE and NT_STATUS_LOCAL_DISCONNECT
...
(This used to be commit 32a6c268a7
)
2007-10-10 14:53:01 -05:00
Andrew Tridgell
12d9b33ed6
r23152: fixed some async retry issues in openbench
...
(This used to be commit 08eeaff079
)
2007-10-10 14:52:58 -05:00
Stefan Metzmacher
e3408e6160
r23144: splitup RAW-OPLOCK into small units
...
metze
(This used to be commit 0cfe152cb1
)
2007-10-10 14:52:57 -05:00
Andrew Tridgell
d142f4b0f2
r23143: error found by valgrind
...
(This used to be commit 268a26131e
)
2007-10-10 14:52:56 -05:00
Andrew Tridgell
a085d682e6
r23142: added error checking and reconnect on echo replies
...
(This used to be commit 0d47efe6d6
)
2007-10-10 14:52:56 -05:00
Andrew Tridgell
d79225c94a
r23140: send send echos while disconnected
...
(This used to be commit 233172a9f7
)
2007-10-10 14:52:55 -05:00
Andrew Tridgell
18a4d22880
r23139: use echo operations once a second in lockbench and openbench to ensure
...
we detect IP takeover on servers
(This used to be commit b5292a25ed
)
2007-10-10 14:52:55 -05:00
Andrew Tridgell
5bb0dcd051
r23062: make sure one node doesn't get ahead of the others at the start
...
(This used to be commit 6ab736f530
)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
9e1c88897c
r23061: keep the RAW-BENCH-OPEN test balanced
...
(This used to be commit 453d6f5c58
)
2007-10-10 14:52:46 -05:00
Andrew Tridgell
4378af38ec
r23056: added automatic reconnect to RAW-BENCH-OPEN, similar to RAW-BENCH-LOCK
...
(This used to be commit 30b1733d75
)
2007-10-10 14:52:45 -05:00
Andrew Tridgell
fcd4f22cd6
r23031: removed bogus event_loop_once() calls in RAW-CONTEXT test - they could
...
hang forever if an ealier one caused two operations to complete at
once
this is why RAW-CONTEXT was taking 5 minutes on the build farm
(This used to be commit eeba37e25c
)
2007-10-10 14:52:42 -05:00
Andrew Tridgell
c42219d735
r22969: fix some more places where we could end up with more than one event
...
context. We now have an event context on the torture_context, and we
can also get one from the cli_credentials structure
(This used to be commit c0f65eb656
)
2007-10-10 14:52:34 -05:00
Andrew Tridgell
da9b4626bc
r22965: changed RAW-LOCK-BENCH to remove the scheduling uncertainty. We should
...
always get balanced locking now
(This used to be commit 4e6df7b9b1
)
2007-10-10 14:52:33 -05:00
Andrew Tridgell
e9eb862dc0
r22962: show progress separately for each client in RAW-BENCH-LOCK, this is
...
much more useful for seeing why we get unbalanced locking
(This used to be commit 1f1f57023b
)
2007-10-10 14:52:32 -05:00
Volker Lendecke
e1e759585e
r22886: Workaround to make RAW-NOTIFY a bit more reliable against Samba3. It
...
might take a bit for events to propagate from one to another connection,
in particular with a process per connection.
(This used to be commit 0c7a518b2d
)
2007-10-10 14:52:29 -05:00
Andrew Tridgell
3173a3cee6
r22881: show number of connected clients
...
(This used to be commit 42f6c5106e
)
2007-10-10 14:52:28 -05:00
Andrew Tridgell
2e11a2b601
r22876: - try to reconnect once per second, not continously
...
- patch from ronnie to fix the lock offset on reconnect
(This used to be commit 77d7ca5590
)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
3a88c56346
r22874: Expand the RPC-QFILEINFO-IPC test, and add a server implementation to match.
...
This should help with Vista joins.
Andrew Bartlett
(This used to be commit 8f85fb3786
)
2007-10-10 14:52:27 -05:00
Andrew Bartlett
d307c116c8
r22873: Make the RAW-QFILEINFO-IPC test pass against Win2k3.
...
Next step is working on Samba4's IPC ntvfs module.
Andrew Bartlett
(This used to be commit aca0250492
)
2007-10-10 14:52:26 -05:00
Andrew Bartlett
8861c4a68e
r22838: Add in an explority test for what QFSINFO operations are valid on IPC$
...
It seems most opertaions are supported, but that the values are not
consistant. I think these are very much hand-hacked stubs, which is
what they will be on Samba4 too.
I'll need to add some more 'don't fail for...' hacks before this
passes against Win2k3.
Andrew Bartlett
(This used to be commit dcb858d0c7
)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
0f6b62072e
r22837: make RAW-BENCH-LOCK reconnect asynchronously when one of its servers
...
goges away
(This used to be commit cf0cdf5171
)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
ba0424fddb
r22836: started adding auto-reconnect logic to lockbench. This needs to be
...
made async.
(This used to be commit 9e1ea3e09c
)
2007-10-10 14:52:23 -05:00
Andrew Tridgell
7df266a4f8
r22835: it's useful to see how much time is remaining in this test (so we can
...
tell if failures are due to the cleanup code)
(This used to be commit a4ff1927d4
)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
5c0963acc3
r22813: improve error messages in RAW-NOTIFY test
...
(This used to be commit f5b2011db9
)
2007-10-10 14:52:20 -05:00
Andrew Tridgell
5f475b80ee
r22670: changed the RAW-NOTIFY test to support clustered testing (two nodes)
...
(This used to be commit 12ce85aea1
)
2007-10-10 14:52:00 -05:00
Stefan Metzmacher
628ff1bea3
r22579: disable progress printing in the build-farm
...
metze
(This used to be commit 93089ad5e8
)
2007-10-10 14:51:47 -05:00
Stefan Metzmacher
2eb8b675d1
r22189: fix compiler warning
...
metze
(This used to be commit 62faa4bce4
)
2007-10-10 14:50:01 -05:00
Andrew Tridgell
25b4ee7af8
r22087: added a RAW-BENCH-OPEN test that can be used to stress out a clustered
...
implementation of a opendb backend. Use it in combination with
--unclist to tell smbtorture to connect to multiple nodes in the
cluster
(This used to be commit b4e38b1b8d
)
2007-10-10 14:49:50 -05:00
James Peach
754d416ea5
r21710: Add client support for the UNIX_INFO2 info level in the QueryFile,
...
QueryPath and FindFirst calls. Add a new torture test to verify the
server side.
(This used to be commit 7f56da2d1f
)
2007-10-10 14:49:16 -05:00
Jelmer Vernooij
72d88d158a
r21707: Finally merge my (long-living) perlselftest branch.
...
This changes the main selftest code to be in perl rather than in shell script.
The selftest script is now no longer a black box but a regular executable that takes
--help.
This adds the following features:
* "make test TESTS=foo" will run only the tests that match the regex "foo"
* ability to deal with expected failures. the suite will not warn about tests
that fail and are known to fail, but will warn about other failing tests and
tests that are succeeding tests but incorrectly marked as failing.
* ability to print a summary with all failures at the end of the run
It also opens up the way to the following features, which I hope to implement later:
* "environments", for example having a complete domains with DCs and domain members
in a testenvironment
* only set up smbd if necessary (not when running LOCAL tests, for example)
* different mktestsetup scripts per target. except for the mktestsetup script, we can
use the same infrastructure for samba 3 or windows.
(This used to be commit 38f867880b
)
2007-10-10 14:49:15 -05:00
Andrew Tridgell
0d60b9af90
r21216: fail the RAW-BENCH-LOCK test if the locking doesn't happen evenly
...
across the connections
(This used to be commit 01ef699981
)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
d9bd4dad50
r21215: extend the RAW-MUX test to test cancelling a async lock request using
...
a SMBexit
(This used to be commit 753a85eff6
)
2007-10-10 14:44:47 -05:00
Andrew Tridgell
16d887b3c4
r21139: make the RAW-MUX test fail if the locking subsystem doesn't trigger
...
early byte range lock retries (ie. PENDING locks in brlock)
(This used to be commit 09237e3acf
)
2007-10-10 14:44:32 -05:00
Volker Lendecke
fe5aad78b0
r21125: Tridge, please check this closely if this relaxed notify test is
...
acceptable.
In Samba3 with inotify we have the problem that the MODIFIED action is sent
second. I think this could also happen in Samba4, depending on the order when
the different sockets (unix domain dgram / inotify) are looked at by the
events system.
This patch accepts the NEW/OLD/MODIFIED entries in any order.
Comments welcome!
Volker
(This used to be commit 72a7771b75
)
2007-10-10 14:44:31 -05:00
Volker Lendecke
9df5d5e31f
r21124: Samba3 does not support create times correctly.
...
Volker
(This used to be commit c9886ce63b
)
2007-10-10 14:44:30 -05:00
Andrew Tridgell
630733e9ef
r20886: fixed a valgrind error
...
(This used to be commit acc96e42e7
)
2007-10-10 14:43:45 -05:00
Volker Lendecke
677633480b
r20758: Adapt RAW-UNLINK error returns for wildcard unlinks to Samba3.
...
If someone is feeling like solving that puzzle, contact Jeremy or me for hints
:-)
Volker
(This used to be commit 93e6dbaf5b
)
2007-10-10 14:40:46 -05:00
Andrew Tridgell
1c211a2e43
r20650: revert a bunch of code I didn't mean to commit yet
...
(This used to be commit b3e2d49087
)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba
r20647: add cluster code
...
(This used to be commit 5870830b99
)
2007-10-10 14:37:24 -05:00
Volker Lendecke
c5c8a33831
r20632: The extended RAW-SAMBA3BADPATH test led me to some wrong assumptions, in
...
particular the NT_STATUS_INVALID_PARAMETER thing was badly wrong. Remove the
changes based on it. Using gentest is much more effective in this respect, but
it will take a while to figure out the wildcard error handling of W2k3.
Volker
(This used to be commit 33d842e27d
)
2007-10-10 14:37:18 -05:00
Volker Lendecke
dff70f76bc
r20618: Fix a bug in bad_path handling that also exists in 3.0.23: For reply_unlink
...
under Linux we returned NT_STATUS_NOT_A_DIRECTORY. This is because in the
bad_path==True condition lstat(2) returns ENOTDIR and not ENOENT.
Not sure if we want to necessarily replicate the INVALID_PARAMETER here, but
this is what W2k3 does.
Jeremy, I tried to call you, but you were not around. So I'll leave it up to
you to merge this.
Volker
(This used to be commit 838afa8f7d
)
2007-10-10 14:37:15 -05:00
Volker Lendecke
aeda6017ac
r20613: The individual tests are fine, I did run samba3badpath, but raw-samba3hide
...
left test.txt with permissions 000 behind...
Volker
(This used to be commit fdd501f803
)
2007-10-10 14:37:14 -05:00
Volker Lendecke
36f78c139a
r20609: Additional torture test for our bad_path handling. Most of it is disabled for
...
now, there are calls (for example trans2ffirst) which are quite dubious.
Volker
(This used to be commit 79846f09b9
)
2007-10-10 14:37:13 -05:00
Volker Lendecke
3bc9704ce0
r20595: W2k and XP don't always show the top directory as hidden, w2k3 does. I think
...
Samba should follow w2k3 in this respect.
Volker
(This used to be commit 6094ee9df5
)
2007-10-10 14:37:11 -05:00
Volker Lendecke
9e1a690d28
r20552: Little Samba3 test to force smb_close to return an error. Set delete on close,
...
and then remove perms from the parent dir....
Volker
(This used to be commit f24c505257
)
2007-10-10 14:36:53 -05:00
Volker Lendecke
0221d44ef4
r20549: obvious bug fix..
...
(This used to be commit f0aa63e390
)
2007-10-10 14:36:52 -05:00
Volker Lendecke
cc8e2febb8
r20508: Confirm a special case in samba3 reply_getatr that getatr("") always returns
...
HIDDEN.
Volker
(This used to be commit 83a2091206
)
2007-10-10 14:36:02 -05:00
Volker Lendecke
d1e3dccab6
r20497: Two changes to RAW-OPEN that Samba does not fulfil:
...
Samba3 returns the SPARSE flag for files with size > allocation, and on many
configs Samba3 does not support EAs. Cope with both.
Tridge, please check this is acceptable for this test.
Volker
(This used to be commit 4df4d37c3d
)
2007-10-10 14:36:01 -05:00
Volker Lendecke
e1c244a1cf
r20480: In Samba3 we don't yet have support for all 4 file times on all platforms (do
...
we have any?? ;-), so don't mark failure to correctly cope with the close
write time as critical.
Volker
(This used to be commit 42070b09cb
)
2007-10-10 14:35:58 -05:00
Volker Lendecke
04b9446b2a
r20474: Skip the delete-on-close test on a non-empty directory in raw-unlink for
...
Samba3. This is a known deficiency also taken care of in the base-delete
test.
Volker
(This used to be commit 6b91bb93fa
)
2007-10-10 14:35:56 -05:00
Volker Lendecke
b5a932e13a
r20311: Check one more samba3 error path for t2mkdir
...
(This used to be commit 0f018cca6f
)
2007-10-10 14:29:37 -05:00
Volker Lendecke
f38b6db8b1
r20309: Don't treat non-supported EAs as fatal against Samba3.
...
Volker
(This used to be commit 52d9c7ed0a
)
2007-10-10 14:29:37 -05:00
Andrew Tridgell
9944a67508
r20092: added a locking benchmark that should be good for benchmarking
...
communitcation in a CIFS clustered server. It tries to keep the
connections full by setting up the next lock as each lock is done.
The locking pattern is similar to the local filesystem ping pong test
in junkcode, forcing a communication between nodes on each request
(This used to be commit d57b9fb298
)
2007-10-10 14:29:04 -05:00
Andrew Tridgell
c9291facd4
r20078: support the large samba3 reads in RAW-READ test
...
(This used to be commit a4c2a575fa
)
2007-10-10 14:29:01 -05:00
Andrew Tridgell
6300221b6c
r20059: james was asking about CAP_LARGE_READX and reads close to the 64k
...
boundary. This test shows that both for Samba4 and w2k3, reads larger
than or equal to 64k don't work (return zero bytes).
Not that I claim this is very useful behaviour :-)
(This used to be commit a10fa12ff5
)
2007-10-10 14:28:56 -05:00
Jelmer Vernooij
108de297a7
r19510: Make smbtorture's `nprocs' parameter a parametric option.
...
(This used to be commit f5d6b3ca29
)
2007-10-10 14:24:42 -05:00
Jelmer Vernooij
4fa24df98d
r19507: Merge my DSO fixes branch. Building Samba's libraries as shared libraries
...
works again now, by specifying --enable-dso to configure.
(This used to be commit 7a01235067
)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
535d1920f8
r19506: fixed remaining parts of RAW-READ and RAW-WRITE tests to check for
...
CAP_LARGE_FILES
(This used to be commit 66bebb2105
)
2007-10-10 14:24:41 -05:00
Andrew Tridgell
9cd2b012f3
r19504: - fixed a free error in file_lines_parse
...
- added a function to test for large file support
- enable CAP_LARGE_FILES only if the test passes
- don't test at large offsets if the server doesn't set
CAP_LARGE_FILES
(This used to be commit c5423ea22b
)
2007-10-10 14:24:40 -05:00
Jelmer Vernooij
a39f239cb2
r19392: Use torture_setting_* rather than lp_parm_* where possible.
...
(This used to be commit b28860978f
)
2007-10-10 14:21:24 -05:00
Jelmer Vernooij
8773e743c5
r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
...
output in the testsuite rather than just True or False for a
set of tests.
The aim is to use this for:
* known failure lists (run all tests and detect tests that
started working or started failing). This
would allow us to get rid of the RPC-SAMBA3-* tests
* nicer torture output
* simplification of the testsuite system
* compatibility with other unit testing systems
* easier usage of smbtorture (being able to run one test
and automatically set up the environment for that)
This is still a work-in-progress; expect more updates over the next couple of
days.
(This used to be commit 0eb6097305
)
2007-10-10 14:21:12 -05:00
Andrew Tridgell
9bda2c3ff2
r18585: 50 open searches is still too many for some of the build farm hosts,
...
which have a ulimit -n of 100. Drop the number of searches to 20.
That should limit the maximum total fd count to about 76, most of
which is all the listening sockets on the various interfaces
(This used to be commit fb5b8c4f8c
)
2007-10-10 14:18:52 -05:00
Andrew Tridgell
d928bce0d8
r18541: with 100 old style searches we can run out of file descriptors on some
...
systems. drop to 50
(This used to be commit ce5d5a1872
)
2007-10-10 14:18:44 -05:00
Andrew Tridgell
bca38ba866
r18371: made the directory depth notify test independent of timing
...
(This used to be commit 39458e62f5
)
2007-10-10 14:18:20 -05:00
Andrew Tridgell
8942893c39
r18355: increase the delays waiting for all events to propogate in the
...
RAW-NOTIFY test.
(This used to be commit 81fd19ba3f
)
2007-10-10 14:18:17 -05:00
Andrew Tridgell
3cc41b70da
r18320: the raw write size limit test hurts too many hosts. Limit it to 2^33
...
bytes if --dangerous is not set.
(This used to be commit 90e5136ea4
)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
89efea81d9
r18319: fixed the directory search resume code on IRIX
...
The problem was twofold:
1) irix returns 64 bit numbers in telldir(). The protocol uses a 32
bit resume key. We now cope with this properly using the code in
pvfs_list_seek_ofs().
2) irix returns 0xFFFFFFFF from telldir() for the last entry in the
directory. When added to DIR_OFFSET_BASE this became
DIR_OFFSET_DOTDOT which meant an infinite loop!
(This used to be commit 8cce9740ed
)
2007-10-10 14:18:08 -05:00
Andrew Tridgell
30ee8beb93
r18301: I discovered how to load the warnings from a build farm build into
...
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff
)
2007-10-10 14:18:04 -05:00
Derrell Lipman
6d362bdb7c
r18103: add torture test for 'RAW_OPEN_OPENX without a leading slash on the path', known to fail on NetApp filers
...
(This used to be commit 9a8c7b0a76
)
2007-10-10 14:17:17 -05:00
Stefan Metzmacher
46cdf9250b
r17785: fix compiler warnings
...
metze
(This used to be commit 256fc452a4
)
2007-10-10 14:16:42 -05:00
Jeremy Allison
38dee43c19
r17141: Prove that create dispositions with truncate and
...
overwrite break oplocks.
Jeremy.
(This used to be commit 94886f8c40
)
2007-10-10 14:10:14 -05:00
Jeremy Allison
8de86d192a
r17139: Checking in Volker's extended oplock test.
...
Jeremy
(This used to be commit 720c425af1
)
2007-10-10 14:10:14 -05:00
Jeremy Allison
6cebe4d890
r17099: Samba3 now passes RAW-LOCK completely, no need for
...
parameters to protect it.
Jeremy.
(This used to be commit 382c37e3d7
)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
440d0487a6
r17020: pass the real error to the failing requests
...
metze
(This used to be commit 49b96ac44a
)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a6a8065812
r17015: add a test that closes the tcp connection with an outstanding
...
notify request
metze
(This used to be commit d90313f715
)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
a8958391e8
r16980: - make struct smb_notify a union and add levels RAW_NOTIFY_NTTRANS,RAW_NOTIFY_SMB2
...
- parse SMB2 Notify reponse
metze
(This used to be commit de50e0ccdd
)
2007-10-10 14:10:06 -05:00
Volker Lendecke
b7c5bc522b
r16907: Add an index parameter to torture_open_connection. Next step is to enable the
...
unclist parameter for all tests that do two connections, to enable cluster
testing.
Volker
(This used to be commit a5d6db0924
)
2007-10-10 14:09:58 -05:00
Jeremy Allison
ec3be5b908
r16843: Confirm that openX uses the same mapping table as getatr.
...
Jeremy.
(This used to be commit 1c84e57e71
)
2007-10-10 14:09:52 -05:00
Volker Lendecke
a5cbc9a01c
r16842: Jeremy, I almost don't dare checking this in.....
...
Volker
(This used to be commit ec36c49c08
)
2007-10-10 14:09:50 -05:00
Stefan Metzmacher
af0a9eb529
r16834: split the level's of smb_search_first/smb_search_next and the levels
...
of smb_search_data
metze
(This used to be commit 78c201db8a
)
2007-10-10 14:09:49 -05:00
Jeremy Allison
5517249fad
r16761: Added additional NTSTATUS and DOS error test for "."
...
This confirms a theory of mine...
Added RAW-SAMBA3BADPATH to selectable options.
Jeremy.
(This used to be commit 4cd7a8ed62
)
2007-10-10 14:09:44 -05:00
Volker Lendecke
81d09a7f2e
r16759: Jeremy, another little error case for you :-)
...
For the paths with illegal characters we should return ERRDOS:ERRbadpath in
the DOS error case. We return ERRDOS:ERRinvalidname...
Volker
(This used to be commit c2203068f4
)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
4357d9f5de
r16707: - test attrib = 0 in BASIC_INFO
...
- return an error when value doesn't match the expected value!
metze
(This used to be commit 1f0ecba773
)
2007-10-10 14:09:39 -05:00
Volker Lendecke
414c47633d
r16657: Test Jerry's iTunes bug, along with some more error conditions
...
Volker
(This used to be commit 12aa900eb2
)
2007-10-10 14:09:36 -05:00
Jelmer Vernooij
845df42a19
r16333: Move more code out of the core smbtorture. It now no longer
...
contains protocol-specific code.
(This used to be commit 819d3b4576
)
2007-10-10 14:09:11 -05:00
Jelmer Vernooij
90be000cd5
r16173: Use memory context provided by smbtorture.
...
(This used to be commit 88046d5951
)
2007-10-10 14:09:05 -05:00