mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
DHCP: Adding unit tests.
This commit is contained in:
parent
0f1b0e75b7
commit
1786a3b92d
10 changed files with 68 additions and 2 deletions
|
@ -0,0 +1,6 @@
|
|||
# This tests that DHCP leases are logged in dhcp.log
|
||||
# The trace has a message of each DHCP message type,
|
||||
# but only one lease should show up in the logs.
|
||||
|
||||
# @TEST-EXEC: bro -r $TRACES/dhcp/dhcp.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff dhcp.log
|
5
testing/btest/scripts/base/protocols/dhcp/inform.test
Normal file
5
testing/btest/scripts/base/protocols/dhcp/inform.test
Normal file
|
@ -0,0 +1,5 @@
|
|||
# DHCPINFORM leases are special-cased in the code.
|
||||
# This tests that those leases are correctly logged.
|
||||
|
||||
# @TEST-EXEC: bro -r $TRACES/dhcp/dhcp_inform.trace %INPUT
|
||||
# @TEST-EXEC: btest-diff dhcp.log
|
Loading…
Add table
Add a link
Reference in a new issue