summaryrefslogtreecommitdiff
path: root/keama/tests/README
blob: 36526d8746bef682ef7b8abb364f775af166ea3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Tests are dividing on error vs working, and DHCPv4 vs DHCPv6.

Names of files about test xyz have xyz as body and an extension.

Extensions:
 - .err4 = source for error test in DHCPv4
 - .errF = source for error test in DHCPv4 with -r fatal
 - .errP = source for error test in DHCPv4 with -r pass
 - .err6 = source for error test in DHCPv6
 - .err  = source for error test in DHCPv4 and DHCPv6
 - .msg  = resultat (first line of standard error) for error test
 - .in4  = source for working test in DHCPv4
 - .in6  = source for working test in DHCPv6
 - .inL  = source for working test in DHCPv4 with -l $HOOK
 - .outL = resultat for working test with default hook library path
 - .out  = resultat for working test
There is no working test in DHCPv4 and DHCPv6.
The body of the name of a working test must include 4 or 6 so
the .out can be submitted to kea-dhcp4 or kea-dhcp6

runone.sh xyz.ext
 -> run the xyz test
runall.sh
 -> run all tests

Check output syntax with kea-dhcp4 and kea-dhcp6

Set KEA4 and KEA6 environment variables to kea-dhcp4 and kea-dhcp6
The en0 interface is supposed to exist (or replace "en0" in all files)
Note that runall.sh must be run before checkall.sh

checkone.sh xyz.out
 -> check the syntax of xyz.out
checkall.sh
 -> check the syntax of all .out files