diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-12-09 23:43:14 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-12 11:43:33 -0500 |
commit | a10c375e02da66efec40e28142bc22fd8955e968 (patch) | |
tree | 8351fc1a84e95702a894509bee2fad7d79b3c888 /src/timedate/org.freedesktop.timedate1.conf | |
parent | 78628cd27355a157bf44df1cb91f782150a7ca20 (diff) |
dhcp: Add tests for DHCP options, file and sname fields
Add a structure describing the DHCP file, sname and trailing options
fields. Create a messge holding these fields and call the internal
option parsing function.
In the test callback function verify that only regular options are
passed and figure out which part of the DHCP message is the one that
is being processed. As the test program knows the full contents of
the test options in the test structure, skip all non-regular fields
and verify that the option provided to the callback indeed is the
one expected. Check also if non-regular option fields are to be
ignored in the end of the option field as the callback is not called
again and the final check when the whole message has been processed
needs to be successful.
Add a boolean flag for pretty-printing, anticipate there will be a
nice option to toggle it in the future.
Diffstat (limited to 'src/timedate/org.freedesktop.timedate1.conf')
0 files changed, 0 insertions, 0 deletions