test


Log

Author Commit Date CI Message
Sebastian Hahn 3f79a3a0 2011-02-23T09:19:08 Continue AM_CFLAGS to AM_CPPFLAGS correction 9c469db300e1b270a93c6b04c1709ac0f7751136 had started with the conversion but left out another instance of incorrectly used AM_CFLAGS. Dave Hart provided the suggestion for this fix.
Nick Mathewson 5dc200b7 2011-02-22T18:53:55 Merge branch '20_uri_nonconformant' into patches-2.0
Nick Mathewson 15b2408c 2011-02-22T16:13:49 Use $(), not @@, for LIBEVENT_GC_SECTIONS
Nick Mathewson 039b9bd0 2011-02-22T00:31:56 Use %s with printf in test.sh
Dave Hart 9c469db3 2011-02-13T02:27:42 Correct an AM_CFLAGS to an AM_CPPFLAGS in test/Makefile.am
Dave Hart 49e9bb7f 2011-02-13T02:05:04 Add configure options to disable installation, regression tests The main reason for disabling installation is if you're building libevent as a subpackage for embedding: you want to have your main package's "make all" build libevent, but you don't want your main package's "make install" to install libevent.
Dave Hart 0965c563 2011-02-13T01:50:40 Use the gcc -ffunction-segments feature to allow gc when linking with static libevent
Harlan Stenn 05a2c22f 2011-02-13T01:30:37 Make test-eof fail with a timeout if we never get an eof. Previously, it would just wait forever.
Harlan Stenn bbf55150 2011-02-13T01:25:33 Include util-internal.h as needed to build on platforms with no sockaddr_storage
Harlan Stenn 10c834c4 2011-02-13T01:22:25 Include arpa/inet.h as needed on HPUX
Nick Mathewson 95060b54 2011-02-13T00:41:22 Make URI parser able to tolerate nonconformant URIs. If the EVHTTP_URI_NONCONFORMANT flag is passed in (which it is when parsing URIs we get over the wire), then we relax our checks a lot. Specifically, we do nothing to check for correct characters in the path, query, and fragment parts of such a URI. We could do much more here: we could relax our hostname requirements, deal with spaces differently/better, trap some errors but not others, etc. But this should solve the worst user-agent compatibility issues for now; the other issues can wait for a later release.
Dave Hart b4f89b60 2011-02-01T01:15:48 Fix test.sh output on solaris Solaris echo -n doesn't omit newlines, but printf omits newlines in more places.
Nick Mathewson 6092f126 2011-01-31T16:37:27 Fix http unit test on non-windows platforms without getaddrinfo
Nick Mathewson 22f4af65 2010-12-09T11:43:12 Remove end-of-line whitespace
Constantine Verutin d23839fc 2010-12-07T11:43:52 Reject overlong http requests early when Expect:100-continue is set
Evan Jones c0bf63ce 2010-12-02T14:13:33 tests: Use relative includes ("") instead of system includes (<>)
Evan Jones 4f332091 2010-12-02T14:09:52 tests: Use new event2 headers instead of old compatibility headers.
Christopher Davis fa9305f8 2010-11-29T18:25:04 Preliminary support for Continue expectation in evhttp.
Christopher Davis aab8c38b 2010-11-05T11:17:07 Add evhttp server alias interface, correct flagging of proxy requests. evhttp needs to be mindful of all hostnames and addresses that clients use to contact the main server and vhosts to know the difference between proxy requests and non-proxy requests.
Kevin Bowling c2e5e22c 2010-11-23T14:09:03 xlC doesn't obey C99 comments here. autoconf isn't invoking full C99 mode.
Nick Mathewson 7bcace2d 2010-11-22T21:02:34 Fix some irix compilation warnings spotted by Kevin Bowling
Nick Mathewson 150d7d0a 2010-11-22T20:24:03 Merge remote branch 'kev009/master'
Kevin Bowling e8749823 2010-11-22T16:40:31 Fix IRIX build. sa_family collides with a #define in sys/socket.h on IRIX.
Nick Mathewson 26049c2f 2010-11-22T16:24:52 Merge remote branch 'github/20_getaddrinfo_cancel_v2'
Nick Mathewson da1bf528 2010-11-22T16:24:09 Add a stress test for getaddrinfo_cancel
Nick Mathewson ece974fb 2010-11-22T14:13:24 Reorder backends in test.sh to match preference order in event.c
Nick Mathewson aed7e029 2010-11-22T14:10:01 Make unit tests for epoll-with-changelist pass The only changes needed were to handle the fact that the methodname "epoll (with changelist)" matches the environment variable EVENT_NOEPOLL rather than the imaginary "EVENT_EPOLL (WITH CHANGELIST)".
Nick Mathewson 3a67d0bf 2010-11-19T17:09:30 Resolve an evport bug in the thread/forking test
Nick Mathewson 5c8a59e8 2010-11-09T10:19:05 Merge remote branches 'github/20_evdns_cancel_segfault_v2', 'github/20_http_close_detect', 'github/20_http_versions', 'github/20_more_http_methods', 'github/20_shutdown_iocp_listener' and 'github/20_win64_fixes'
Nick Mathewson 3db6bc00 2010-11-09T10:03:00 Remove some debugging puts() calls from allow_methods test
Nick Mathewson 75e3320e 2010-11-04T12:41:13 Units test for unexpected evhttp methods.
Christopher Davis 34b84b97 2010-11-03T14:38:45 Fix more wn64 warnings.
Nick Mathewson 985430ae 2010-11-03T15:17:57 Remove need for http_compat.h in http tests
Nick Mathewson 0b137f45 2010-11-03T15:14:29 Stop accessing http request struct directly from in the unit tests.
Nick Mathewson c91622d1 2010-11-03T15:04:44 Stop using event_compat.h in regress_http
Nick Mathewson 9bb82393 2010-11-03T14:31:23 Convert the rest of the http tests to be non-legacy unit tests.
Nick Mathewson 353402a8 2010-11-03T14:13:20 Rename the confusing "base" static variable in regress_http.c
Nick Mathewson 8505a744 2010-11-03T13:55:20 Start porting http tests to not use legacy interfaces
Nick Mathewson 7484df61 2010-11-01T13:43:43 Fix even more win64 warnings
Christopher Davis f8064762 2010-10-28T10:11:25 Increase the skew tolerance to 2 seconds in thread/deferred_cb_skew This is to make the test not fail on Sebastian Hahn's Win7 box.
Dimitre Piskyulev f817bfa4 2010-10-27T17:31:52 Fix some ints to evutil_socket_t; make tests pass on win64.
Nick Mathewson 5d389dc0 2010-10-26T22:27:57 Fix some uses of int for socket in regress
Nick Mathewson c281aba3 2010-10-24T11:38:29 Fix a nasty bug related to use of dup() with epoll on Linux Current versions of the Linux kernel don't seem to remove the struct epitem for a given (file,fd) combo when the fd is closed unless the file itself is also completely closed. This means that if you do: fd = dup(fd_orig); add(fd); close(fd); dup2(fd_orig, fd); add(fd); you will get an EEXIST when you should have gotten a success. This could cause warnings and dropped events when using dup and epoll. The solution is pretty simple: when we get an EEXIST from EPOLL_CTL_ADD, we retry with EPOLL_CTL_MOD. Unit test included to demonstrate the bug. Found due to the patient efforts of Gilad Benjamini; diagnosed with help from Nicholas Marriott.
Nick Mathewson bf11e7dd 2010-10-21T15:33:13 Merge branch 'http_uri_parse'
Nick Mathewson bc98f5e6 2010-10-21T14:53:21 Unit tests for evhttp_uri_set*
Nick Mathewson 45f6869c 2010-10-21T14:41:12 Make evhttp_uri non-public, and give it accessor functions.
Nick Mathewson d9ffa899 2010-10-21T12:48:13 Update the HTTP regression tests to use Libevent2 apis for non-http stuff
Nick Mathewson 1f507d75 2010-10-21T12:27:16 Stop using Libevent-1 headers in regress_http
Nick Mathewson cd00079b 2010-10-21T12:19:28 Add evhttp_connection_get_base() to get the event_base from an http connection Based on a patch by Mark Ellzey from 27 July 2010. Closes ticket 3052406
Nick Mathewson a5a76e68 2010-10-19T12:35:50 Add a huge pile of tests for the new URI functions, and make them pass.
Nick Mathewson ad923a11 2010-10-19T12:33:50 Improvements to tinytest_macros.h First, handle cases where we have %s in a tt_want or tt_assert. Second, add tt_want_*_op that do a tt_*_op test, but do not exit the test on failure. We should push these upstream to tinytest some time.
Nick Mathewson eaa5f1d9 2010-10-19T11:26:59 Revise evhttp_uri_parse implementation to handle more of RFC3986
Pavel Plesov 86dd720a 2010-08-08T16:46:39 Introduce absolute URI parsing helpers. See evhttp_uri_parse(), evhttp_uri_free() and evhttp_uri_join() for details.
Nick Mathewson f13e449b 2010-10-18T14:20:06 Merge branch 'http_parse'
Nick Mathewson e5870690 2010-10-18T13:53:31 Modernize header usage in bench_http.c
Nick Mathewson 4ebf9509 2010-10-14T14:40:40 Fixes for MSVC compilation
Nick Mathewson e06f514d 2010-10-14T13:51:24 Fix signed/unsigned warnings on win32
Nick Mathewson e5c214a4 2010-10-14T13:16:41 Fix -Wsigned-compare warnings in test/*
Nick Mathewson 02f6259f 2010-10-14T11:44:32 New unit test for ssl bufferevents starting with connected SSLs.
Nick Mathewson 34331e45 2010-10-08T01:09:02 The corrected bufferevent filter semantics let us fix our openssl tests
Nick Mathewson a8148ced 2010-10-08T13:05:13 New evhttp_uri(encode|decode) functions to handle + and NUL characters right The old evhttp_decode_uri() function would act as tough it was doing an (illegal, undefined) decode operation on a whole URL at once, and treat + characters following a ? as different from + characters preceding one. But that's not useful: If you are decoding a URI before splitting off query parameters, you are begging to fail as soon as somebody gives you a value with an encoded & in it. The new evhttp_uridecode() function takes an argument that says whether to decode + signs. Both uridecode and uriencode also now support encoding or decoding to strings with internal 0-valued characters.
Christopher Davis 62b429af 2010-10-07T13:41:39 Make iocp/listener/error work; don't accept again if lev is disabled.
Nick Mathewson 127d4f21 2010-09-23T16:49:58 Add a LEV_OPT_THREADSAFE option for threadsafe evconnlisteners
Nick Mathewson b1756d01 2010-10-06T11:48:52 Let evhttp_parse_query return -1 on failure We already detected certain malformed queries, but we responded by aborting the query-parsing process half-way through without telling the user. Now, if query-parsing fails, no headers are returned, and evhttp_parse_query returns -1.
Nick Mathewson 5b7a3706 2010-10-05T14:29:48 Fix warnings on mingw with gcc 4.5
Nick Mathewson d49b5e33 2010-09-27T15:12:55 Do not search outside of the system directory for windows DLLs Hardens against some attacks.
Nick Mathewson 045eef4c 2010-09-23T14:23:45 Unit tests for listener error callbacks
Nick Mathewson 4858b794 2010-09-15T01:54:51 Remove the now-useless evsig_caught and evsig_process
Nick Mathewson 720bd933 2010-09-15T01:08:39 Warn when using the error-prone EV_SIGNAL interface in an error-prone way. Also, fix a couple of race conditions in signal.c When using the signal.c signal backend, Libevent currently only allows one event_base to actually receive signals at a time. (This has been the behavior since at least 1.4 and probably much earlier.) Now, we detect and warn if you're likely to be racing about which signal goes to which thread. We also add a lock to control modifications of the evsig_base field, to avoid race conditions like those found by Jason Toffaletti. Also, more comments. Comments are good.
Nick Mathewson f0bd83ea 2010-09-09T16:13:09 Bump to the latest version of tinytest This lets us do without libevent-specific code in tinytest.c, and lets us add a feature to skip individual tests from the command line.
Nick Mathewson a5ce9ad4 2010-09-09T16:01:42 Make SSL tests cover enabling/disabling EV_READ. I want my 80% coverage.
Nick Mathewson 2756a10c 2010-09-09T13:43:31 Add a missing time.h include to test/regress_thread.c
Nick Mathewson fb36f9a7 2010-09-09T13:00:54 Fix an uninitialized-variable warning on windows
Christopher Davis 3ec65d69 2010-09-08T19:55:13 Fix a few Windows compile warnings.
Nick Mathewson 25b6a74b 2010-09-08T14:53:57 Merge branch 'tests'
Nick Mathewson de412948 2010-09-08T14:52:24 Add a missing header for regress_thread.c
Sebastian Hahn 911e0db8 2010-09-08T20:29:39 Fix a compile warning in regress_thread.c
Nick Mathewson 3658b169 2010-09-08T14:12:12 Merge remote branch 'chrisd/iocp-fixes4' Conflicts: test/regress_thread.c
Nick Mathewson 9580e282 2010-09-08T14:00:45 Merge branch 'th_notify_fd_reinit'
Nick Mathewson ce85280b 2010-09-08T13:29:06 Improve testing of when thread-notification occurs
Christopher Davis 17a14f1a 2010-09-01T11:04:57 Only process up to MAX_DEFERRED deferred_cbs at a time. If threads queue callbacks while event_process_deferred_callbacks is running, the loop may spin long enough to significantly skew timers. A unit test stressing this behavior is also in this commit.
Christopher Davis 2447fe88 2010-08-28T04:07:48 Add event_config_set_num_cpus_hint for tuning thread pools, etc.
Christopher Davis 499452f4 2010-08-28T02:44:11 IOCP-related unit test tweaks
Christopher Davis d844242f 2010-08-28T02:08:27 Stop IOCP when freeing the event_base.
Nick Mathewson 1115366e 2010-09-07T10:28:15 Fix a few memory leaks in the tests
Nick Mathewson 42090072 2010-09-06T15:47:07 Move the "function to getsockname() on a listener" to regress_testutils This reverts commit fab50488fcb741884ccdfa7b83643eac3e5c9cbf. The function was, on reflection, not important enough to break the feature freeze, since it's trivial to build on your own.
Shuo Chen b0f284cb 2010-09-06T10:10:17 Fix event_del(0) instance in bench.c
Nick Mathewson b5dd8064 2010-09-03T22:00:25 Fix uninitialized port var in http_delete_test. Last one, I hope.
Nick Mathewson 3b3fb743 2010-09-03T21:03:25 Fix uninitialized variables in http_bad_request_test. (oops)
Nick Mathewson a97320ac 2010-09-03T18:48:31 Allow more than one copy of regression tests to run at once Mostly this was a matter of just removing all the hardwired ports in the test code. The http/connection_retry test is still a little screwy, though.
Nick Mathewson 041989fb 2010-08-17T14:44:12 Rename regress_pthread.c to regress_thread.c
Nick Mathewson 743f8665 2010-08-23T11:48:46 Honor NDEBUG; build without warnings with NDEBUG; make NDEBUG always-off in unit test code
Nick Mathewson 5fb10958 2010-08-16T22:55:45 Add a unit test for conditions
Nick Mathewson d74ae381 2010-08-16T12:38:22 Make the regress_pthread.c tests work on windows with current test APIs
Nick Mathewson 4022b287 2010-08-13T11:34:39 Change include order in Makefile.nmake If there is an event-config.h in include/event2 (either because we screwed up packaging like in 2.0.6-rc or because we previously tried building with mingw and we didn't make distclean in the middle), we want MSVC to find the one one in WIN32-Code/include/event2 first. Found by Gilad Benjamini.
Nick Mathewson 0bffe43a 2010-08-09T12:08:40 Fix a nasty dangling-event bug when using rate-limiting groups When we freed a bufferevent that was in a rate-limiting group and blocked on IO, the process of freeing it caused it to get removed from the group. But removing the bufferevent from the group made its limits get removed, which could make it get un-suspended and in turn cause its events to get re-added. Since we would then immediately _free_ the events, this would result in dangling pointers. Fixes bug 3041007.
Nick Mathewson ec347b92 2010-07-07T16:45:03 Move event-config.h to include/event2 This change means that all required include files are in event2, and all files not in event2/* are optional.
Nick Mathewson 28f31a4f 2010-08-06T16:36:23 Fix unit tests with -DUSE_DEBUG enabled If you were to enable USE_DEBUG and slog through all 700+ MB of debugging output, you'd find that one of the unit tests failed, since it tested the debug logging code, but the string it expected and the string it logged differed by a tab vs 2 spaces.
Nick Mathewson ea1ea3d6 2010-08-06T13:34:51 Make test-changelist count cpu usage right on win32
Nick Mathewson 9b602096 2010-08-06T13:03:17 Use AF_INET socketpair to test sendfile on Solaris