test


Log

Author Commit Date CI Message
Nick Mathewson ec35eb55 2009-02-12T22:19:54 Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread. svn:r1121
Nick Mathewson acaf65c3 2009-02-11T17:23:32 Make evutil_parse_sockaddr_port give a useful socket-length output. svn:r1118
Nick Mathewson e7fd1034 2009-02-10T19:39:03 Test some formerly untested prepend cases of evbuffer. Now evbuffer coverage is over 80 percent. svn:r1108
Nick Mathewson 9e3e7b36 2009-02-10T19:38:54 More unit tests for evbuffer_add_reference to make sure that certain interleaved data patterns work; that free invokes callback; that callbacks are not invoked too early or later; etc. svn:r1107
Nick Mathewson 71604d85 2009-02-10T19:38:25 Remove some needless includes svn:r1104
Nick Mathewson f9e4e0f9 2009-02-03T18:28:53 Move bufferevent tests to regress_bufferevent.c file. svn:r1101
Nick Mathewson ea11f819 2009-02-02T22:17:32 Compile http_connection_retry_test, but mark it skipped on win32. svn:r1099
Nick Mathewson ea4b8724 2009-02-02T19:22:13 checkpoint work on big bufferevent refactoring svn:r1095
Nick Mathewson 2e3f0f68 2009-02-01T02:20:16 Enable the edge-triggered test again svn:r1092
Nick Mathewson 8d3a10f8 2009-02-01T01:43:58 Support temporarily suspending an evbuffer callback. This is different from disabling the callback, since we want to process changes, but not just yet. svn:r1091
Nick Mathewson e3e11531 2009-02-01T01:07:42 Unit tests for evbuffer callback manipulation svn:r1090
Nick Mathewson ca37fef9 2009-02-01T01:07:22 Change evbuffer callbacks to use tinytest natively and never assert. svn:r1088
Nick Mathewson a30c9eb1 2009-02-01T01:07:12 Move evbuffer tests into their own file. svn:r1087
Nick Mathewson ff7a5e12 2009-01-31T19:32:20 slightly more coverage for evutil. svn:r1086
Nick Mathewson 12e8db5b 2009-01-31T18:36:47 Convert evtag test. svn:r1085
Nick Mathewson 5831d11a 2009-01-31T18:36:37 Move rpc_test to regress_rpc. svn:r1084
Nick Mathewson fa6ae169 2009-01-31T18:36:24 Convert RPC suite. There are still some places it can exit(1), but those always run forked, so no big deal. svn:r1083
Nick Mathewson d9628ef4 2009-01-31T18:36:08 Add missing initializers svn:r1082
Nick Mathewson eac75f91 2009-01-31T07:32:14 Port DNS tests. svn:r1081
Nick Mathewson e6ba208b 2009-01-31T07:32:00 Tinytest update: mostly just to allow test skipping. svn:r1080
Nick Mathewson 4ec690d3 2009-01-31T05:45:16 Rename a couple of http tests so they all end with _test. This lets us simplify the naming. svn:r1077
Nick Mathewson 153093ec 2009-01-30T17:44:13 Port the HTTP unit tests. Most are still legacy (since they use test_ok so much), but at least they no longer exit(1) on failure svn:r1076
Nick Mathewson 241690b2 2009-01-30T17:43:59 Move util tests to regress_util.c svn:r1075
Nick Mathewson 4e9470b4 2009-01-30T17:43:48 Convert test_evutil_strtoll to new framework. svn:r1074
Nick Mathewson a8203b34 2009-01-29T23:19:57 Refactor unit tests using my spiffy new "tinytest" framework. The big win here is that we can get process-level isolation. This has been tested to work okay on at least Linux and Win32. Only the tests in regress.c have been converted wrapped in the new wrapper functions; the others are still on the old system. svn:r1073
Nick Mathewson cc7a53c1 2009-01-29T18:15:36 fix signed/unsigned warning in unit tests. can we just use "char*" on all new APIs? this void/unsigned char*/char* business is awful. svn:r1071
Nick Mathewson 7dd362b1 2009-01-29T15:09:24 Have util-internal.h define socklen_t if we need it, and include it appropriately. This fixes win32 compilation. svn:r1070
Niels Provos 66b2a7ff 2009-01-29T03:20:40 test evbuffer_add_reference svn:r1068
Nick Mathewson b85b710c 2009-01-27T22:34:36 Update copyright statements to reflect the facts that: a) this is 2009 b) niels and nick have been comaintainers for a while c) saying "all rights reserved" when you then go on to explicitly disclaim some rights is sheer cargo-cultism. svn:r1065
Nick Mathewson 8889a770 2009-01-27T22:30:46 Replace all use of config.h with event-config.h. svn:r1064
Nick Mathewson 9993137c 2009-01-27T21:10:31 Remove all trailing whitespace in all the source files. svn:r1063
Niels Provos 30653899 2009-01-27T16:35:28 make it so that test_persistent_timeout can call loopexit only once; reported by Alexander Drozdov svn:r1062
Nick Mathewson f20902a2 2009-01-22T17:56:15 Remove evperiodic_assign and its related parts: its functionality is subsumed by EV_PERSIST timeouts. svn:r1040
Nick Mathewson dc1526e0 2009-01-22T17:48:16 Fix warnings on compile: make static functions static. svn:r1037
Niels Provos fe72c885 2009-01-22T06:23:14 fix signal processing for non-kqueue backends; when a signal callback delivers a signal; from Alexander Drozdov svn:r1035
Niels Provos a077fb8c 2009-01-22T02:47:35 rename sys/signal.h to signal.h; configure m4 macro dir; this assist with compilation on Haiku svn:r1033
Niels Provos 56ea4687 2009-01-22T02:33:38 Change the semantics of timeouts in conjunction with EV_PERSIST; timeouts in that case will now repeat until deleted. svn:r1032
Nick Mathewson 309fc7c4 2009-01-21T07:51:25 New functions to provide sane threading callbacks with pthreads and win32 threading implementations. svn:r1031
Nick Mathewson 9935d5b0 2009-01-13T21:39:32 Fix win32 compilation. Surprisingly, unit tests pass too. svn:r1002
Nick Mathewson 169321c9 2009-01-13T20:26:37 Rename four internal headers to follow the -internal.h convention. svn:r1000
Nick Mathewson 980bcd68 2009-01-02T21:21:58 Work better with platforms that do not have ipv6 structures, or that do not have sin_len fields, etc. svn:r986
Nick Mathewson cfbd1680 2009-01-02T20:46:26 Add another function to parse the common address:port combination formats into a sockaddr. svn:r984
Nick Mathewson 0d9d5cfe 2009-01-02T20:46:12 New functions in evutil to clone inet_pton and inet_ntop, with tests. Adapted from Tor code. svn:r983
Niels Provos 87be18da 2008-12-25T16:25:37 implement evdns_cancel_request; test one of the new evdns_base functions svn:r980
Niels Provos eed23451 2008-12-25T16:20:45 forgot to re-enable dns tests svn:r978
Niels Provos d776f846 2008-12-23T22:23:37 deprecate the usage of signal_{add,del,set} and name it evsignal_{add,del,set} instead; move the old definitions to compat svn:r973
Niels Provos 02b2b4d1 2008-12-23T16:37:01 Restructure the event backends so that they do not need to keep track of events themselves, as a side effect multiple events can use the same fd or signal. svn:r972
Niels Provos ebcf5efc 2008-12-19T22:42:51 fix memory leaks in the regression tools; add another close detection test that validates that there are no dangling connections on the server svn:r969
Nick Mathewson dd731685 2008-12-03T20:09:13 Implement increased DSN-poisoning resistance via the 0x20 hack. svn:r958
Niels Provos ffb3966e 2008-11-27T19:34:07 minor compilation and regresson fixes; from Frank Denis svn:r952
Niels Provos c968eb3e 2008-08-19T11:26:47 Fix a bug where headers arriving in multiple packets were not parsed; fix from Jiang Hong; test by me. svn:r928
Niels Provos 3b24f4ee 2008-07-25T00:48:30 another fix; we also need to remove the signal event from the queue svn:r918
Niels Provos a4e2f52a 2008-07-20T23:31:28 add a signal and free the base for reinit test svn:r915
Niels Provos f7e61870 2008-07-11T15:49:04 support multiple events listening on the same signal; make signals regular events that go on the same event queue svn:r901
Niels Provos 5512be01 2008-07-11T15:15:04 fix a bug where deleting signals with kqueue would delete subsequent adds svn:r899
Niels Provos df97fca9 2008-07-02T06:08:16 From Scott Lamb: * Allow the user to set the Content-Length: then stream a reply. This is useful for large requests of a known size. Added unit test. * Don't send a response body on HEAD requests, 1xx status codes, 204 status codes, or 304 status codes, as described in RFC 2616 section 4.3. (Doing otherwise causes problems - in particular, if a 304 has a chunked body (even an empty one), Safari 3.1.1 issues and then fails the next request on the connection with the non-sequitur error message "Too many HTTP redirects"!) * Specify a default Content-Type: when a response body is required, not when we have data in the response buffer by the time we make the header. (I.e., do this on evhttp_send_reply_start() for consistency.) * Don't expect a body in response to HEAD requests. svn:r898
Niels Provos 707f6784 2008-07-02T04:22:48 reject negative content-length headers svn:r894
Niels Provos cb7c3bd6 2008-06-29T01:30:06 support multi-line http headers; based on a patch from Moshe Litvin svn:r890
Niels Provos 9998c0cb 2008-06-26T00:40:57 correct handling of trailing headers in chunked replies; from Scott Lamb. svn:r887
Niels Provos ac0c7e2c 2008-06-25T00:58:08 skip connection-retry test on windows svn:r869
Niels Provos f80f90ed 2008-06-24T21:01:44 fix a bug in http_connect for windows; the address was not copied correctly. svn:r863
Niels Provos 2f8708db 2008-06-24T18:04:41 ifdef out a whole bunch of sections; gettimeofday to evutil_gettimeofday svn:r862
Niels Provos 994a7c50 2008-06-24T16:39:45 close -> EVUTIL_CLOSESOCKET() gettimeofday -> evutil_gettimeofday() svn:r861
Niels Provos e736991a 2008-06-22T16:00:48 make it work with older versions of automake; from Scott Lamb svn:r858
Niels Provos 99a1063e 2008-06-21T02:21:25 support 64-bit integers in rpc structs svn:r856
Nick Mathewson 2baaac7f 2008-06-14T17:50:36 Forward-port: Rename INPUT and OUTPUT to EVRPC_INPUT and EVRPC_OUTPUT, but keep the INPUT/OUTPUT aliases on non-win32 platforms to maintain backwards compatibility. svn:r852
Niels Provos 344c2b56 2008-06-02T05:45:26 deliver partial data to request callbacks when chunked callback is set even if there is no chunking on the http level; allows cancelation of requests from within the chunked callback; from Scott Lamb. svn:r846
Niels Provos 9586a1cb 2008-06-01T16:21:24 fix an evbuffer corruption when adding an empty evbuffer; from Scott Lamb svn:r845
Nick Mathewson 9515c807 2008-05-30T17:35:20 Oops; add regress_et.c svn:r841
Nick Mathewson 39400e68 2008-05-30T16:56:34 Patch from Valery Kholodkov: support for edge-triggered events with epoll and kqueue. Changed from original patch: made test into a regression test, with explicit success/failure for edge-triggered and non-edge-triggered cases. Closes SF request 1968284. svn:r840
Niels Provos 2deb3ce0 2008-05-29T01:39:43 simplify handling of environment variables for disabling backends; make event_get_supported_methods obey environment variables; this fixes make verify; problem reported by Scott Lamb. svn:r838
Niels Provos 134344b7 2008-05-16T01:55:40 Fix use of freed memory in event_reinit; pointed out by Peter Postma svn:r834
Niels Provos 89a1512a 2008-05-15T06:33:23 close -> EVUTIL_CLOSESOCKET svn:r832
Niels Provos c3c11f27 2008-05-15T01:54:20 add a simple http server for potential benchmarking svn:r823
Nick Mathewson 7be8f13b 2008-05-14T15:56:17 r19736@catbus: nickm | 2008-05-14 11:50:49 -0400 Add casts to make some printf formats in regress.c happier. svn:r821
Nick Mathewson 0cafdeb6 2008-05-12T17:16:47 Tweaks to make unit tests fail less badly on mingw on trunk. svn:r814
Nick Mathewson c6da86ff 2008-05-12T16:44:24 r19709@catbus: nickm | 2008-05-12 12:42:48 -0400 Possible fix for [1960723] snprintf and vsnprintf return values are wrong on win32 svn:r813
Niels Provos 1080852e 2008-05-12T03:12:09 allow cancelation of user initiated http requests; this will allow cancelation of rpc requests eventually svn:r812
Niels Provos 950af186 2008-05-10T05:58:17 replace fnmatch with homegrown function svn:r804
Nick Mathewson 8acb80b4 2008-05-08T22:51:39 r15551@tombo: nickm | 2008-05-08 14:49:20 -0400 Use _get_ convention for new accessor functions. (These are all new ones as of 2.0, I believe). svn:r799
Niels Provos 3f56e364 2008-05-08T05:56:20 event_base_new_with_config() and related methods svn:r789
Niels Provos 3b2022ef 2008-05-08T05:33:15 provide an api for retrieving the supported event mechanisms svn:r788
Nick Mathewson f2d65f8a 2008-05-07T20:29:33 r19634@catbus: nickm | 2008-05-07 16:10:37 -0400 the C syntax is fn(void), not fn(). svn:r784
Nick Mathewson 68fecb7a 2008-05-07T20:29:11 r19633@catbus: nickm | 2008-05-07 16:10:00 -0400 Fix bug 1958901: stop overriding CPPFLAGS in test directory. svn:r783
Niels Provos 300a4efb 2008-05-07T01:52:24 test virtual hosts svn:r780
Nick Mathewson caa368e1 2008-05-05T19:19:47 r19610@catbus: nickm | 2008-05-05 15:18:52 -0400 Switch strcmp() tests in test_evbuffer() to use memcmp instead. Previously they broke on my Linux box. svn:r779
Nick Mathewson 4e8a339e 2008-05-05T15:46:00 r19602@catbus: nickm | 2008-05-05 11:45:18 -0400 Make most of the tests use the new headers. svn:r776
Niels Provos f940eb4b 2008-05-04T22:21:29 fix a bug where it was not possible to bind multiple sockets to the same http server; test that binding multiple sockets works. svn:r769
Niels Provos 1d30750b 2008-05-03T22:10:09 support for periodic timeouts svn:r762
Niels Provos 45e6fb0d 2008-05-03T18:23:44 cache clock_gettime/gettimeofday values in base svn:r758
Niels Provos f04497e4 2008-05-03T03:05:28 introduce evbuffer_reserve_space() and evbuffer_commit_space() to make processing in filters more efficient svn:r757
Niels Provos becc89b7 2008-05-03T02:37:18 introduce evbuffer_contiguous_space() and use it in the zlib filter test svn:r756
Niels Provos e8f450f2 2008-05-01T02:08:26 expose a way to create the rpc context manually svn:r754
Niels Provos d76cca72 2008-04-30T04:36:26 fix missing printf format argument svn:r752
Niels Provos ccb70f1b 2008-04-30T04:31:10 provide example bufferevent filters doing compression and decompression as additional regression test svn:r751
Niels Provos c58a01a2 2008-04-30T00:50:20 fix regression test; oops svn:r749
Niels Provos 682adc44 2008-04-30T00:09:16 support input/output filters for bufferevents svn:r748
Nick Mathewson 98dc98c5 2008-04-29T21:19:26 r15346@tombo: nickm | 2008-04-29 17:19:18 -0400 Remove the never-exported, never-used, never-threadsafe evhttp_hostportfile() svn:r746
Nick Mathewson 4cff82bb 2008-04-29T18:11:10 r15339@tombo: nickm | 2008-04-29 14:03:48 -0400 Note that evhttp_hostportfile is not threadsafe, and so its usage will change. Mark its first argument const. Remove a now-redundant declaration for it in http-internal.h. svn:r743
Niels Provos 0ec09b55 2008-04-29T04:35:26 also try client connection for chunked requests svn:r741