Commit Graph

141 Commits (fe983090637c36e489ba663e52eb0da83bb193a2)

Author SHA1 Message Date
Seppo Takalo 00feb5313a Update copyright years 2019-02-19 17:39:46 +02:00
Tymoteusz Bloch 49141376ee Multihoming initial release
Added Multihoming feature to LWIP (ability to use more than one network interfaces) for increasing networking reliability.
This involves:

    LWIP interface
    LWIP IP routing
    DNS storage
    Sockets (bind to interface name possibility)
    possibility to add non default network interface
    cellular middleware modifications if cellular connection is used
2019-02-19 17:39:46 +02:00
Martin Kojtal c08f51aa36 copyright 2019 fix 2019-02-15 13:37:40 +00:00
Michal Paszta ca57bdd481 Greentea tests: user-configurable timeouts
Now it is enough to add:
    "macros": [
        "MBED_GREENTEA_TEST_XXXSOCKET_TIMEOUT_S=20"
    ],
to mbed_app.json, where XXX is on of {DNS, TLS, UDP, TCP}.
Also network-* tests are now configurable: network-interface, network-wifi, network-emac with a similar macro.
2019-02-15 15:08:15 +02:00
Martin Kojtal 852f667d05 wifi test: add license info 2019-02-14 13:58:07 +00:00
Cruz Monrreal f2abdcbcc6
Merge pull request #9639 from michalpasztamobica/esp8266_connect_timeout
ESP8266: connect() checks errors from ESP chip
2019-02-13 20:00:37 -06:00
Cruz Monrreal 3e6cd4e89d
Merge pull request #9501 from caixue1102/mbed-os-rda
Add WIFI support for RDA target UNO_91H
2019-02-12 20:05:27 -06:00
Cai d92e33dcee Add WIFI support for RDA target UNO_91H 2019-02-12 22:59:53 +08:00
Cruz Monrreal 799476dd55
Merge pull request #9630 from michalpasztamobica/publish_documentation
Publish tests documentation for DNS, Emac, NetworkInterface and Wifi
2019-02-11 18:47:55 -06:00
Michal Paszta 6a184da381 ESP8266: connect() can handle ESP's errors.
ESP8266Interface::connect() checks the exact return value from
the underlying ESP8266::connect() call.
Increased timeout for network-wifi greentea tests to 6 minutes.
2019-02-11 17:20:14 +02:00
Amanda Butler ae20556635
Edit README.md
Edit file, mostly for inclusion of articles.
2019-02-07 16:10:38 -06:00
Amanda Butler e9c44a86ac
Edit README.md
Edit file, mostly for inclusion of articles.
2019-02-07 15:52:20 -06:00
Amanda Butler 629e8a0e05
Edit README.md
Edit file, mostly for inclusion of articles and complete sentences.
2019-02-07 15:45:08 -06:00
Veijo Pesonen 099cbb1d30 tests-network-interface: drops unreferenced variable 2019-02-07 12:04:09 +02:00
Michal Paszta ea3d70e0b1 Publish tests documentation for DNS, Emac, NetworkInterface and Wifi
Documentation moved from internal Confluence pages.
2019-02-06 16:22:21 +02:00
jeromecoutant da6ad75666 WIFI test: improve debug messages 2018-12-17 15:20:02 +01:00
Martin Kojtal 0df1d49ba1
Merge pull request #8861 from VeijoPesonen/bugfix-mbedgt_wifi_scan_one_ssid
Bugfix-tests-network-wifi drop the assumption about more than one SSID
2018-12-03 13:34:48 +01:00
Veijo Pesonen 386915deb8 Tests-network-wifi organize test cases for clarity 2018-11-24 12:28:14 +02:00
Veijo Pesonen 50bc2e9280 Bugfix - drops the assumption that there is more than SSID in vicinity 2018-11-24 12:20:07 +02:00
Martin Kojtal 80ed251c9c Merge branch 'fix_travis_astyle_files' of https://github.com/0xc0170/mbed-os into dev_rollup 2018-11-23 18:38:13 +00:00
Martin Kojtal c1d00df79a test: fix coding style 2018-11-20 14:50:56 +00:00
Michal Paszta e53ee631f9 Greentea netsocket and network tests improvements
Added smarter rounding of times in recv_timeout and increased the delta by one, to allow "off-by-one" errors.
Reverted commit 88eea6a, reducing TESTS_TIMEOUT back to 480.
Introduced a 100ms timeout for waiting on asynchronous DNS resolution.
Improved error handling on disconnects.
2018-11-19 08:58:14 +01:00
Marcin Tomczyk 29b7c50e30 ONME-3852 Check that test cases disconnect at the end 2018-11-12 11:29:58 +01:00
Martin Kojtal 28a5906479 tests: fix coding style 2018-11-08 08:54:34 +00:00
Seppo Takalo e3623b91fa Increase EMAC test timeout to 1400 seconds 2018-10-31 17:14:05 +02:00
Martin Kojtal bbfa322afb tests: fix astyle 2018-10-25 09:58:17 +01:00
Martin Kojtal 5bed419dd8
Merge pull request #8505 from SeppoTakalo/continue_socket_tests
Continue Socket and WiFi tests even on test failure.
2018-10-24 09:40:22 +01:00
Seppo Takalo 66a2101006 Continue Socket and WiFi tests even on test failure.
Purpose is to run full set of testcases on each run.
Testcases should contain proper cleanup handlers so that they are
independent.
2018-10-23 13:58:21 +03:00
Veijo Pesonen f9a723e8ad mbedgt-network-wifi WIFI CONNECT TC - check that SSID is cached by driver 2018-10-19 09:09:34 +03:00
Veijo Pesonen 0823b3ef2d mbedgt-network-wifi WIFI CONNECT TC - check for empty passwd 2018-10-18 14:12:53 +03:00
Cruz Monrreal 5a47318bc2
Merge pull request #8298 from SeppoTakalo/wifi_reset_channel
Reset channel settings back to default
2018-10-10 08:44:39 -05:00
Cruz Monrreal 15879f5273
Merge pull request #8241 from SeppoTakalo/fix_wifi_connect_params_fail
Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
2018-10-08 10:16:37 -05:00
Seppo Takalo 5fd04ff279 Reset channel settings back to default 2018-10-02 13:11:23 +03:00
Seppo Takalo e7924a98b2 Fix WIFI_CONNECT_PARAMS_CHANNEL_FAIL testcase.
Test case was assuming that secure and unsecure SSID were on different
channels.
This is not a requirement and it should be OK to run on same channel.

Fixed the testcase by using +1 on channel number to get a wrong channel.
2018-09-25 14:11:22 +03:00
Veijo Pesonen 6ac099ab1a Makes mbedgt-network-wifi case to skip channel number check
2.4GHz and 5GHz channels might be using the same SSID. Wifi scan
might also fail occasionally to find secure- and unsecure channels
on same scan so lets not assume that we'll find both.
2018-09-25 09:29:53 +03:00
Martin Kojtal 0233c8df4c
Merge pull request #7882 from mikaleppanen/nw_if_gt_tests
Add greentea tests for network interface status and connect/disconnect
2018-09-19 14:20:07 +02:00
Martin Kojtal 32445ae326
Merge pull request #7880 from juhaylinen/fix-greentea-emac-timeout
Update Greentea EMAC tests
2018-08-28 14:38:08 +02:00
Mika Leppänen fef021810e Added greentea tests for network interface status and connect/disconnect
Added tests:
NETWORKINTERFACE_STATUS
NETWORKINTERFACE_STATUS_NONBLOCK
NETWORKINTERFACE_STATUS_GET
NETWORKINTERFACE_CONN_DISC_REPEAT
2018-08-24 13:21:48 +03:00
Juha Ylinen 4a66eb6bb1 Update Greentea EMAC tests
Increase timeout for EMAC tests. Old timeout (600 seconds) was not
enough for slower devices to complete the tests.

Check that connection was successful when running test case
emac_test_initialize.
2018-08-24 12:55:04 +03:00
Mika Leppänen 93eb0c2872 Fixed emac test function parameter errors 2018-08-21 10:55:49 +03:00
Mika Leppänen 06302cb10e Set greentea wifi tests to set channel back to any after channel tests 2018-08-21 10:55:49 +03:00
Mika Leppänen 970a21fa9a Updated greentea Wifi tests to use default interface 2018-08-21 10:55:49 +03:00
Mika Leppänen 5fa2edc73f Updated greentea EMAC tests to use default interface 2018-08-21 10:55:49 +03:00
Martin Kojtal e52bb68f93 tests: astyle fix
All tests should comply to our coding standard now
2018-08-03 10:23:38 +01:00
Mika Leppänen d35f5b08ec Removed device emac check from emac greentea tests
DEVICE_EMAC is defined only for boards with default Ethernet emac.
It is not defined for example for Realtek RTL8195AM board that
does not have Ethernet. Removed the check for device emac from emac
greentea tests.
2018-07-31 13:18:17 +03:00
Juha Ylinen 3c32b3ada7 Update Greentea netsocket and wifi tests
Increase timeout for netsocket TCP and UDP tests. Old timeout
(240 seconds) was not enough for slower devices to complete the
tests.
Accept error codes NSAPI_ERROR_CONNECTION_TIMEOUT and
NSAPI_ERROR_NO_CONNECTION when running test wifi_connect_secure_fail
2018-06-21 09:01:15 +03:00
Mika Leppänen 0334cd1679 Added long echo sequence test to EMAC tests
Test echoes 50000 random length ethernet frames between CTP echo
server and device.
2018-06-13 16:22:41 +03:00
Cruz Monrreal 10b859779d
Merge pull request #7103 from mikaleppanen/test_updat_lpc17xx
Greentea test updated for NXP lpc17xx
2018-06-11 08:55:20 -05:00
Juha Ylinen 44ce63e586 Add targets to Greentea EMAC tests
Update test configuration file for WicedInterface
2018-06-07 12:11:38 +03:00
Mika Leppänen 9095b037aa Updated EMAC test environment for LPCxx boards
Updated EMAC memory manager to use libservice nsdynmemlib
for EMAC memory buffers. Located the nsdynmemlib buffer heap
to DMA safe memory bank on LPCxx boards. Optimized placement of
static variables on EMAC test environment for LPCxx boards to
maximize available memory.
2018-06-04 13:51:16 +03:00
Juha Ylinen 53eb36e729 Fix Greentea WiFi test build issues 2018-05-25 09:39:36 +03:00
Juha Ylinen 8e81d0153a Update Greentea WiFi tests
Use similar network interface configuration as used in netsocket tests
Improve test coverage
2018-05-25 09:35:14 +03:00
Asif Rizwan 657ac3f643 WIFI_EMAC class renamed to OdinWiFiEMAC, Formatting
Revert "in ODIN emac initialization required before connection"
2018-05-23 12:25:21 +03:00
Mika Leppänen fd2c6ba12b Removed EMAC get default instance from EMAC tests
Test environment now uses the EMAC defined by add ethernet interface.
2018-05-23 12:25:20 +03:00
Asif Rizwan 717abf20aa in ODIN emac initialization required before connection 2018-05-23 12:25:19 +03:00
Michael Zhang 162a8c0a00 add-rtl8195am-feature-emac (#6904)
rtl8195am feature emac implementation.
2018-05-23 12:25:18 +03:00
Mika Leppänen e481c5ef75 Added memory manager set to add_ethernet_interface() of test stack
This allows that EMAC memory manager can be used to allocate EMAC driver
memory already after the add_ethernet_interface() call.
2018-05-23 12:24:11 +03:00
Amanda Butler 26f369919b Copy edit README.md
Copy edit changes to README.md, mostly for active voice, consistent tense across docs and style.
2018-05-23 12:24:08 +03:00
Mika Leppänen 026af3a72e Updated emac greentea tests
- Improved markdown
- Set tests to fail if CTP echo server is not present
2018-05-23 12:24:08 +03:00
Mika Leppänen d9a66f1c54 Updated non-blocking connect changes to EMAC greentea test server 2018-05-23 12:24:08 +03:00
Mika Leppänen c1c69be10b Made feature-emac changes to emac greentea tests default code
Removed flagging of the new/old code.
2018-05-23 12:24:05 +03:00
Mika Leppänen 7aebda7a0f Emac greentea tests for feature-emac 2018-05-23 12:24:05 +03:00
Veijo Pesonen 8e12db1a2b Fix WIFI-CONNECT-PARAMS-CHANNEL-FAIL Greentea test case
The test case is executed succesfully when usage of wrong channel is detected
2018-02-20 16:09:46 +02:00
Jimmy Brisson 18e727623d
Merge pull request #5435 from mikaleppanen/emac_tests
Tests for wifi emac interface
2018-01-04 09:48:45 -06:00
Anna Bridge 2f4f82ec74
Merge pull request #5723 from SeppoTakalo/wifi-construtor-fix
Remove destruction of WiFi interface in test runs
2017-12-29 14:29:38 +00:00
Veijo Pesonen 5585ba60a5 Greentea test case WIFI-CONNECT-NOCREDENTIALS- accept also parameter error if AP is not found 2017-12-22 13:02:06 +02:00
Veijo Pesonen c993057537 Security protocol made configurable via json 2017-12-22 12:54:22 +02:00
Veijo Pesonen 402ab81730 remove disconnect from test cases as it's going to be called implicitly from get_interface-function 2017-12-22 10:18:28 +02:00
Veijo Pesonen ca95e3f88b Greentea WIFI-CONNECT-SECURE must use NSAPI_SECURITY_WPA_WPA2 2017-12-21 08:29:09 +02:00
Veijo Pesonen f71756cf98 Greentea WIFI-SCAN - make possible to disable check against assumed channel
It's possible that a device does not support setting the channel to be used.
In case channel is not set by the device lets disable the check.
2017-12-21 08:29:09 +02:00
Veijo Pesonen 8c421e20d6 Greentea Wifi testcase fixes
Call disconnect when connect has been tested. Also instead of waiting
for parameter error in case of missing SSID give missing SSID error
code.
2017-12-21 08:29:09 +02:00
Seppo Takalo 8bfe5779b3 Remove destruction of WiFi interface in test runs
Most of our IP stacks don't allow removal of interfaces so
interface destructor can not reliably clean up. Therefore we
cannot rely its behaviours in test case.

Instead run interface->disconnect() in case interface was already
created.
2017-12-20 16:58:11 +02:00
Martin Kojtal 63a923752b
Merge pull request #5568 from VeijoPesonen/greentea-wifi-fixes
Greentea Wifi testcase fixes
2017-12-20 14:52:44 +00:00
Veijo Pesonen 2d7a79f123 Greentea Wifi testcase fixes
Replace 'TEST_PASS' with 'return'
2017-12-01 16:35:55 +02:00
Wolfgang Betz 043ee4a6f5 Split test for secure & unsecure tests 2017-11-28 13:17:38 +01:00
Wolfgang Betz 3613803a7a Correct WiFi driver name to `X_NUCLEO_IDW0XX1` 2017-11-28 13:17:37 +01:00
Veijo Pesonen e488b2c04f Greentea Wifi testcase fixes
ONME-3266 Greentea testcase WIFI-SCAN fails arbitrarily
ONME-3278 Greentea testcase WIFI-SET-CREDENTIAL doesn't try WEP with valid credentials
ONME-3279 Greentea testcase WIFI-GET-RSSI uses arbitrary RSSI value limits
ONME-3280 Greentea testcase WIFI-CONNECT-PARAMS-VALID-SECURE assumes WPA2
2017-11-23 13:57:05 +02:00
Mika Leppänen 5c15819130 Tests for wifi emac interface 2017-11-21 09:52:58 +02:00
Seppo Takalo 429b0688bd Add license texts 2017-10-04 17:45:25 +03:00
Seppo Takalo 80198f2dcd Add Doxygen documentation for testcases. 2017-10-04 12:32:46 +03:00
Seppo Takalo 72e7c326c9 Fix builds for targets without wifi or without mbed_app.json 2017-10-04 12:01:49 +03:00
Seppo Takalo 5b40280cab Update help text 2017-10-04 12:01:49 +03:00
Seppo Takalo fde08a1ee8 Fix includes.
Cannot include header file witin a function (without severe side effects)
2017-10-04 12:01:49 +03:00
Seppo Takalo 0498e8d3c3 Update template mbed_app.json 2017-10-04 12:01:49 +03:00
Seppo Takalo 3ac788fa02 Set timeout to 4 minutes.
Wifi connections and scanning takes long time. 2 minutes might not be enough.
2017-10-04 12:01:49 +03:00
Seppo Takalo 3d87507c98 Implement functional Wifi tests
Implement 100% function coverage for WifiInterface as specified
in "Wifi test plan"
2017-10-04 12:01:49 +03:00
Bartek Szatkowski 3c06cdae7e WiFi tests: Make tests CI friendly 2016-11-10 17:03:26 +00:00
Bartek Szatkowski e116a66270 WiFi test Add support for mbed_app.json 2016-11-10 10:15:44 +00:00
Bartek Szatkowski e8b55cac46 WiFi tests: Only support Odin board 2016-11-10 10:04:46 +00:00
Bartek Szatkowski 34cc61f871 WiFi tests: Increase the timeout for ESP module 2016-11-10 10:04:46 +00:00
Bartek Szatkowski beef1d8b00 Add new WiFi tests
The tests try to:
  * scan for available networks and check whether specified networks
    are present in the results.
  * connect to and disconnect from the specified network.
  * repeats the scan tests while connected to a network.
  * connect to a network and perform simple HTTP query.
2016-11-10 10:04:46 +00:00