diff options
Diffstat (limited to 'lib/tests/README')
-rw-r--r-- | lib/tests/README | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/lib/tests/README b/lib/tests/README index 8280b9e..4d68bde 100644 --- a/lib/tests/README +++ b/lib/tests/README @@ -1,24 +1,34 @@ Build ----- -In order to build the tests, you'll need libcgreen -(http://www.lastcraft.com/cgreen.php). +In order to build and run the tests, you'll need to have libcgreen +installed (http://www.lastcraft.com/cgreen.php). Run --- -NOTE: To run the tests you need -- a RADIUS server running at localhost:1820 with shared sekret - "sikrit" configured (or whatever "test-udp-auth" in test.conf says) -- a user "molgan" with password "password" present in the RADIUS - database -This requirement will disappear in the future. +NOTE: To run the tests you currently need +- a RADIUS server running at localhost:1820 with the shared RADIUS + secret "sikrit" configured (or whatever "test-udp-auth" in test.conf + says) +- a user "molgan@PROJECT-MOONSHOT.ORG" with password "password" + present in the RADIUS database +These requirements will be removed in a future libradsec release. + Run the tests by typing - ./test-udp + make check -The output should be something like +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 |