Ryan Dahl
bf86b2e273
Run ping-pong bench for 5 secs
2011-05-10 00:42:18 -07:00
Ryan Dahl
2f4e65a1b2
Port to Solaris
2011-05-10 06:53:50 +00:00
Ryan Dahl
f0de01379f
Use argv[0] if we can't get_executable_path()
2011-05-09 23:12:44 -07:00
Ryan Dahl
9f652d4729
Benchmarks print their own name
2011-05-09 21:39:02 -07:00
Ryan Dahl
1b85c9f211
Parsable output from pump bench
2011-05-09 21:29:33 -07:00
Ryan Dahl
34f12fa5a5
Remove unnecessary printf
2011-05-09 19:40:31 -07:00
Bert Belder
3530433dd1
Memory leak in pump benchmark
2011-05-10 02:43:10 +02:00
Bert Belder
391f0098de
Loopback pump benchmark
2011-05-10 01:39:54 +02:00
Bert Belder
a379649899
Add handle->write_queue_size support for windows
2011-05-09 23:55:11 +02:00
Ryan Dahl
4eb2c6b3f2
Remove unnecessary function
2011-05-09 09:18:15 -07:00
Bert Belder
820c942e3a
Make MS happy, declare variables first
2011-05-09 16:59:20 +02:00
Ryan Dahl
8f9ff78413
oio_err -> oio_err_t
2011-05-09 02:30:11 -07:00
Ryan Dahl
f71ea7f65d
Fix compiler warning
2011-05-09 02:27:26 -07:00
Ryan Dahl
cc72a0d1ed
unix: implement OIO_ASYNC
...
Had to hack up the test to be inline with how libev does things.
2011-05-09 02:25:03 -07:00
Ryan Dahl
67118c0b58
unix: initial implementation of prepare, check, idle
...
Had to comment out a few of the asserts in the test.
2011-05-09 01:02:06 -07:00
Ryan Dahl
9e9bae5eb6
unix: Stub out async and thread functions
2011-05-08 22:47:51 -07:00
Bert Belder
b1a8675ced
Add test-async
2011-05-09 05:52:05 +02:00
Bert Belder
801b874415
Implement test threading helpers for windows
2011-05-09 05:52:04 +02:00
Bert Belder
d4c5e599f3
Define API for test threading helpers
2011-05-09 05:52:04 +02:00
Bert Belder
517a296c85
Add checks to test-loop-handles
2011-05-09 05:41:12 +02:00
Ryan Dahl
ba31e8d0fa
Add _t to typedef structs
2011-05-08 02:40:39 -07:00
Bert Belder
5a5b435c5e
Minor test-loop-handles fix
2011-05-08 05:08:31 +02:00
Bert Belder
e0be8efef6
Test for oio_prepare/oio_check/oio_idle
2011-05-08 04:45:56 +02:00
Ryan Dahl
5591ed9d74
Replace dummy benchmark with sizeof(oio_handle)
2011-05-07 19:32:51 -07:00
Bert Belder
850e4072e7
tests & benchmarks - make internal stuff static
2011-05-08 03:28:28 +02:00
Ryan Dahl
8e1645b85f
LF after tests complete
2011-05-05 00:21:13 -07:00
Ryan Dahl
e9dcf598cc
unix: Close on EOF if already shutdown
2011-05-04 15:36:40 -07:00
Bert Belder
636c75e0b6
Update ping-pongs benchmark to use the new api
2011-05-04 23:25:44 +02:00
Ryan Dahl
54c9436501
unix: fix test-callback-stack
2011-05-04 13:56:50 -07:00
Bert Belder
9d9c242a24
More extensive test-callback-stack. Fails on windows now.
2011-05-04 17:10:33 +02:00
Bert Belder
0d28b9e549
Echo server should shutdown instead of close
2011-05-04 03:59:35 +02:00
Ryan Dahl
7de6861146
shutdown half-implemented on unix
2011-05-03 16:57:05 -07:00
Ryan Dahl
a8e4c0bc6b
Disable fail-always and pass-always
2011-05-03 16:56:26 -07:00
Ryan Dahl
b5e9579d05
Work around possible linux bug in bind_error_addrnotavail_1
2011-05-03 16:55:16 -07:00
Bert Belder
6d09362c8e
Improve test-runner output
...
* fix rewind_cursor() for windows
* use stderr consistently
* let rewind_cursor() return void; closes #14
2011-05-04 00:41:50 +02:00
Bert Belder
773b0dcf79
Remove trailing whitespace
2011-05-04 00:41:49 +02:00
Bert Belder
270078adef
Fix bugs in test-delayed-accept
2011-05-04 00:41:48 +02:00
Bert Belder
30d16e2dfd
Windows: pass test-bind-error-fault
2011-05-04 00:41:37 +02:00
Bert Belder
26148c1310
No EACCESS, expect EADDRNOTAVAIL instead
2011-05-04 00:25:48 +02:00
Ryan Dahl
17c568b235
unix: fix tcp-writealot
2011-05-03 13:28:56 -07:00
Bert Belder
7124fc5eca
Updated echo-server
2011-05-03 21:30:09 +02:00
Bert Belder
b909ff5fba
Some test fixes
2011-05-03 05:22:21 +02:00
Bert Belder
d553776f5d
Fix echo-server and test-ping-pong
2011-05-03 02:55:51 +02:00
Bert Belder
6accf285db
Fixed tests
2011-05-03 02:35:11 +02:00
Bert Belder
1a76881cb0
Yet another oio_read api. Hopefully this one sticks.
2011-05-03 00:31:22 +02:00
Ryan Dahl
8c6c48595a
Make test runner better.
...
Probably screws up windows.
Fixes #30 .
2011-04-28 15:19:11 -04:00
Joshua Peek
9b92e13721
Use _NSGetExecutablePath on darwin
...
Closes #26 .
2011-04-28 01:18:00 +02:00
Ryan Dahl
b4836377f9
unix runner: implement timeout on process_wait
2011-04-25 21:54:17 -07:00
Ryan Dahl
1d9e1850f6
Linux passes bind tests
2011-04-25 20:08:56 -07:00
Bert Belder
a6430f4121
More bind error tests
2011-04-26 03:48:08 +02:00
Ryan Dahl
0a7c19e19e
unix: implement errnos
2011-04-25 18:17:01 -07:00
Bert Belder
c3cd1ae937
Add test for EADDRINUSE
2011-04-26 01:59:37 +02:00
Bert Belder
7e9e0e5e32
Test-ping-pong: don't bind client address
2011-04-25 23:20:08 +02:00
Bert Belder
89da632a19
Make test-tcp-writealot faster
2011-04-25 23:19:52 +02:00
Bert Belder
c48e753d98
Fix bug in test-timeout
2011-04-25 23:17:48 +02:00
Bert Belder
a5bf3988ee
Write-a-lot test
2011-04-22 05:12:10 +02:00
Bert Belder
c18d6649f8
Style
2011-04-22 05:09:58 +02:00
Bert Belder
c61b38f48b
Test for not immediately calling oio_accept from accept_cb
...
Closes #10 .
2011-04-22 00:46:31 +02:00
Alan Gutierrez
9468c6570a
Check oio_err in connection_fail test.
...
* Renamed test_connection_fail to connection_fail following the conventions.
* Mapped Windows error ERROR_CONNECTION_REFUSED to OIO_ECONNREFUSED.
* Asserting that the oio_err in connection_fail is OIO_ECONNREFUSED.
2011-04-21 18:44:59 +08:00
Bert Belder
5bcbc31920
Tests / benchmarks use new error handling api
2011-04-20 22:34:21 +02:00
Bert Belder
67a3fa24dc
Revert "Remove oio_err - use ints"
...
This reverts commit 111536c9e5 .
2011-04-19 23:48:47 +02:00
Bert Belder
8a187171ed
Remove oio_write2.
...
Closes #20
2011-04-19 17:04:31 +02:00
Bert Belder
53f9d5a841
Allow tests and benchmarks to use the same helpers.
...
Closes #21 .
2011-04-19 14:51:10 +02:00
Bert Belder
2f1150e680
Fix windows build. Test-connection-fails still fails.
2011-04-19 14:22:18 +02:00
Ryan Dahl
111536c9e5
Remove oio_err - use ints
2011-04-19 02:29:36 -07:00
Ryan Dahl
595756048c
Linux passes test_connection_fail
2011-04-19 02:09:58 -07:00
Ryan Dahl
461f0a74ce
Add test-connection-fail. Not yet passing linux.
...
Feel free to modify.
2011-04-19 01:50:50 -07:00
Ryan Dahl
1a99dcc980
Add ping-pong benchmark
...
On Linux I'm getting
ping_pongs: 22807 pings
2011-04-18 23:51:53 -07:00
Bert Belder
5275b036b0
Benchmark runner
2011-04-19 04:47:21 +02:00
Ryan Dahl
61e1f5f3c9
s/oio_tcp_handle_init/oio_tcp_init/
2011-04-18 13:01:50 -07:00
Ryan Dahl
8f6a175e9d
s/oio_tcp_handle_accept/oio_accept/
2011-04-18 12:53:02 -07:00
Ryan Dahl
cf4fbc0925
Add copyright headers, license file.
...
closes #17 .
2011-04-18 11:11:30 -07:00
Bert Belder
981616514b
More MinGW compatibility
2011-04-18 19:29:11 +02:00
Bert Belder
50e3c5fa97
Resolve MinGW compile errors
2011-04-18 18:08:36 +02:00
Bert Belder
a3be5339e2
Rename test-runner to just runner
...
And a minor fix to the VS solution.
2011-04-18 14:44:01 +02:00
Ryan Dahl
c3eda7a4da
oio_tcp_handle_accept() does not require initialization of client
...
closes #13 .
2011-04-18 03:20:05 -07:00
Ryan Dahl
fa439e7bbc
Style
2011-04-18 00:40:50 -07:00
Ryan Dahl
59f1ce0f44
Macro styling for ASSERT and FATAL.
...
closes #8 .
closes #6 .
2011-04-18 00:29:56 -07:00
Ryan Dahl
d546a3115f
API Change: Remove unnecessary params from oio_tcp_handle_accept()
...
closes #13 .
2011-04-18 00:12:36 -07:00
Ryan Dahl
0027dbd976
Implement and add test for oio_now()
2011-04-17 23:53:09 -07:00
Ryan Dahl
2ba25c8249
API change: oio_tcp_handle_init() required before oio_accept()
...
Fixes close_cb_stack on UNIX.
2011-04-17 22:51:13 -07:00
Ryan Dahl
42cefd934e
linux: ping-pong test passes.
2011-04-17 19:15:08 -07:00
Ryan Dahl
c8bdf15f5d
Unix: fix build for timer test
2011-04-15 11:21:07 -07:00
Ryan Dahl
84ebdf8429
style fixes to close_cb_stack
2011-04-15 11:05:15 -07:00
Bert Belder
0ffc8b6240
Timeout test passes on windows
2011-04-15 19:43:28 +02:00
Bert Belder
1ce1f82ca3
Typo
2011-04-15 19:38:29 +02:00
Bert Belder
aec5eac8bc
Add oio_timeout test
2011-04-15 19:32:28 +02:00
Bert Belder
93dd5f74c7
Clean up test error handling
...
Define FATAL and ASSERT macros. Dont use libc's assert as it might get optimized away.
2011-04-15 03:32:55 +02:00
Ryan Dahl
7ed7bb34b0
Fix exit status checking in test-runner-unix
2011-04-14 13:16:04 -07:00
Ryan Dahl
769948a5ad
test-runner compiles
2011-04-14 12:58:24 -07:00
Bert Belder
53207d0e78
Fix bug in test
2011-04-14 01:35:39 +02:00
Bert Belder
39d31a100f
ol -> oio
2011-04-07 11:12:18 +02:00
Bert Belder
0d85eb252b
API changes - unix broken
2011-04-07 10:50:14 +02:00
Bert Belder
ea149dd2d7
Windows: x64 support, fixes
2011-04-05 17:15:22 +02:00
Bert Belder
4899328166
Add ol_close_cb stack test and fix it for Windows
2011-04-05 04:28:40 +02:00
Bert Belder
56608452af
Test runner minor fixes
2011-04-05 03:03:45 +02:00
Bert Belder
ad94c9297e
First shot at test harness
2011-04-05 02:05:41 +02:00
Bert Belder
37ea7d572d
Update tests
2011-04-01 00:10:44 +02:00
Bert Belder
3b0175c135
Echo demo fix
2011-03-31 14:30:25 +02:00
Bert Belder
5628ee9e51
API change - probably breaks unix
2011-03-31 14:23:49 +02:00
Ryan Dahl
42d96dc3ca
Add ping-pong test - not yet working on unix
2011-03-31 00:21:15 -07:00
Ryan Dahl
5304a18002
Change around names in test directory - sorry bert
2011-03-30 22:42:02 -07:00
Ryan Dahl
3a23aaa21c
ol_handle_new -> ol_tcp_handle_new
2011-03-29 19:57:11 -07:00
Ryan Dahl
311fbe3f8f
Compile with -ansi
2011-03-29 16:42:13 -07:00
Bert Belder
0fe92b75bc
C90 conformance
2011-03-30 01:35:40 +02:00
Ryan Dahl
4fdf0276b3
...
2011-03-29 10:08:45 -07:00
Ryan Dahl
b17dcd55d7
compiles - obviously doesn't work
2011-03-28 03:54:18 -07:00
Ryan Dahl
6b0d4fa372
Mostly compiling
2011-03-28 03:26:00 -07:00
Ryan Dahl
151e2a8f0d
Add libev, more changes
2011-03-28 03:17:52 -07:00
Ryan Dahl
cb17a5e37a
New start
2011-03-28 01:55:29 -07:00