diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-05-06 20:30:47 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-05-06 20:30:47 +0200 |
commit | 468e6e2a047583fc1d43c535d02507f83e88fc01 (patch) | |
tree | 899267b28472bdee1172f74dabc17cfccd6af8c6 /lib/tests/README | |
parent | b9e967b3cde6af41cd0e863e9ff073897019625a (diff) |
Use CUnit for tests.
cgreen didn't seem properly maintained. CUnit seems to be widely used.
Diffstat (limited to 'lib/tests/README')
-rw-r--r-- | lib/tests/README | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/lib/tests/README b/lib/tests/README index 4d68bde..33bddc1 100644 --- a/lib/tests/README +++ b/lib/tests/README @@ -1,8 +1,14 @@ +This is the README file for the test directory of libradsec. + Build ----- -In order to build and run the tests, you'll need to have libcgreen -installed (http://www.lastcraft.com/cgreen.php). +In order to build and run the tests, you'll need to have CUnit +installed. + +Source code: http://cunit.sourceforge.net/ +Debian package: libcunit1-dev +FreeBSD port: devel/cunit Run @@ -23,12 +29,11 @@ Run the tests by typing The output should read something like - Completed "main": 32 passes, 0 failures, 0 exceptions. - - -When trying to debug the test programs under GDB you might run into -trouble with multiple threads being executed by the test framework. -If so, make sure to run a single test rather than the full test suite. -For example: - - libtool --mode execute gdb --args test-udp test_auth + --Run Summary: Type Total Ran Passed Failed + suites 2 2 n/a 0 + tests 2 2 2 0 + asserts 23 23 23 0 + PASS: test-udp + ============= + 1 test passed + ============= |