Commit Graph

19 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 fdeef22f14 Simplifying assert statements 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 dfae18ab4a Moved network test buffers into heap
This is a workaround for IAR's lack of flexibility with memory regions.
Otherwise these tests would use very little heap and be mostly global
allocations.
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 f962854054 Making udp_echo_parallel test more robust against network issues.
Making the test more forgiven for minor networking issues. Also adding
more debug prints to make it easier to see which packets are coming from
where.
2017-06-11 09:48:40 +01:00
Bartek Szatkowski 6a0fcd3c58 Reduce test overhead in preparation for CMSIS 5
Reduce RAM consumption so all tests can still be built when using
CMSIS/RTX5. Also reduce clutter by removing the per target stack size
defines in the tests.
2017-05-14 19:25:19 -05: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
Brian Daniels bdd0ff4272 Reduce thread stack size for parallel network tests
This commit reduces the thread stack from 2k to 1k for each thread in
the parallel network tests. This allows the test to run on more
constrained devices (like the LPC1768).
2017-01-17 11:19:35 -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 2da71a7f87 lwip - Reduced size of buffers in echo-parallel tests
These tests could adopt the dynamically sized buffers used for the
packet-pressure tests, however throughput is not an important feature
of these tests.
2016-12-19 16:11:49 -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 9df82e5811 lwip - Added parallel versions of the echo tests
Simply runs the echo tests with multiple sockets in parallel
2016-12-19 12:05:43 -06:00