4d68bded682a472c86a353b928a662c517e85667
[radsecproxy.git] / lib / tests / README
1 Build
2 -----
3
4 In order to build and run the tests, you'll need to have libcgreen
5 installed (http://www.lastcraft.com/cgreen.php).
6
7
8 Run
9 ---
10
11 NOTE: To run the tests you currently need
12 - a RADIUS server running at localhost:1820 with the shared RADIUS
13   secret "sikrit" configured (or whatever "test-udp-auth" in test.conf
14   says)
15 - a user "molgan@PROJECT-MOONSHOT.ORG" with password "password"
16   present in the RADIUS database
17 These requirements will be removed in a future libradsec release.
18
19
20 Run the tests by typing
21
22   make check
23
24 The output should read something like
25
26   Completed "main": 32 passes, 0 failures, 0 exceptions.
27
28
29 When trying to debug the test programs under GDB you might run into
30 trouble with multiple threads being executed by the test framework.
31 If so, make sure to run a single test rather than the full test suite.
32 For example:
33
34   libtool --mode execute gdb --args test-udp test_auth