Miroslav Bajtoš
2c21050956
test: add RETURN_SKIP and RETURN_TODO macros
...
Added two new flags to identify tests that are intentionally ignored
(usually because we don't want to implement the tested functionality
on current platform) and test serving as TODO list (usually indicating
that the tested functionality should be implemented on current plaform
in the near future.)
2013-05-08 15:43:54 -07:00
Ben Noordhuis
a924f79023
test: remove 'is root?' check
...
I debug tests regularly as root (because dtrace and dtruss require the
additional privileges). The 'is root?' check gets in the way more often
than it prevents me from doing something silly. Remove it.
2013-02-27 21:35:40 +01:00
Timothy J Fontaine
bfe269b8a0
test: add tap output
...
Given UV_TAP_OUTPUT being set, test result output should use TAP formatting
2013-02-22 23:06:17 +01:00
Ben Noordhuis
7ff6f29b85
test, bench: ANSI-fy function prototypes
...
Replace `void f()` with `void f(void)`; the former means "a function
that takes any number of arguments, including none" while the latter
is what is actually intended: a function taking no arguments.
The first form also isn't strictly conforming ANSI/ISO C.
2013-01-06 22:31:48 +01:00
Ben Noordhuis
0a05b31a93
test: fix -Wunused-result warnings
2012-12-14 11:34:17 +01:00
Ben Noordhuis
0a7e36dcf1
test: add UV_RUN_AS_ROOT check
2012-11-11 03:24:22 +01:00
Ben Noordhuis
4e268f7718
test: add valgrind support
...
Run tests through valgrind when UV_USE_VALGRIND=1 is set in the environment.
2012-10-01 22:53:59 +02:00
Ben Noordhuis
48f98424bd
test: fix error message in runner
2012-10-01 22:53:59 +02:00
Charlie McConnell
f3fd8e3c1b
test: prevent running the tests as root
2012-06-26 00:42:11 +02:00
Ben Noordhuis
976423c643
test: remove unused variable
2012-04-18 02:39:33 +02:00
Ben Noordhuis
5345ee36f2
test: fix race conditions in test-async
2012-04-17 15:58:29 +02:00
Ben Noordhuis
e2a794e346
test: remove dead code
2011-11-11 18:52:04 +01:00
Ryan Dahl
f00a5e6503
ignore SIGPIPE in tests
2011-09-16 15:36:35 -07:00
Ben Noordhuis
a29b2099ac
Make it possible to run individual tests.
...
Fixes #100 .
2011-07-14 02:19:36 +02:00
Ben Noordhuis
1717d42165
read() and write() return ssize_t, not size_t.
...
rv < 0 error checks were always false.
2011-07-08 00:40:13 +02:00
Ben Noordhuis
9a5b47d915
uv_sleep() takes milliseconds, usleep() microseconds. Convert argument.
2011-07-06 13:53:01 -07:00
Ryan Dahl
e28c0bb60b
unix: Use fork instead of vfork in runner.
2011-05-27 01:47:42 -07:00
Igor Zinkovsky
9fc8a7f167
Adds uv_get_exepath API
...
Only works on Linux, Mac, Windows currently.
2011-05-24 08:40:27 -07:00
Ryan Dahl
2ef3c6c632
oio -> uv
2011-05-11 20:21:49 -07:00
Ryan Dahl
f0de01379f
Use argv[0] if we can't get_executable_path()
2011-05-09 23:12:44 -07:00
Ryan Dahl
4eb2c6b3f2
Remove unnecessary function
2011-05-09 09:18:15 -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
9e9bae5eb6
unix: Stub out async and thread functions
2011-05-08 22:47:51 -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
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
0a7c19e19e
unix: implement errnos
2011-04-25 18:17:01 -07:00
Bert Belder
5275b036b0
Benchmark runner
2011-04-19 04:47:21 +02:00
Ryan Dahl
cf4fbc0925
Add copyright headers, license file.
...
closes #17 .
2011-04-18 11:11:30 -07: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