kc3-lang/libevent/test

Branch :


Log

Author Commit Date CI Message
8cc68835 2009-07-25 03:35:32 Fix the main/methods unit test to pass from "make verify". The problem was introduced when we changed the semantics of get_supported_methods() to reflect all the methods that exist. Previously, it had not returned methods disabled from the environment, but the test didn't know that. svn:r1379
49de08ef 2009-07-21 19:20:44 Push coverage of event.c a little higher svn:r1373
f4775918 2009-07-20 14:55:51 Refactor evtag tests into their own suite. svn:r1366
e8400a43 2009-07-20 14:55:35 Rename encode_int(64) to avoid polluting the global namespace. They're now called evtag_encode_int(64). The old names are available as macros in event2/tag_compat.h. Also, add unit tests for encode/decode_int64. svn:r1365
dc031990 2009-07-20 14:55:07 Add strcasecmp tests to improve evutil coverage a bit svn:r1364
9cf4ee7e 2009-07-17 21:47:35 Fix a simple warning svn:r1362
c02b305a 2009-07-17 20:23:12 Trivial tests to exercise deferred and locking bufferevent code. These are done as variations of test_bufferevent_connect, since that one exercises event callbacks as well as read/write callbacks. The coverage for bufferevent.c is now up to about 87%, from about 70%. svn:r1358
61f2a45d 2009-07-17 20:23:05 Add a tinytest flag to initialize threading. svn:r1357
4ba6eda4 2009-07-17 20:22:56 Make evthread_use_pthreads() actually return 0 on success. svn:r1356
9c2ecba7 2009-07-17 18:42:12 Oops. -1 is an integer, not a pointer. svn:r1352
d6f2e199 2009-07-17 18:38:46 Unit tests for bufferevent_get(fd|_underlying) svn:r1351
5d71b25b 2009-07-17 18:38:38 Remove all trailing whitespace from end-of-line. svn:r1350
d4e3671f 2009-07-17 18:38:21 Add a test to free_active_base to free a base with an active event. svn:r1349
043515bc 2009-07-14 18:50:06 Stop using C++ style comments. svn:r1343
e224321c 2009-07-14 18:49:42 Convert and expand free_active_base/event_base_new tests to avoid dbl-free. Patch from Zack Weinberg svn:r1342
d866f055 2009-07-13 20:03:00 Patch from Zack Weinberg: normalize perror() tt functions and add tt_fail/tt_abort_printf svn:r1340
6469598e 2009-07-03 17:43:26 Allow C identifiers as struct names; allow multiple comments in .rpc files; from Zack Weinberg; plus a tiny tweak svn:r1336
bbd14de0 2009-06-11 17:55:08 Add sometimes-needed header to regress_bufferevent.c svn:r1325
d1ffba1d 2009-06-05 19:52:13 Replace some read/write instances with send/recv to work properly on win32. svn:r1324
0b22ca19 2009-05-22 19:11:48 Use ev_ssize_t in place of ssize_t *everywhere*. svn:r1309
23243b8a 2009-05-19 21:39:35 Replace reserve/commit with new iovec-based interface. Add a new evbuffer_peek. svn:r1296
ed1bbc7a 2009-05-18 16:15:56 Tweak the evconnlistener interface a little. svn:r1295
dc4c7b95 2009-05-15 22:44:18 Change the interface of evbuffer_add_reference: give the cleanup function more info. svn:r1294
bba69e03 2009-05-15 20:23:59 New semantics for evbuffer_cb_set_flags(). Previously, set_flags() would replace all previous user-visible flags. Now it just sets the flags, and there is a clear_flags() function to clear other flags. svn:r1293
83f46e51 2009-05-13 20:36:56 Do not use the "evbuffer_" prefix to denote parts of bufferevents. This is a bit of an interface doozy, but it's really needed in order to be able to document this stuff without apologizing it. This patch does the following renamings: evbuffercb -> bufferevent_data_cb everrorcb -> bufferevent_event_cb EVBUFFER_(READ,WRITE,...) -> BEV_EVENT_(...) EVBUFFER_(INPUT,OUTPUT) -> bufferevent_get_(input,output) All the old names are available in event2/bufferevent_compat.h svn:r1283
89109010 2009-05-06 02:34:10 Addition to bufferevent_async unit test svn:r1279
fe47003d 2009-05-05 16:52:37 Make unit tests for bufferevent_async compile and _almost_ work. Either I need to make the callbacks get deferred in a base with no events (doable), or I need to make it okay to call launch_read from inside the callback for read (tricky). svn:r1277
02801e5b 2009-05-05 15:36:28 Add a trival start of a be_async test. svn:r1276
659d54d5 2009-05-05 02:59:26 Add new code to make and accept connections. This is stuff that it's easy to get wrong (as I noticed when writing bench_http), and that takes up a fair amount of space (see http.c). Also, it's something that we'll eventually want to abstract to use IOCP, where available. svn:r1272
bd73ed48 2009-05-02 16:24:23 Revise regress_pthreads.c to not use event_set svn:r1269
7f967807 2009-04-30 20:48:40 Initial unit test for overlapped evbuffer usage. It's lame, but it doesn't crash any more. svn:r1259
16612eb9 2009-04-30 19:20:42 Beef up the events in the last test a little. svn:r1256
ec146883 2009-04-30 19:05:43 Oops: actually commit changes to build and use regress_iocp svn:r1255
f1090833 2009-04-30 19:04:44 First tests for IOCP loop, and related fixes. The fixes are: a shutdown mode that works, and a way to activate an arbitrary event_overlapped. svn:r1254
b45cead7 2009-04-30 18:05:33 Make environment-variable tests work on win32, which has only one method and lacks (un)setenv. svn:r1253
586aa468 2009-04-28 19:08:27 Unit test for disabling events with EVENT_NO*, and for EVENT_BASE_FLAG_IGNORE_ENV. svn:r1247
b228ff91 2009-04-25 00:15:31 remove vararg macros for accessing evrpc structs svn:r1243
d70b0804 2009-04-23 18:08:42 Make main/methods test pass on systems where only one backend exists. svn:r1235
1ad03264 2009-04-23 18:04:50 Fix win32 compilation issues. svn:r1234
8ba25b9e 2009-04-23 05:20:08 Add missing regress_minheap.c file svn:r1230
5c104cef 2009-04-23 00:33:37 Add a randomized test for heap correctness. svn:r1229
df0617f2 2009-04-23 00:21:23 Use signal.h, not sys/signal.h. This is patch 2673214 from mmadia. It is correct, since we unconditionally include signal.h in many other places, and only sometimes include sys/signal.h. It is necessary to compile on Haiku, I'm told. svn:r1228
0068c98a 2009-04-23 00:01:14 Make version test ignore the bottom byte of the version number. svn:r1225
b21be245 2009-04-23 00:00:55 Somehow free_active_base was using the socketpair, but not saying it needed it. How did this ever work? svn:r1223
1f9c9e51 2009-04-22 15:38:50 Add a missing "static". svn:r1219
133a015d 2009-04-21 18:48:05 Make sure the test case for mem_functions hits strdup too. svn:r1218
7f1855d0 2009-04-21 18:47:35 Add a basic test for set_mem_functions svn:r1216
386279d0 2009-04-21 18:47:02 Add a test for event_pending; especially the timeout part. svn:r1214
ff1f4295 2009-04-21 18:46:43 Unit tests for event_base_once. svn:r1213
ea664bf2 2009-04-21 18:46:30 Refactor test wrappers to divide legacy items from useful stuff. svn:r1212
122e934e 2009-04-21 18:46:11 Add unit tests for version methods and feature-based backend selection svn:r1211
7cf8a7b0 2009-04-21 18:45:59 Call the main testcases "main", not "legacy". svn:r1210
1bb8e010 2009-04-21 16:17:59 Format microseconds correctly in bench_httpclient svn:r1209
eda27f95 2009-04-19 20:54:12 Update copyright notices, add some missing license statements svn:r1208
4d8919ec 2009-04-19 01:58:26 Do not try to double-free the nameserver in regression test svn:r1202
b182ed76 2009-04-18 18:28:18 More tweaks to http stress-tester svn:r1201
e4f24219 2009-04-18 00:12:52 Add a new bench_httpclient for a trivial codecon demo. svn:r1198
b3460387 2009-04-17 06:58:18 Even _more_ recent tinytest, designed to give better help output. svn:r1192
81280062 2009-04-17 06:57:52 Add the latest tinytest. This one supports a --terse flag and a --no-fork flag, and outputs nicer. svn:r1190
a8f6d961 2009-04-17 06:56:09 Actually stop using EVBUFFER_LENGTH/DATA, and move them to buffer_compat.h svn:r1183
30648529 2009-04-17 01:03:07 have evhttp_set_cb return an int; -1 on failure, 0 on success; this is better than returning a pointer svn:r1179
4e8cdc6f 2009-04-13 18:23:02 Fix two windows compilation bugs. svn:r1171
d475fb58 2009-04-12 00:38:31 http benchmark: add a way to change the size of the buffer; also use add_reference svn:r1158
23085c92 2009-04-10 15:01:31 Add a linked-pair abstraction to bufferevents. The new bufferevent_pair abstraction works like a set of buferevent_sockets connected by a socketpair, except that it doesn't require a socketpair, and therefore doesn't need to get the kernel involved. It's also a good way to make sure that deferred callbacks work. It's a good use case for deferred callbacks: before I implemented them, the recursive relationship between the evbuffer callback and the read callback would make the unit tests overflow the stack. svn:r1152
ce146eb1 2009-04-10 05:43:45 Fix parsing of queries where the encoded queries contained \r, \n or + svn:r1148
6dece3e9 2009-04-10 05:22:15 revert last commit; git user error svn:r1147
f43f1d14 2009-04-10 05:18:18 initial version of query decoding patch svn:r1146
747331d1 2009-04-08 03:04:39 Add freeze support to evbuffers. From the documentation: Prevent calls that modify an evbuffer from succeeding. A buffer may frozen at the front, at the back, or at both the front and the back. If the front of a buffer is frozen, operations that drain data from the front of the buffer, or that prepend data to the buffer, will fail until it is unfrozen. If the back a buffer is frozen, operations that append data from the buffer will fail until it is unfrozen. We'll use this to ensure correctness on an evbuffer when we're waiting for an overlapped IO call to finish. svn:r1143
68d0139f 2009-04-07 04:49:25 Refactor the zlib and pthreads tests to appear in the regular tinytest tree structure. svn:r1141
d2e9caa6 2009-04-06 20:38:19 Fix evdns_cancel to alert callback and free associated RAM. Also, we add a test to make sure evdns_cancel is working properly. svn:r1139
f1b1bad4 2009-04-03 14:27:03 Make the new evbuffer callbacks use a new struct-based interface. The old interface would fail pretty hard when we had to batch up multiple adds and drains in a single call. svn:r1131
f90500a5 2009-04-03 01:21:36 Add a new improved search function. The old evbuffer_find didn't allow iterative searching, and forced us to repack the buffer completely every time we searched in it. The new evbuffer_search addresses both of these. As a side-effect, the evbuffer_find implementation is now a little more efficient. svn:r1130
0afb1f7f 2009-04-01 16:08:34 Glibc mkstemp requires exactly 6 Xs. svn:r1129
73094d59 2009-02-13 13:43:35 Make tmpfile code compile without warnings svn:r1123
79b7799b 2009-02-13 01:42:59 a simple test for evbuffer_add_file svn:r1122
ec35eb55 2009-02-12 22:19:54 Make threading functions global, like the mm_ functions. Use the libevent_pthread.la library in regress_pthread. svn:r1121
acaf65c3 2009-02-11 17:23:32 Make evutil_parse_sockaddr_port give a useful socket-length output. svn:r1118
e7fd1034 2009-02-10 19:39:03 Test some formerly untested prepend cases of evbuffer. Now evbuffer coverage is over 80 percent. svn:r1108
9e3e7b36 2009-02-10 19: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
71604d85 2009-02-10 19:38:25 Remove some needless includes svn:r1104
f9e4e0f9 2009-02-03 18:28:53 Move bufferevent tests to regress_bufferevent.c file. svn:r1101
ea11f819 2009-02-02 22:17:32 Compile http_connection_retry_test, but mark it skipped on win32. svn:r1099
ea4b8724 2009-02-02 19:22:13 checkpoint work on big bufferevent refactoring svn:r1095
2e3f0f68 2009-02-01 02:20:16 Enable the edge-triggered test again svn:r1092
8d3a10f8 2009-02-01 01: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
e3e11531 2009-02-01 01:07:42 Unit tests for evbuffer callback manipulation svn:r1090
ca37fef9 2009-02-01 01:07:22 Change evbuffer callbacks to use tinytest natively and never assert. svn:r1088
a30c9eb1 2009-02-01 01:07:12 Move evbuffer tests into their own file. svn:r1087
ff7a5e12 2009-01-31 19:32:20 slightly more coverage for evutil. svn:r1086
12e8db5b 2009-01-31 18:36:47 Convert evtag test. svn:r1085
5831d11a 2009-01-31 18:36:37 Move rpc_test to regress_rpc. svn:r1084
fa6ae169 2009-01-31 18: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
d9628ef4 2009-01-31 18:36:08 Add missing initializers svn:r1082
eac75f91 2009-01-31 07:32:14 Port DNS tests. svn:r1081
e6ba208b 2009-01-31 07:32:00 Tinytest update: mostly just to allow test skipping. svn:r1080
4ec690d3 2009-01-31 05:45:16 Rename a couple of http tests so they all end with _test. This lets us simplify the naming. svn:r1077
153093ec 2009-01-30 17: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
241690b2 2009-01-30 17:43:59 Move util tests to regress_util.c svn:r1075
4e9470b4 2009-01-30 17:43:48 Convert test_evutil_strtoll to new framework. svn:r1074
a8203b34 2009-01-29 23: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