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