summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/echo.c
AgeCommit message (Collapse)AuthorFilesLines
2009-10-20s4-torture: ran minimal_includes.pl over source4/tortureAndrew Tridgell1-1/+0
This reduces compile time somewhat.
2009-04-25s4:RPC-ECHO: disable the timeout test as it can't work with our client libraryStefan Metzmacher1-1/+4
We need proper ways to cancel requests in order to have that test working against a correctly behaving server over ncacn_np. metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-1/+1
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
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-6/+6
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij1-3/+3
number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
2007-10-10r24872: Use torture API a bit moreJelmer Vernooij1-3/+3
(This used to be commit a71355dfc933d4273d81e7b05a28197ca86e0cc6)
2007-10-10r24855: Convert RPC-DRSUAPI, RPC-SCHANNEL to use the torture API.Jelmer Vernooij1-2/+2
(This used to be commit dadcc4708e1813c0b657f1d357c2ae202ea4ec5a)
2007-10-10r24751: Run more tests, remove empty testsuites, more small improvements.Jelmer Vernooij1-1/+1
(This used to be commit 2a5a0819eea86ba322434306e062d13893b5722e)
2007-10-10r24674: Make sure results are always on a new line, fix typo in test name.Jelmer Vernooij1-0/+1
(This used to be commit 40c1635b39b4acff0acecc734583daa0217215ce)
2007-10-10r24557: rename 'dcerpc_table_' -> 'ndr_table_'Stefan Metzmacher1-1/+1
metze (This used to be commit 84651aee81aaabbebf52ffc3fbcbabb2eec6eed5)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
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 fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r22486: add a flag to ignore timeouts of a request and don't closeStefan Metzmacher1-2/+7
the connection on timeout metze (This used to be commit 6b23ab1fd265e2a92456701fb02bd1838c098874)
2007-10-10r19549: fixed some indentationAndrew Tridgell1-2/+2
(This used to be commit ea1e4685d914c09d615bb7c4a5678b5de00da5f4)
2007-10-10r19366: don't fail async echo tests due to rounding errorsAndrew Tridgell1-3/+6
(This used to be commit 9389ca13a38b9a3ba6f3533293ab0d0c8c06a30a)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-230/+149
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-10r18565: Fix echo.idl to be Samba3-, MIDL and midlc compatibleJelmer Vernooij1-0/+7
(This used to be commit ab0a798c57564901f0adcd8aedc1ef0928e79edd)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-1/+1
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14470: Remove some unnecessary headers.Jelmer Vernooij1-1/+0
(This used to be commit f7312dab3b9aba2b2b82e8a6e0c483a32a03a63a)
2007-10-10r14402: Generate seperate headers for RPC client functions.Jelmer Vernooij1-0/+1
(This used to be commit 7054ebf0249930843a2baf4d023ae8f62cedb109)
2007-10-10r14379: Build torture/rpc/ as a seperate smbtorture module. Move helperJelmer Vernooij1-0/+1
functions for rpc out of torture/torture.c (This used to be commit 1d2d970f3b8aef3f36c2befb94b5dd72c0086639)
2007-10-10r12812: speed up RPC-ECHO with validate some more, and re-enable it underAndrew Tridgell1-2/+9
valgrind in 'make valgrindtest' (This used to be commit b2030d527a75fecd907148d13860b4ba5193f218)
2007-10-10r12811: valgrind on RPC-ECHO with validate is extremely slow - speed it up ifAndrew Tridgell1-2/+16
torture:quick is set (This used to be commit b591b28567eba148509c5dec060efaef2fd95ff6)
2007-10-10r12693: Move core data structures out of smb.h into core.hJelmer Vernooij1-0/+1
torture prototypes in seperate header (This used to be commit 73610639b23ca3743077193fa0b1de7c7f65944d)
2007-10-10r12510: Change the DCE/RPC interfaces to take a pointer to aJelmer Vernooij1-3/+1
dcerpc_interface_table struct rather then a tuple of interface name, UUID and version. This removes the requirement for having a global list of DCE/RPC interfaces, except for these parts of the code that use that list explicitly (ndrdump and the scanner torture test). This should also allow us to remove the hack that put the authservice parameter in the dcerpc_binding struct as it can now be read directly from dcerpc_interface_table. I will now modify some of these functions to take a dcerpc_syntax_id structure rather then a full dcerpc_interface_table. (This used to be commit 8aae0f168e54c01d0866ad6e0da141dbd828574f)
2007-10-10r11818: - changed the option torture:echo_TestSleep=yes/no to the more genericAndrew Tridgell1-5/+5
option torture:quick=yes/no. This should be used in all slow tests to enable a quick mode - enabled the test_rpc_quick.sh tests in 'make quicktest' (This used to be commit 180c209c1bb48f6421043de2d0d48c29fc7f9274)
2007-10-10r11628: fixed a valgrind error in the rpc echo testAndrew Tridgell1-1/+1
(This used to be commit d340ea7906c091a1400d3e73a8f530174aa8a965)
2007-10-10r8876: check the result of AddOne and test some more valuesStefan Metzmacher1-12/+28
metze (This used to be commit 6918e9c5a3e2f9cd69569037bbdfed4e7eed94d5)
2007-10-10r8875: Rename timeval_diff to timeval_until and revert the arguments. ↵Volker Lendecke1-1/+1
timeval_diff is not strictly a subtraction function, there can't be negative timevals. Volker (This used to be commit 525d75dd24f6a8810f1ed2043d170c70b060f1f0)
2007-10-10r7657: test addone again after request timeout and destruction to ensure the ↵Andrew Tridgell1-3/+2
pipe is still OK (This used to be commit 9f7f70124fc67109bc9ace7a57490851341ad759)
2007-10-10r7656: added testing of rpc request timeouts and destructionAndrew Tridgell1-0/+62
(This used to be commit eddf41d5e4ca43073b96f96b96dbadf7b8b91df5)
2007-10-10r7401: add config option to disable the TestSleep() testStefan Metzmacher1-1/+5
torture:echo_TestSleep=no metze (This used to be commit 74bb55f3ae90871749f34f17a79eabe38d6b437a)
2007-10-10r7195: - Fix echo pipeJelmer Vernooij1-6/+3
- Don't allocate strings - Give higher preference to the [out] part of variables when they are being used by another [out] variable. Also make sure that [in] variables never use [out] variables (i.e. switch_is() on an [in] variable can no longer use an [out] variable). (This used to be commit 837c83d77a2d1990419c4f3e343616daf8da5799)
2007-10-10r7159: Improve the messages from pidl's validator module.Jelmer Vernooij1-2/+2
Change the IDL file for the echo interface to match the one we use for Windows. The only thing different between the two files currently is the names of the scalar types and the handling of strings. (This used to be commit b264c61061d222347919837600adf809fbadfb13)
2007-10-10r6524: Fix the error we print when the RPC-ECHO test fails.Andrew Bartlett1-1/+1
Andrew Bartlett (This used to be commit 4fc2a056cd38de7b3e2bc972958b5c104ba57ba7)
2007-10-10r5977: Fix uninitialised memory bug in ndr_pull_ref_ptr(). This fixes theJelmer Vernooij1-19/+6
Test_DoublePointer test failure. (This used to be commit 4089d5f67d6e4121056a63ececb13187fd773636)
2007-10-10r5941: Commit this patch much earlier than I would normally prefer, but ↵Andrew Bartlett1-3/+3
metze needs a working tree... The main volume of this patch was what I started working on today: - Cleans up memory handling around DCE/RPC pipes, to have a parent talloc context. - Uses sepereate inner loops for some of the DCE/RPC tests The other and more important part of this patch fixes issues surrounding the new credentials framwork: This makes the struct cli_credentials always a talloc() structure, rather than on the stack. Parts of the cli_credentials code already assumed this. There were other issues, particularly in the DCERPC over SMB handling, as well as little things that had to be tidied up before test_w2k3.sh would start to pass. Andrew Bartlett (This used to be commit 0453f9d05d2e336fba1f85dbf2718d01fa2bf778)
2007-10-10r5465: Add support to multiple levels of pointers in pidl.Jelmer Vernooij1-0/+44
Also add a new function to echo.idl that tests this behaviour. (This used to be commit e5eb5e847e75f2b7b041a66f84d9b919ddf27739)
2007-10-10r5453: Treat "embedded" arrays (surrounding structures) somewhatJelmer Vernooij1-6/+5
more generically. The default functions for remembering array sizes are now used rather then a special local variable. (This used to be commit 5f7882341fa435a495fa7181537b5599e2fc7a0d)
2007-10-10r5452: Add implementation + torture test for echo_SurroundingJelmer Vernooij1-0/+35
(This used to be commit 1b71000cc15a06bd4868fbf4ce5415f5866d29a5)
2007-10-10r5394: as the timing should be fixed in the server now, don't accept to ↵Stefan Metzmacher1-10/+9
early replies anymore, also print out usecs in the debug messages metze (This used to be commit 9a657f358e7aa3f96c414de033808de82fdb831a)
2007-10-10r5310: allow for rounding errors in the sleep testAndrew Tridgell1-1/+1
(This used to be commit bd2c55a5193b29b28c4fbde643c302f0d81c95a6)
2007-10-10r5197: moved events code to lib/events/ (suggestion from metze)Andrew Tridgell1-1/+1
(This used to be commit 7f54c8a339f36aa43c9340be70ab7f0067593ef2)
2007-10-10r5185: make all the events data structures private to events.c. This willAndrew Tridgell1-0/+1
make it possible to add optimisations to the events code such as keeping the next timed event in a sorted list, and using epoll for file descriptor events. I also removed the loop events code, as it wasn't being used anywhere, and changed timed events to always be one-shot (as adding a new timed event in the event handler is so easy to do if needed) (This used to be commit d7b4b6de51342a65bf46fce772d313f92f8d73d3)
2007-10-10r4888: use the neater calling conventionAndrew Tridgell1-31/+8
(This used to be commit d93b6a5b8e9e4bf86a96262db21aa3fc1490e91d)
2007-10-10r4690: - add support for async rpc server repliesStefan Metzmacher1-14/+35
the backend should check for (dce_call->state_flags & DCESRV_CALL_STATE_FLAG_MAY_ASYNC) then it's allowed to reply async then the backend should mark that call as async with dce_call->state_flags |= DCESRV_CALL_STATE_FLAG_ASYNC; later it has to manualy set r->out.result and then send the reply by calling status = dcesrv_reply(p->dce_call); NOTE: that ncacn_np doesn't support async replies yet - implement an async version of echo_TestSleep - reenable the echo_TestSleep torture test (this need to be more strict when we have support for async ncacn_np) metze (This used to be commit f0a0dbeb25b034b1333078ca085999359f5f6209)
2007-10-10r4549: got rid of a lot more uses of plain talloc(), instead usingAndrew Tridgell1-4/+4
talloc_size() or talloc_array_p() where appropriate. also fixed a memory leak in pvfs_copy_file() (failed to free a memory context) (This used to be commit 89b74b53546e1570b11b3702f40bee58aed8c503)
2007-10-10r4520: added a enum test function to the echo pipeAndrew Tridgell1-0/+39
(This used to be commit f9e0aa1ab1faac039893db241819907c9c4bb510)
2007-10-10r3959: fix compiler warningsStefan Metzmacher1-3/+3
metze (This used to be commit e28351f710525ca9863210974544a8b1a537e63a)
2007-10-10r3428: switched to using minimal includes for the auto-generated RPC code.Andrew Tridgell1-0/+1
The thing that finally convinced me that minimal includes was worth pursuing for rpc was a compiler (tcc) that failed to build Samba due to reaching internal limits of the size of include files. Also the fact that includes.h.gch was 16MB, which really seems excessive. This patch brings it back to 12M, which is still too large, but better. Note that this patch speeds up compile times for both the pch and non-pch case. This change also includes the addition iof a "depends()" option in our IDL files, allowing you to specify that one IDL file depends on another. This capability was needed for the auto-includes generation. (This used to be commit b8f5fa8ac8e8725f3d321004f0aedf4246fc6b49)
2007-10-10r3324: made the smbtorture code completely warning freeAndrew Tridgell1-2/+3
(This used to be commit 7067bb9b52223cafa28470f264f0b60646a07a01)