Commit Graph

15 Commits (291dc66b3e2b9baf24c5dbd0799b21d28a1dc5ca)

Author SHA1 Message Date
Brian Daniels 291dc66b3e Fixing bad asserts 2017-06-11 09:48:44 +01:00
Brian Daniels 12658f9285 Cleaning up udp tests 2017-06-11 09:48:43 +01:00
Brian Daniels 20240c043e Adding comments describing buffer prep functions 2017-06-11 09:48:43 +01:00
Brian Daniels b44e7e9921 Specifying default length of UUID for Greentea
This creates a macro for the UUID length used by Greentea. This cuts
down on the use of "magic numbers" in test cases that use
the GREENTEA_SETUP_UUID function.
2017-06-11 09:48:42 +01:00
Christopher Haster bb2d327095 lwip: Migrated to utest framework
per @bridadan
2017-06-11 09:48:42 +01:00
Christopher Haster be97cef9ed lwip: Fixed count of udp iterations to reflect attempts 2017-06-11 09:48:41 +01:00
Christopher Haster 5ad880c327 lwip: Added udp buffer flushing after dropped packets
Avoids getting stuck in loop where the device always picks
up the previous test's packets
2017-06-11 09:48:41 +01:00
Christopher Haster 5312219452 lwip: Increased DHCP timeout to 60 seconds
This matches the timeout used in linux:
https://linux.die.net/man/5/dhclient.conf

This resolves several issues noticed during testing when we
have a very large number of devices that try to get an IP address
around the same time.
2017-06-11 09:48:41 +01:00
Brian Daniels d39703bb6e Fixing some issues in the tcp/udp tests 2017-06-11 09:48:41 +01:00
Brian Daniels 50912c004e Arranging logic in test to prevent left-over behavior 2017-06-11 09:48:40 +01:00
Brian Daniels 89be202424 Making UDP test less strict on dropped/mismatched packets.
Before, the UDP test was very strict on the number of packets it would
try to match before failing. Now it will keep trying for the whole test
to get enough passing packets. It also includes the test's UUID so you
can validate which packets are being received.
2017-06-11 09:48:40 +01:00
Christopher Haster ff3fc8b532 lwip: Increase timeout on tests
Sometimes when under heavy load, the CI machines can take a significant
amount of time to bring up a python process (~10s). The timeouts for
the network tests were chosen without much thought, and didn't leave
much room for this sort of delay.

This patch brings up timeouts for ntetwork tests 20s -> 60s
2017-02-23 12:18:43 -06:00
Christopher Haster bbcf8de9e3 lwip - Filtered network tests based on DEVICE_EMAC
Currently DEVICE_EMAC is incompatible with the EthernetInterface
2017-01-05 11:16:24 -06:00
Christopher Haster 8e7a3c8b04 lwip - Added handling of packet loss to udp echo test
Before the test would only succeed if all packets (16) succeed. Updated
to succeed if 75% succed.
2016-12-19 12:05:43 -06:00
Christopher Haster ad79c20c6a lwip - Added packet pressure tests
Attempt to maximize the devices bandwidth with an exponentially growing
transaction of random sequences. Also prints the time taken and bandwidth
reached during the tests.
2016-12-19 12:05:42 -06:00