DHCP: Adding unit tests.

This commit is contained in:
Vlad Grigorescu 2013-07-31 17:30:56 -04:00
parent 0f1b0e75b7
commit 1786a3b92d
10 changed files with 68 additions and 2 deletions

View file

@ -0,0 +1,8 @@
# This tests that the known_devices log is created,
# that devices are logged by MAC address, and that
# the DHCP hostname is added, if available.
# @TEST-EXEC: bro -r $TRACES/dhcp/dhcp.trace -r $TRACES/dhcp/dhcp_inform.trace %INPUT
# @TEST-EXEC: btest-diff known_devices.log
@load policy/protocols/dhcp/known-devices-and-hostnames