xref: /netbsd-src/external/mpl/dhcp/dist/keama/tests/README (revision 9fd8799cb5ceb66c69f2eb1a6d26a1d587ba1f1e)
1Tests are dividing on error vs working, and DHCPv4 vs DHCPv6.
2
3Names of files about test xyz have xyz as body and an extension.
4
5Extensions:
6 - .err4 = source for error test in DHCPv4
7 - .errF = source for error test in DHCPv4 with -r fatal
8 - .errP = source for error test in DHCPv4 with -r pass
9 - .err6 = source for error test in DHCPv6
10 - .err  = source for error test in DHCPv4 and DHCPv6
11 - .msg  = resultat (first line of standard error) for error test
12 - .in4  = source for working test in DHCPv4
13 - .in6  = source for working test in DHCPv6
14 - .ind  = source for working test in DHCPv4 with -D
15 - .inD  = source for working test in DHCPv6 with -D
16 - .inn  = source for working test in DHCPv4 with -N
17 - .inN  = source for working test in DHCPv6 with -N
18 - .inl  = source for working test in DHCPv4 with -l $HOOK
19 - .inL  = source for working test in DHCPv6 with -l $HOOK
20 - .outl = resultat for working test with default hook library path
21 - .outL = resultat for working test with default hook library path
22 - .out  = resultat for working test
23There is no working test in both DHCPv4 and DHCPv6.
24The body of the name of a working test must include 4 or 6 so
25the .out can be submitted to kea-dhcp4 or kea-dhcp6
26
27runone.sh xyz.ext
28 -> run the xyz test
29runall.sh
30 -> run all tests
31
32Check output syntax with kea-dhcp4 and kea-dhcp6:
33 - Set KEA4 and KEA6 environment variables to kea-dhcp4 and kea-dhcp6
34 - Set HOOK to a place to find hooks (currently libdhcp_flex_id.so),
35   please use the directory name with a trailing /
36 - The en0 interface is supposed to exist (or replace "en0" in all files)
37 - Note that runall.sh must be run before checkall.sh
38
39checkone.sh xyz.out
40 -> check the syntax of xyz.out
41checkall.sh
42 -> check the syntax of all .out files
43