summaryrefslogtreecommitdiff
path: root/source4/torture/torture.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r22969: fix some more places where we could end up with more than one eventAndrew Tridgell1-2/+5
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 c0f65eb6562e13530337c23e3447a6aa6eb8fc17)
2007-10-10r21745: indentAndrew Bartlett1-1/+1
(This used to be commit 7841b299061ec8f4f6a14720dbe4fa7108313848)
2007-10-10r21707: Finally merge my (long-living) perlselftest branch.Jelmer Vernooij1-0/+3
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 38f867880beb40c691e9713f854426031310629c)
2007-10-10r21222: Merge a couple of pidl fixes:Jelmer Vernooij1-1/+0
* Pidl will now warn when trying to use pointers as integers in expressions. * "subcontext()" is now marked as deprecated. The alternatives, transmit_as() / represent_as() should be available soon. * More tests. * Remove some unused code in smbtorture. (This used to be commit 37c0da541e3962164d5af3e3c9560803a733f3b7)
2007-10-10r21066: Fix the build (uninitialised variable).Jelmer Vernooij1-0/+1
(This used to be commit 54b63787606f392e094fe28c2536999c34f76f44)
2007-10-10r21055: Fix executable bit.Jelmer Vernooij1-5/+0
(This used to be commit 7512270ffae4e72d70f6ca347f09708f1bf915ad)
2007-10-10r19556: Remove unused option.Jelmer Vernooij1-1/+0
(This used to be commit 827af8654940243c21eb12e9f1934a13272a6b00)
2007-10-10r19510: Make smbtorture's `nprocs' parameter a parametric option.Jelmer Vernooij1-1/+0
(This used to be commit f5d6b3ca29788d171d53822a26295ae895a5ed8f)
2007-10-10r19387: Exit with 0 if failures were expectedJelmer Vernooij1-0/+2
(This used to be commit b4fc06aeafa3ed8460759409a72b4de43a534d62)
2007-10-10r19381: Print out the specific tests that failed after a smbtorture run.Jelmer Vernooij1-0/+15
Support listing known failures as a list of wildcards in the file `KNOWN_FAILURES'. (This used to be commit 23f66efd564d1ad549fc0cd60348f54808f5cafa)
2007-10-10r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.Jelmer Vernooij1-27/+8
Support directories for subcategories in tests. Several small other fixes. (This used to be commit bde00d97068d559b025ab131ff698a82430d14b3)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-24/+3
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 0eb6097305776325c75081356309115f445a7218)
2007-10-10r18994: - torture_register_suite should be publicStefan Metzmacher1-6/+3
- some whitespace cleanups metze (This used to be commit 49755f2224df7e4448853bbe493b6aeeac365cb2)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij1-1/+1
* Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r16557: Silently succeed when torture_register_suite is passed NULL.James Peach1-0/+4
(This used to be commit dbcb190aa0a687e62cc109ab6314aa705a0c7aca)
2007-10-10r16333: Move more code out of the core smbtorture. It now no longerJelmer Vernooij1-684/+1
contains protocol-specific code. (This used to be commit 819d3b457648ffb7526a770e842badc17b6061fb)
2007-10-10r16331: Split out registering of multi fn tests, fix typo in name of pac suite.Jelmer Vernooij1-78/+80
(This used to be commit 9e8574ac6cd38d1ff388f0c9ff37d86b316a431e)
2007-10-10r16329: Convert to new UI API.Jelmer Vernooij1-1/+1
(This used to be commit c7d1d86853eb659ee4a5cbfb4ff65b31f6fe0375)
2007-10-10r16328: Wrap all existing tests in simple single-function testsuites.Jelmer Vernooij1-32/+84
(This used to be commit 7e811adf59841936b7e634fca4e95630f890c5af)
2007-10-10r16304: Improve testing UI API. This now allows registering the fullJelmer Vernooij1-1/+1
test suite tree, looks a bit more like other unit testing API's, fixes some memory responsibility issues, introduces testcases, and removes the need for tests to call torture_ok(). (This used to be commit 0445b1a56a02552f895f400960b9ced39244a144)
2007-10-10r16149: This is a very Samba3 specific test: It tests whether 'hide ↵Volker Lendecke1-0/+1
unreadable' and 'hide unwriteable files' actually do what they are supposed to do. Volker (This used to be commit 7bf02a5e0f2c53bd516033d31466cd0cf22d3496)
2007-10-10r15957: - add a test that fetches the schema from an windows LDAP server,Stefan Metzmacher1-0/+1
and stores it into structures. - this prints out some useful information on the screen about attributes (will be extended for objectClasses too) - the plan is to create hide the relation of structures behind an interface we can later use this interface in a lot of places: - our schema module for ldb - the ndr_print code for DsGetNCChanges, to translate the uint32 attribute and objectClass id's into names, display attribute values depending on the attribute syntax - ... metze (This used to be commit 1908f0cd6230c22aabb0e1eab2f9d37d17f12f18)
2007-10-10r15892: Remove the COM management code - DCOM should beJelmer Vernooij1-1/+0
based on Mono and its' COM support and utilize Samba's DCE/RPC + ORPC code instead of having our own COM implementation in Samba, which is too much work to implement and harder to code (C). This only removes some of the code that I started working on to implement the bits of COM I thought were needed to support DCOM from just Samba. This code has never functioned properly, contains a couple of nasty hacks and there should be no reason to pick it up again later, the processes are all documented in the DCOM whitepaper. This does NOT remove the marshalling code for the ORPC code or the torture code that tested some of the ORPC code. (This used to be commit 11df14219bf0b35329b293cae3234e064aabde54)
2007-10-10r15862: add a LOCAL-EVENT torture testStefan Metzmacher1-0/+1
- it currently tests the standard events code - with epoll enabled and disabled metze (This used to be commit ce5fd2293d5ce1f6a54048bc5662706943c98eb5)
2007-10-10r15816: add SMB2-LOCK torture test, which demonstrates what possible valid ↵Stefan Metzmacher1-0/+1
and invalid requests you can do with it metze (This used to be commit adef1372c118b6c116dfa976d0277be677118fd0)
2007-10-10r15594: Remove another unused includeJelmer Vernooij1-1/+0
(This used to be commit 0c078988715744bb4cbdf210d8ac9d7782135737)
2007-10-10r15456: Inspired by a short discussion with abartlet on IRC.Rafal Szczesniak1-0/+1
- create "async" parameter for smbtorture to categorise async tests potentially hard for windows servers - create "num-async" parameter to specify the number of simultaneous async requests to be made - move RPC-ASYNCBIND test from "dangerous" to "async" (I should probably do the same for many others async tests...) It's an interesting way to determine resources availability on windows servers... rafal (This used to be commit 0d008fbea0aec279d389cff676a4319262475d17)
2007-10-10r15014: added a simple batch oplock benchmarkAndrew Tridgell1-0/+1
Jeremy, Samba3 currently fails this test with a 2.6.16-rc6 kernel and kernel oplocks enabled. With kernel oplock off it passes, though its a bit slow (This used to be commit 99df20246049c2645b04d5790b9e41c607872dc7)
2007-10-10r14817: rename some testsStefan Metzmacher1-2/+4
tridge: is SCAN-EAMAX ok? metze (This used to be commit d8529ec2ee079d4ff17681a5d35d260fd3313e88)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-7/+7
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij1-0/+1
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r14527: Fix build problems.Jelmer Vernooij1-74/+0
(This used to be commit 863ca4014d9b821706ee90f58ab5d5cf3899a4c7)
2007-10-10r14525: Sort list of torture tests alphabeticallyJelmer Vernooij1-19/+16
(This used to be commit 48941ecc870ac96a944beb5657950ad3ec1f1f11)
2007-10-10r14524: Make TORTURE_NET a separate moduleJelmer Vernooij1-17/+5
Add new header for torture utility functions, so torture.h doesn't need to depend on the SMB libraries (This used to be commit ab162bcafc666f226332d4678b0875139a0d65c2)
2007-10-10r14520: Split up smbtorture binary into a core (torture.c) and UI frontend ↵Jelmer Vernooij1-338/+6
(smbtorture.c) (This used to be commit 7f9c11e7b1d7f6ce943900860febe0f43ea6548e)
2007-10-10r14519: Put base registration in a seperate file, as well as someJelmer Vernooij1-1596/+62
of the base tests that were currently in torture.c (This used to be commit 4e7c3c7e1fe383b37d90954982e8bf150a06663a)
2007-10-10r14497: Fix build with shared librariesJelmer Vernooij1-5/+0
(This used to be commit c74fc55831ca24819ae7f5e0920d0351e2b46a08)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r14437: fix warningsStefan Metzmacher1-2/+2
metze (This used to be commit 2017c2573ecbe49b5b7456bfcc3e1c7ca5934a54)
2007-10-10r14379: Build torture/rpc/ as a seperate smbtorture module. Move helperJelmer Vernooij1-96/+3
functions for rpc out of torture/torture.c (This used to be commit 1d2d970f3b8aef3f36c2befb94b5dd72c0086639)
2007-10-10r14363: Remove credentials.h from the global includes.Jelmer Vernooij1-0/+1
(This used to be commit 98c4c3051391c6f89df5d133665f51bef66b1563)
2007-10-10r14347: Add registration function to allow registering smbtorture test(suites)Jelmer Vernooij1-22/+82
Fix mechanism for breaking lines when printing test names. (This used to be commit c1061f5fe478918f996fdeaa382a1f5552135bb9)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-1/+1
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-1/+1
a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10r14140: block SIGPIPE in smbtortureStefan Metzmacher1-0/+3
hopefully this fixed the problems with BASE-NEGNOWAIT metze (This used to be commit 45441954d02a3032782477f9dd6d0bc6305aa030)
2007-10-10r14040: report errors betterStefan Metzmacher1-0/+2
metze (This used to be commit 10cd4dbac97589e422a56465ba1f2bc060e425bb)
2007-10-10r14039: as samba4 drops the connection on multiple negprot requestsStefan Metzmacher1-7/+10
make the BASE-NEGNOWAIT tests more robust. was it correct that the important thing to test in this test is that the 2nd connection works fine? metze (This used to be commit f941e748640fa88eb5868420059efd0c38d7d745)
2007-10-10r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij1-0/+1
file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10r13903: Don't generate prototypes for modules and binaries in include/proto.h byJelmer Vernooij1-0/+1
default. (This used to be commit c80a8f1102caf744b66c13bebde38fba74983dc4)
2007-10-10r13853: fixed the BASE-NEGNOWAIT test to not fail with a sigpipe if the serverAndrew Tridgell1-2/+3
drops the connection on multiple negprots (This used to be commit 34b2855a62368ddffa2946f072e96d21a9f15896)