Add unit tests for DHCP

Three simple tests that test the basic functionality of the DHCP client.
They require that UDP checksums are off for now.
This commit is contained in:
Erik Ekman
2012-03-22 10:52:05 +01:00
committed by goldsimon
parent c622985fda
commit 679d3fd5b3
4 changed files with 804 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
#include "tcp/test_tcp_oos.h"
#include "core/test_mem.h"
#include "etharp/test_etharp.h"
#include "dhcp/test_dhcp.h"
#include "lwip/init.h"
@@ -19,7 +20,8 @@ int main()
tcp_suite,
tcp_oos_suite,
mem_suite,
etharp_suite
etharp_suite,
dhcp_suite
};
size_t num = sizeof(suites)/sizeof(void*);
LWIP_ASSERT("No suites defined", num > 0);