Home | History | Annotate | Line # | Download | only in tests
README revision 1.1
      1 Tests are dividing on error vs working, and DHCPv4 vs DHCPv6.
      2 
      3 Names of files about test xyz have xyz as body and an extension.
      4 
      5 Extensions:
      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
     23 There is no working test in both DHCPv4 and DHCPv6.
     24 The body of the name of a working test must include 4 or 6 so
     25 the .out can be submitted to kea-dhcp4 or kea-dhcp6
     26 
     27 runone.sh xyz.ext
     28  -> run the xyz test
     29 runall.sh
     30  -> run all tests
     31 
     32 Check 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 
     39 checkone.sh xyz.out
     40  -> check the syntax of xyz.out
     41 checkall.sh
     42  -> check the syntax of all .out files
     43