Skip to content

Commit

Permalink
extended the lwipopts.h for the unit testing
Browse files Browse the repository at this point in the history
Added many options so that the compiled code is a little closer to a full LwIP system and thus the coe coverage measurement is more realistic.
We might want to create several Makefiles for different configurations so we can check sizes and stats for average configurations and track changes to those stats after commits/pull requests
  • Loading branch information
tabascoeye committed Sep 2, 2014
1 parent 89869d5 commit b5eb7d2
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion test/unit/lwipopts.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,33 @@
*
*/
#ifndef LWIP_HDR_LWIPOPTS_H__
#define LWIP_HDR_LWIPOPTS_H__
#define LWIP_HDR_LWIPOPTS_H_

#define MEMP_OVERFLOW_CHECK 1
#define MEMP_SANITY_CHECK 1
#define ARP_QUEUEING 1
#define ETHARP_SUPPORT_VLAN 1
#define IP_FORWARD 1
#define IP_SOF_BROADCAST 1
#define IP_SOF_BROADCAST_RECV 1
#define LWIP_RANDOMIZE_INITIAL_LOCAL_PORTS 1
#define LWIP_AUTOIP 1
#define LWIP_DHCP_AUTOIP_COOP 1
#define LWIP_SNMP 1
#define LWIP_IGMP 1
#define LWIP_DNS 0 //needed for test_mem.c ==> TODO
#define LWIP_UDPLITE 1
#define LWIP_NETBUF_RECVINFO 1
#define LWIP_NETIF_HOSTNAME 1
#define LWIP_NETIF_API 0 //not working because of ip_addr_t* ==> TODO
#define LWIP_NETIF_LINK_CALLBACK 1
#define LWIP_NETIF_REMOVE_CALLBACK 1
#define LWIP_NETIF_HWADDRHINT 1
#define LWIP_NETIF_LOOPBACK 1
#define LWIP_HAVE_LOOPIF 1
#define LWIP_HAVE_SLIPIF 0 //not working because sio_* functions missing ==> TODO
#define LWIP_IPV6 0 //not working with ip_addr_t* in tcp_helper.c ==> TODO


/* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */
#define NO_SYS 1
Expand Down

0 comments on commit b5eb7d2

Please sign in to comment.