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