summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r3574: the RAW-OPEN test changes broke a couple of the other tests. ThisAndrew Tridgell1-54/+1
fixes most of them, although RAW-SEARCH still fails (due to an interaction with the new xattr code) (This used to be commit 09b4652b40c4cfca027765178bd5a0adbaa666c2)
2007-10-10r3513: Add (the infrastructure for) DCOM support. Contents:Jelmer Vernooij1-0/+3
- Support for sending over the object UUID in DCERPC calls - Simple torture test for the DCOM "Simple" object - Generate extra argument for "object" interfaces in pidl - Some stubs for common DCOM functions (This used to be commit c052f2e1edd816206d8974af3140cec7ef97a70c)
2007-10-10r3507: - added deferred replies on sharing violation in pvfs open. TheAndrew Tridgell1-16/+14
deferred reply is short-circuited immediately when the file is closed by another user, allowing it to be opened by the waiting user. - added a sane set of timeval manipulation routines - converted all the events code and code that uses it to use struct timeval instead of time_t, which allows for microsecond resolution instead of 1 second resolution. This was needed for doing the pvfs deferred open code, and is why the patch is so big. (This used to be commit 0d51511d408d91eb5f68a35e980e0875299b1831)
2007-10-10r3494: got rid of include/rewrite.h, and split out the dynconfig.h headerAndrew Tridgell1-0/+1
(This used to be commit 558de54ec6432a4ae90aa14a585f32c6cd03ced2)
2007-10-10r3481: split out client.h and events.hAndrew Tridgell1-0/+1
(This used to be commit c6f486574470a311e0d336c026103f131451e21e)
2007-10-10r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ↵Andrew Tridgell1-0/+1
ioctl.h) (This used to be commit b97e395c814762024336c1cf4d7c25be8da5813a)
2007-10-10r3461: another place where "open" was used as a structure elementAndrew Tridgell1-0/+1
(This used to be commit 1087ea830e7aead86d54a1836512e88554afc919)
2007-10-10r3453: - split out the auth and popt includesAndrew Tridgell1-0/+1
- tidied up some of the system includes - moved a few more structures back from misc.idl to netlogon.idl and samr.idl now that pidl knows about inter-IDL dependencies (This used to be commit 7b7477ac42d96faac1b0ff361525d2c63cedfc64)
2007-10-10r3447: more include/system/XXX.h include filesAndrew Tridgell1-0/+1
(This used to be commit 264ce9181089922547e8f6f67116f2d7277a5105)
2007-10-10r3445: made the gtk tooks use minimal includes. This approximately halves theAndrew Tridgell1-1/+1
total include lines in compiling C files in Samba (the .gch file is now 5M instead of 12M) This also gets rid of the silly gtk compile warning for non-gtk code (This used to be commit 8ebd20cf551c8c1fad98ec723d91873fa202b85a)
2007-10-10r3419: moved the libcli/raw structures into libcli/raw/libcliraw.hAndrew Tridgell1-0/+1
and made them private (This used to be commit 386ac565c452ede1d74e06acb401ca9db99d3ff3)
2007-10-10r3413: RemoteActivation updates and fixesJelmer Vernooij1-0/+1
Add torture test for RemoteActivation The request is now send correctly and we get back a valid response from Windows but r->in.Interfaces is set to 0 somewhere while parsing the response... (This used to be commit cabec03422f0c7140b56b2d5c4ec8ca663b406fc)
2007-10-10r3394: Give the user a clue why we are blasting them with the usage brick.Andrew Bartlett1-0/+1
Andrew Bartlett (This used to be commit d967569c569a1f8f41efface7c62d233401451f3)
2007-10-10r3386: - fixed --seed option in smbtortureAndrew Tridgell1-3/+9
- added new tests BASE-NTDENY1 and BASE-NTDENY2. These are the ntcreatex equivalents of the BASE-DENY1 and BASE-DENY2 tests. Unfortunately, with ntcreatex there are 4 million combination and trying each one takes 1 second, so randomised testing is the only choice. The BASE-DENY1 test can operate in parallel with hundreds of connections, speeding things up a bit (as most time is spent waiting 1 second for a sharing violation to come back) (This used to be commit b95493d3d16581b8dd8f4727cd10631c18e16748)
2007-10-10r3324: made the smbtorture code completely warning freeAndrew Tridgell1-26/+27
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)
2007-10-10r3323: more warning reductionsAndrew Tridgell1-1/+1
(This used to be commit 5921587ec26e4892efc678421277e4969417d7f5)
2007-10-10r3251: - move the openattr test code into basic/attr.cAndrew Tridgell1-167/+1
- cleaned up the RAW-WRITE test so it passes against w2k3, and gives more useful error messages (This used to be commit d4042c4364b571b9425e1706fc765376160c8a60)
2007-10-10r3203: moved more test functions into torture/basic/*.cAndrew Tridgell1-211/+3
the idea is that torture/torture.c should eventually be just the harness code, which will make it easier to read (This used to be commit eca85d26ed744563d1bbb8dd10a819d39fdc495b)
2007-10-10r3182: separate out the BASE-RENAME test into torture/basic/rename.cAndrew Tridgell1-96/+1
(This used to be commit c5e72b05d73ff0d57a98b6065bab573e2a226747)
2007-10-10r3156: Couple of fixes in the conversion functions between binding structs andJelmer Vernooij1-1/+1
protocol towers (This used to be commit f41dfc6c5a85bf241e4bcc0669f6191bf531e89a)
2007-10-10r3149: separate the delete on close test into torture/basic/delete.cAndrew Tridgell1-500/+1
(This used to be commit 50379a0a58d9eade3e1390713ef89473c66e65fc)
2007-10-10r3130: - added a LOCAL-IDTREE test suiteAndrew Tridgell1-0/+1
- made idtree return a "struct idr_context *" instead of a void* - more efficient idr_remove for ids that are not present (patch from Jim Houston) (This used to be commit f8d12d4b4ae5a38de7869deb782cb8f48504844c)
2007-10-10r3123: Add dcerpc_binding_build_tower()Jelmer Vernooij1-0/+1
Add local test for testing the functions dcerpc_parse_binding(), dcerpc_binding_string() and dcerpc_binding_build_tower() (This used to be commit 7a07c2c769b8e51178789eed4a31577f5d39f63a)
2007-10-10r3053: make the maxfid test use subdirectories, so it doesn't create 64kAndrew Tridgell1-6/+46
files in one directory (running the test was very slow) and can clean up after itself easily. (This used to be commit 6dea60e3b9a1d2557e8a5be505a5052dc9847a8f)
2007-10-10r3045: Allow object-uuid@... binding stringsJelmer Vernooij1-1/+13
(This used to be commit 38e9290bcf0295fb2a68090061310a4a8cb6c490)
2007-10-10r3016: - converted the events code to tallocAndrew Tridgell1-0/+1
- added the new messaging system, based on unix domain sockets. It gets over 10k messages/second on my laptop without any socket cacheing, which is better than I expected. - added a LOCAL-MESSAGING torture test (This used to be commit 3af06478da7ab34a272226d8d9ac87e0a4940cfb)
2007-10-10r3011: separated the locktest code into a separate module in smbtortureAndrew Tridgell1-899/+19
(This used to be commit f4a91be63502c0bb32c52c0558dfc7d4d0a21fae)
2007-10-10r2997: Added delete on close tests for readonly files.Jeremy Allison1-0/+58
Jeremy. (This used to be commit 93efa870400a3f69700e69d30319ffbdbdf94820)
2007-10-10r2854: added a RPC-COUNTCALLS torture test - a useful varient on the full ↵Andrew Tridgell1-0/+1
scanner in RPC-SCANNER (This used to be commit 04eaae59cda8a8d67bcca896a32dec2ad402a4f2)
2007-10-10r2785: call init_iconv() in smbtorture to ensure we have no memory allocatedAndrew Tridgell1-0/+1
when a test started, thus making leak detection easier (This used to be commit 6c46e4622a9851bdef25ba9d353bdebc25f6ec8d)
2007-10-10r2735: More DCOM updates:Jelmer Vernooij1-0/+1
- Several updates to the interface definitions after reading some more of the specs - Add Remote Activation interface - Add body extension uuids - Add oxidresolve torture test to list - Make pidl complain about object interfaces that don't inherit from IUnknown (This used to be commit 1bb471832830d73f0c7290e2ec12878518598379)
2007-10-10r2710: continue with the new style of providing a parent context wheneverAndrew Tridgell1-3/+5
possible to a structure creation routine. This makes for much easier global cleanup. (This used to be commit e14ee428ec357fab76a960387a9820a673786e27)
2007-10-10r2709: finally solved the talloc reference problem.Andrew Tridgell1-8/+9
The problem was that the simple "uint_t ref_count;" in a talloc chunk did not give enough information. It told us that a pointer was referenced more than once, but it didn't say who it was referenced by. This means that when the pointer was freed we had no sane way to clean up the reference. I have now replaced ref_count with a "refs" list, which means that references point to the pointer, and the pointer has a linked list of references. So now we can cleanup from either direction without losing track of anything. I've also added a LOCAL-TALLOC smbtorture test that tests talloc behaviour for some common uses. (This used to be commit 911a8d590cb184bcb892810729955c2c4cf02550)
2007-10-10r2659: removed some extraneous debug msgsAndrew Tridgell1-3/+0
(This used to be commit 770aa7e01e68df1fd8538c5b19b63a8545bb0355)
2007-10-10r2589: a simple test to help find security related memory leaks. Run ↵Andrew Tridgell1-0/+1
valgrind on smbd with --show-leak=yes and --show-reachable=yes to track them down. (This used to be commit 7b23624a0f50c29346e8b1c4057f1c21f3be6d5a)
2007-10-10r2274: fixed some popt option clashes between smbtorture and the standard ↵Andrew Tridgell1-6/+6
options (This used to be commit b7db909e8e8194366ff93f68adbd68a8f1dcbe9a)
2007-10-10r2271: fixed the popt argument array for smbtorture, getting rid of someAndrew Tridgell1-20/+19
clashes metze, please note that the 'val' field in popt is not the default value, its the integer to switch on in the argument loop. (This used to be commit 0f3b01bebadc9f949a663dc40280945536bc86fd)
2007-10-10r2200: solved another piece of the lsakey puzzle - the session key for lsaAndrew Tridgell1-6/+7
encryption on ncacn_ip_tcp is a fixed buffer! I don't yet know what the buffer is, but this code proves its the same buffer for different w2k3 servers and different user passwords, plus it is independent of the negotiated NTLMSSP session key. (This used to be commit 05fd38f3cfd9476bc1cf7fed838a942a75569c0a)
2007-10-10r2182: force the torture test domain join to happen on SMB to prevent theAndrew Tridgell1-1/+34
LSAKEY problem holding up other tests (This used to be commit ad8d54fd7dd93cb984d23acecfc1c611b63a5d58)
2007-10-10r2159: converted samba4 over to UTF-16.Andrew Tridgell1-2/+3
I had previously thought this was unnecessary, as windows doesn't use standards compliant UTF-16, and for filesystem operations treats bytes as UCS-2, but Bjoern Jacke has pointed out to me that this means we don't correctly store extended UTF-16 characters as UTF-8 on disk. This can be seen with (for example) the gothic characters with codepoints above 64k. This commit also adds a LOCAL-ICONV torture test that tests the first 1 million codepoints against the system iconv library, and tests 5 million random UTF-16LE buffers for identical error handling to the system iconv library. the lib/iconv.c changes need backporting to samba3 (This used to be commit 756f28ac95feaa84b42402723d5f7286865c78db)
2007-10-10r2071: - change smbtorture to use the popt_common stuffStefan Metzmacher1-153/+108
this means -U DOM\\user is know allowed - torture:userdomain is a new smb.conf parameter because lp_workgroup is not the domain of the user - we use torture:userdomain now in the tests instad of lp_workgroup - for backward compat the userdomain is lp_workgroup() by default and not lp_netbios_name(), which my change later to match 'net' and 'smbclient'.. - we now have dublicate options e.g. -N -s ... tridge: can we change this? metze (This used to be commit 4733dcbf5f17422a8a4c9f99664270b3aa66c586)
2007-10-10r2056: Allow the compiler to check this format string.Andrew Bartlett1-3/+4
Andrew Bartlett (This used to be commit 7e18ca72854ad9801da6ffd56dc2bb804a3f52f9)
2007-10-10r1897: added a choose_called_name() function that allows us to more sanelyAndrew Tridgell1-6/+3
handle connections using the IP as the server name, while not trying for NBT name resolution on names like "192" and "192.168.1.2". also removed the ip address argument to smbcli_socket_connect() as it isn't used and doesn't really make sense. (This used to be commit 2ce4028842556328da4da0de9bee942bed02cc62)
2007-10-10r1793: try to bind multiple times as anonimous and userSimo Sorce1-1/+44
added -D parameter to torture to be able to specify: - user dn - base dn - user secret (This used to be commit 0eaec28f5c511a28764a1d350c2eaaf37272eb62)
2007-10-10r1771: OK Let's add tests for ldap.Simo Sorce1-0/+3
Thanks to Metze and Volker for their unvaluable support :) (This used to be commit e6a6c0737ab94d58930c0d4e1ef0bb4d99510833)
2007-10-10r1654: rename cli_ -> smbcli_Stefan Metzmacher1-756/+756
rename CLI_ -> SMBCLI_ metze (This used to be commit 8441750fd9427dd6fe477f27e603821b4026f038)
2007-10-10r1636: improved the negnowait test so it is standalone (taking advantage of ↵Andrew Tridgell1-4/+36
the async APIs) (This used to be commit 19c22760c699aa2b000f023ff6083055a27a83cb)
2007-10-10r1628: - fixed the comment on run_deferopen. (I also think that theAndrew Tridgell1-102/+65
deferopen test should probably be ripped out and redone, as it tests the wrong thing.) - removed some unused code - add progress printing to the pipe_number test - fixed the dir1 test to use deltree rather than trying to re-invent it itself (in a broken manner) - renamed all of the tests into catagories, so you can now run BASE-* for the base tests, and BENCH-* for the benchmarks. (This used to be commit 2e297be5c34086a42396acc3abf965f8dbd665cd)
2007-10-10r1617: Start working on the svcctl pipeJelmer Vernooij1-0/+1
(This used to be commit 518ff5f505446fee623365fd5bdfc75c0cb93d2a)
2007-10-10r1498: (merge from 3.0)Andrew Bartlett1-1/+1
Rework our random number generation system. On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork(). For other systems, we now only re-seed after a fork, and on startup. No need to do it per-operation. This removes the 'need_reseed' parameter from generate_random_buffer(). This also requires that we start the secrets subsystem, as that is where the reseed value is stored, for systems without /dev/urandom. In order to aviod identical streams in forked children, the random state is re-initialised after the fork(), at the same point were we do that to the tdbs. Andrew Bartlett (This used to be commit b97d3cb2efd68310b1aea8a3ac40a64979c8cdae)