summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2019-02-26udp: fix udp_bind for IPADDR_TYPE_ANYSimon Goldschmidt
See bug #55171 Signed-off-by: Simon Goldschmidt <[email protected]>
2019-01-30test: fix compiling unit test on win32Simon Goldschmidt
2019-01-03Fix compile of UDP unit testJacob Kroon
Fix building unit tests via contrib/ports/unix/check on Debian 9, gcc 6.3.0. Fixes: <snip>/ip_addr.h:105:58: error: the comparison will always evaluate as ‘true’ for the address of ‘ip1’ will never be NULL [-Werror=address] #define IP_SET_TYPE(ipaddr, iptype) do { if((ipaddr) != NULL) { IP_SET_TYPE_VAL(*(ipaddr),iptype); }}while(0) Signed-off-by: Jacob Kroon <[email protected]>
2018-12-06Add testcase for bug #55171: Binding UDP PCB with different IP type PCBs ↵Dirk Ziegelmeier
does not work
2018-11-13mDNS: move domain related functions and output related funtionsJasper Verschueren
mDNS.c needed to become cleaner. Domain related functions are moved to the mdns_domain.c util module. The output related functions are split off (clear separation between defining the packet and generating the packet). The output functions can now be found in mdns_out.c. mDNS move probe question packet generation to mdns_send_outpacket The probe any questions were added to the pbuf in the send_probe routine. It is better if we move all pbuf generation to the output function so later on packets can be delayed etc. keep it all in one place. mDNS: move legacy question generation to mdns_send_outpacket It's better to do the pbuf generation in one place. Especially important for message delaying etc. mDNS take out domain related functionality and put in other file. The mDNS file is getting very big and a lot still needs to be added. For clarity reasons it's better to split these domain functions from the main mDNS file. mDNS split off output related functionality and put in other file A lot of functions are only needed for the generation of the pbuf, by separating them into another file we clean up the mdns file. We only need the mdns_send_outpacket function as interface. Packet definition is now completely separated from packet generation.
2018-11-01Implement unit test for bug #54670: 127.0.0.1 sent out to netif_default?Dirk Ziegelmeier
2018-10-12Add a unit test for bug #54833 (tcp_abort with wrong ports)Simon Goldschmidt
Signed-off-by: Simon Goldschmidt <[email protected]>
2018-10-12CMake: Use include_guard only when CMake >= 3.10.0Dirk Ziegelmeier
2018-10-12Fixed the remaining dhcp unit tests after adding ACDSimon Goldschmidt
Signed-off-by: Simon Goldschmidt <[email protected]>
2018-10-12Fix some dhcp unit tests after adding ACD, disable the restSimon Goldschmidt
I disabled the yet unfixed tests to test if the new travis integration works. Still working on them... Signed-off-by: Simon Goldschmidt <[email protected]>
2018-10-12Fix mqtt unit test broken after 684adacaSimon Goldschmidt
Signed-off-by: Simon Goldschmidt <[email protected]>
2018-10-05CMake: add an include guard since files are intended to be included in other ↵Dirk Ziegelmeier
projects
2018-07-03dhcp: adapt unit test to ignoring packets without ENDSimon Goldschmidt
2018-06-19tcp: fix RTO timer not working if link is downSimon Goldschmidt
... and added some test cases for this situation See bug #54139 Signed-off-by: Simon Goldschmidt <[email protected]>
2018-06-14try to fix compiling with gcc & clangSimon Goldschmidt
2018-06-14added tests for ip6addr_ntoa_rSimon Goldschmidt
2018-06-13udp: prefer correctly bound pcbs when receiving broadcastSimon Goldschmidt
See bug #53301 Signed-off-by: Simon Goldschmidt <[email protected]>
2018-06-13unit tests: remove dummy netif input functionSimon Goldschmidt
This partly reverts a26a2e13 after removing that NULL check again. Signed-off-by: Simon Goldschmidt <[email protected]>
2018-06-13fix bug #53273: IPv6 link-local address generation for non-ethernet type ↵Simon Goldschmidt
netif does not convert byte order
2018-06-12fix ip6addr_aton for non-shortened ipv4 mapped addressesSimon Goldschmidt
2018-06-12adapt unit tests to additional NULL checksSimon Goldschmidt
2018-06-11fix ip6addr_aton handling IPv4-mapped addressesSimon Goldschmidt
... and added a unit test for it Signed-off-by: Simon Goldschmidt <[email protected]>
2018-06-10add new ip6 tests to (c)make list filesSimon Goldschmidt
2018-06-08fix bug #53971 Lwip sends Router Solicitation on address changesSimon Goldschmidt
... and add a unit test for it. Moved resetting netif->rs_count from all reports to link-up and netif-up only. While at it, clean up the interface a bit so that netif->rs_count is touched from nd6.c only. Signed-off-by: Simon Goldschmidt <[email protected]>
2018-06-08test_etharp: fix compiler warningSimon Goldschmidt
2018-04-30Cleanups in CMake filesDirk Ziegelmeier
2018-04-27Work on CMake build system - add Filelists.cmake for unit testsDirk Ziegelmeier
2018-04-20sockets_stresstest: fix typo (&1, not %1)goldsimon
2018-04-18Improve the socket stress test to better test fullduplexgoldsimon
2018-03-07various IPv6-only compile fixesgoldsimon
2018-03-04unit: write out XML fileJoel Cunningham
This writes out the results of the unit tests in an XML file called lwip_unittests.xml in the same directory as the unittests executable. See https://libcheck.github.io/check/doc/check_html/check_4.html#XML-Logging for an example of the ouput. Of particular use is the duration field, for each test and for the entire test run.
2018-03-03unit: speed up test_pbuf_queueing_bigger_than_64kJoel Cunningham
Speed up test_pbuf_queueing_bigger_than_64k by using memcmp rather than a byte by byte comparision. This allows using word aligned compares within the memcmp implementation This fixes a unit test timeout on my Windows 10 box with WSL which was taking longer than 4 seconds for the unix port unit test to complete See failure details in https://savannah.nongnu.org/patch/index.php?9579
2018-02-18sockets_stresstest: don't compile when LWIP_SOCKET is disabledgoldsimon
2018-02-18fuzz: fix compile error, ignore 0 length pbufsgoldsimon
2018-02-15test/fuzz: add some applications, add an experimental multi-packet modegoldsimon
The experimental multi-packet mode splits input bytes depending on a length decoded from the first 2 bytes and does that until the end of input. To use this mode, compile with "make D=-DLWIP_FUZZ_MULTI_PACKET" Signed-off-by: goldsimon <[email protected]>
2018-02-12test: add a unit test for TCP_CHECKSUM_ON_COPY with retransmissionsgoldsimon
This triggers bug #50914 (TCP_CHECKSUM_ON_COPY when adding data to retransmission) when data is added to an already transmitted segment with an uneven length of tcp data.
2018-02-12test: enable LWIP_CHECKSUM_ON_COPY and TCP_CHECKSUM_ON_COPY_SANITY_CHECKgoldsimon
To find and verify bug #50914 (TCP_CHECKSUM_ON_COPY when adding data to retransmission), enable checksum-on-copy for the unit tests.
2018-02-04socket/netconn recv: FIN should only be reported oncegoldsimon
FIN should only be reported once (as '0' for sockets, as 'ERR_CLSD' for netconns). Before this change, ERR_CLSD was returned forever... This is the 2nd try. First try (commit ebcae98ae65c26a0c210c802540bf027d07fe2f1) was buggy in that it could drop the FIN if it was read together with data (reverted in commit ebcae98ae65c26a0c210c802540bf027d07fe2f1). This version fixes this by adding an apiflag and a netconn flag to keep track of this.
2018-02-04socket unit test: check receiving FIN together with data worksgoldsimon
2018-01-17sockets_stresstest: replace printf with LWIP_DEBUGF, fix unused arggoldsimon
2018-01-13netif unit test: add some more tests for ext callbacksgoldsimon
2018-01-13netif unit test: fix -Werror=c++-compatgoldsimon
2018-01-12netif: ensure netif_set_addr() only results in one "ext_status_callback"goldsimon
This can be used e.g. in mdns to create one, not multiple "changed" triggers if IP address and netmask change at the same time.
2018-01-12unit tests: added test_netif (checking ext_callbacks only, for now)goldsimon
2018-01-12Add unit test for a long running timerDirk Ziegelmeier
2018-01-11Rename lwip_sys_timers_get_next_timout() to sys_timeouts_get_next_timeout()Dirk Ziegelmeier
2018-01-08unit tests: fixed testing itoa with too small buffergoldsimon
2018-01-08Remove Simon's compile fix in test_timers.c, it is not needed any more. The ↵Dirk Ziegelmeier
function is now used.
2018-01-08Once again: Fix build warnings in test_timers.cDirk Ziegelmeier
2018-01-08lwipopts.h for unit tests: Increase number of timeoutsDirk Ziegelmeier