Martin Kojtal
0b1210835e
Merge pull request #11979 from evedon/ed-baremetal-fixes
...
Bare metal greentea tests compilation fixes
2019-11-29 09:06:10 +01:00
Martin Kojtal
aa168594a7
Merge pull request #11892 from mprse/feature-hal-spec-explicit-pinmap
...
Bring static pinmap extension to master
2019-11-28 15:46:38 +01:00
Evelyne Donnaes
f32292952e
Compilation fixes
2019-11-28 14:45:07 +00:00
Martin Kojtal
ffdd54315f
Merge pull request #11941 from michalpasztamobica/remove_internal_string_apis
...
Remove string-based API usage within mbed-os
2019-11-28 14:26:03 +01:00
Przemyslaw Stekiel
b2dad08387
Change explicit pinmap to static pinmap
2019-11-28 08:32:12 +01:00
Przemyslaw Stekiel
d75cc97d80
Explicit pinmap - fix style
2019-11-28 08:32:02 +01:00
Przemyslaw Stekiel
af0ab802d4
Adapt FPGA tests for spi, i2c, analogin, pwm, uart to test direct init (explicit pinmap).
2019-11-28 08:32:01 +01:00
Michal Paszta
71db612913
Remove udpsocket_sendto_invalid
...
It tested parameter checks in the now obsoleted string-based API.
2019-11-27 20:04:47 +02:00
Michal Paszta
5ece00c787
Tests: TLSSocket invalid connect simplified
2019-11-27 20:02:27 +02:00
Michal Paszta
ea04c4f85e
Remove internal usage of deprecated APIs in IPCore
...
Updated:
* netsocket classes,
* unittests, stubs and mocks,
* greentea tests
2019-11-27 20:02:20 +02:00
Martin Kojtal
d5f813b6a3
Merge pull request #11956 from ABOSTM/FIX_SLEEP_MANAGER
...
tests-mbed_hal-sleep_manager: fix regression found on since PR #11721
2019-11-27 11:45:04 +01:00
Alexandre Bourdiol
64765ff35d
tests-mbed_hal-sleep_manager: fix regression found on since PR #11721
...
This test is failed since #11721 Bare metal greentea support
on many STM32 boards:
NUCLEO_F072RB, NUCLEO_F070RB
NUCLEO_F411RE, NUCLEO_F439ZI, NUCLEO_F446ZE, DISCO_F407VG
NUCLEO_F303RE
...
2019-11-27 09:20:46 +01:00
Martin Kojtal
5f7ecea00b
Revert "MbedCRC and CRC HAL revisions"
2019-11-26 13:45:37 +00:00
Martin Kojtal
9bfcb955e2
Merge pull request #11943 from 0xc0170/integration-tests-split
...
Split integration tests in fs/net
2019-11-26 13:11:50 +01:00
Martin Kojtal
e4b3603fe4
Merge pull request #11936 from kivaisan/cancel_timedout_async_dns_query
...
DNS tests: Cancel asynchronous dns query if it times out
2019-11-26 11:47:33 +01:00
MarceloSalazar
a542e02085
Split integration tests in fs/net
2019-11-26 09:51:39 +00:00
Martin Kojtal
860f18b59b
Merge pull request #11819 from tymoteuszblochmobica/timeouts
...
Add code to verify if external Wifi module is still responsible
2019-11-25 15:57:53 +01:00
Martin Kojtal
b110a149db
Merge pull request #11926 from rajkan01/feature-bare-metal-filehandle
...
Fixed greentea FileHandle test for microlib
2019-11-25 13:00:35 +01:00
Kimmo Vaisanen
896bc4432b
DNS tests: Cancel asynchronous dns query if it times out
...
In this test case if asynchronous DNS request results does not happen
in requested time, the request must be cancelled to ensure it does not
happen later on when test has exited already.
We've seen couple of crashes in CI tests which indicate this kind of behaviour
but this is very difficult to reproduce.
2019-11-25 10:07:46 +02:00
Martin Kojtal
83fc580f79
Merge pull request #11773 from fkjagodzinski/fix-watchdog_reset_test
...
Fix watchdog reset test
2019-11-22 22:26:44 +01:00
Martin Kojtal
9ca69cfced
Merge pull request #11925 from rajkan01/feature-gt-bare-metal-minimal-printf
...
Fixed greentea minimal-printf test for microlib
2019-11-22 22:23:55 +01:00
RAJKUMAR KANAGARAJ
93f3db2c3d
Incorporated review comment
2019-11-22 07:38:44 -08:00
RAJKUMAR KANAGARAJ
ada250c7d6
Fixed greentea FileHandle test for microlib.
...
As per "Difference between microlib and the default c library" from "http://arminfo.emea.arm.com/help/index.jsp?topic=/com.arm.doc.100073_0612_00_en/chr1358938938431.html " Microlib is not supported feof() and ferror() functions so modified all the test cases to pass without using feof() and ferror().
2019-11-22 07:38:44 -08:00
RAJKUMAR KANAGARAJ
2fa57d6ba0
Incorporated review comment
2019-11-22 03:42:43 -08:00
Martin Kojtal
38a8c0e28f
Merge pull request #11914 from michalpasztamobica/refactor_string_based_apis
...
Deprecate string-based APIs in IPCore
2019-11-22 12:00:56 +01:00
RAJKUMAR KANAGARAJ
c5b9e867ef
Baremetal: Fix ARM-microlib Greentea test compilation minimal-printf test case run for NUCLEO_F411RE
2019-11-22 02:59:20 -08:00
Michal Paszta
fd5b4b9119
Deprecate string-based APIs in IPCore
...
MBED_DEPRECATE macros is added to string-based APIs.
New, non-string-based APIs are added in their place.
Wiced binaries rebuilt
Any existing stubs or mocks are adjusted to compile and run with the newly added non-string based functions.
2019-11-22 11:31:12 +02:00
Martin Kojtal
4b41a6f164
Merge pull request #11915 from AriParkkila/tests-sendtimeout
...
TESTS: Fix TCP/TLS send_timeout test to non-blocking
2019-11-22 09:16:11 +01:00
Ari Parkkila
d2f87a141d
TESTS: Fix TCP/TLS send_timeout test to non-block
2019-11-21 04:15:44 -08:00
Martin Kojtal
a99d9be3bb
Merge pull request #11875 from rajkan01/feature_arm_greentea_test
...
Baremetal: Fix ARM toolchain Greentea test compilation for NUCLEO_F411RE
2019-11-21 11:15:45 +01:00
Martin Kojtal
e638486be1
Merge pull request #11895 from AriParkkila/cell-ignore-linklocal
...
TESTS: Allow ipv6_link_local_address() as unsupported
2019-11-21 09:19:59 +01:00
Martin Kojtal
48f38a420b
Merge pull request #11654 from tymoteuszblochmobica/mesh
...
Adjustment of netsocket tests to the lossy mesh network limitation.
2019-11-20 16:31:30 +01:00
Martin Kojtal
6064983f49
Merge pull request #11882 from hugueskamba/hk-DISCO_L475VG_IOT01A-enable-baremetal
...
DISCO_L475VG_IOT01A: Fix baremetal profile Greentea tests
2019-11-20 14:01:49 +01:00
Tymoteusz Bloch
983c9586ee
Adjustment of netsocket tests to the lossy mesh network limitation.
2019-11-20 12:13:34 +01:00
Ari Parkkila
4e853bbaa3
TESTS: Allow ipv6_link_local_address() as unsupported
2019-11-19 05:54:16 -08:00
Hugues Kamba
dfae4e72bd
DISCO_L475VG_IOT01A: Fix baremetal profile Greentea tests
...
The build was missing the `"qspif"` lib to sucessefully build
2019-11-18 14:32:20 +00:00
Martin Kojtal
2e96145b76
Merge pull request #11871 from AriParkkila/test-udpechotest-timeout
...
TESTS: Add socket.set_timeout in udpsocket_echotest
2019-11-16 07:55:53 +01:00
Martin Kojtal
ee46d03a6c
Merge pull request #11861 from trowbridgec/update-ep-agora-target
...
Replace calls to printf() with mbed-trace in netsocket tests
2019-11-16 07:54:27 +01:00
Martin Kojtal
97a7466e54
Merge pull request #11841 from AriParkkila/wifi-reorder
...
WiFi: Re-order Greentea tests with minor fixes
2019-11-15 18:33:11 +01:00
RAJKUMAR KANAGARAJ
0e4d9d9a6a
Removed the nanostack lib service and mbed-trace fea ipv6 to false to remove dependency issue on greentea test for bare metal with ARM toolchain
2019-11-15 09:19:16 -08:00
Chris Trowbridge
a1edbb9099
Switch to using mbed-trace for greentea test debug output
2019-11-15 11:18:13 -05:00
Ari Parkkila
ed754434b7
TESTS: Add socket.set_timeout in udpsocket_echotest
...
Some packet loss may be expected/allowed with UDP.
Set socket timeout to continue testing if no response is received within a timeout.
2019-11-14 06:04:37 -08:00
Martin Kojtal
fd22997b60
Merge pull request #11559 from kjbracey-arm/crc
...
MbedCRC and CRC HAL revisions
2019-11-13 18:24:04 +01:00
Kevin Bracey
3939c992d4
Revise MbedCRC template
...
* Use compile-time detection of hardware CRC capability, so unneeded
code and tables do not go into the image.
* Add global JSON config option to allow choice between no tables,
16-entry tables or 256-entry tables for software CRC. Default set
to 16-entry, reducing ROM size from previous 256-entry.
* Allow manual override in template parameter to force software or
bitwise CRC for a particular instance.
* Micro-optimisations, particularly use of `RBIT` instruction and
optimising bitwise computation using inline assembler.
Incompatible changes:
* Remove special-case "POLY_32BIT_REV_ANSI" - users can use standard
POLY_32BIT_ANSI, which now uses the same 16-entry tables by default,
or can use hardware acceleration, which was disabled for
POLY_32BIT_REV_ANSI. MbedCRC<POLY_32BIT_ANSI, 32, CrcMode::TABLE> can
be used to force software like POLY_32BIT_REV_ANSI.
* The precomputed table for POLY_16BIT_IBM had errors - this has been
corrected, but software CRC results will be different from the previous
software calculation.
* < 8-bit CRC results are no longer are shifted up in the output value,
but placed in the lowest bits, like other sizes. This means that code
performing the SD command CRC will now need to use `(crc << 1) | 1`,
rather than `crc | 1`.
2019-11-13 14:31:49 +02:00
Kevin Bracey
1f94428a56
Update HAL CRC API
...
* Change "is supported" check to be a macro, so it can be done at
compile-time.
* Eliminate weird shift on 7-bit CRCs.
* Add support for 32-bit CRCs and reversals to TMPM3HQ.
2019-11-13 14:31:49 +02:00
Kyle Kearney
cc4d428f3f
Remove hard-coded instruction ids from QSPI Tests
...
Replace with macros from the test flash_config header, consistent with
how most commands are built in this test.
2019-11-12 12:26:25 -08:00
Matthew Macovsky
106fd5b4a5
Update QSPI test to reflect fixes in QSPIFBlockDevice
2019-11-12 12:26:25 -08:00
Tymoteusz Bloch
678b57c253
Add code to verify if external Wifi module is still responsible
...
after DNS Query flooding during DNS timeout test.
DNS timeout test requires flooding device with DNS queries.
This causes problem to ESP8266 module causing it to stuck for 11 sec.
In result all following tests fails. To avoid this "smart delay" is added.
If device preforms gethostbyname correctly then tests can proceed.
Otherwise after 1 sec sleep gethostbyname is repeated until success or re-check limit (set to 15).
Thanks to this all ethernet and non ESP8266 wireless devices don't need to wait but ESP must wait.
2019-11-12 14:41:15 +01:00
Martin Kojtal
09c24507c3
Merge pull request #11824 from rajkan01/feature-baremetal-greentea-net
...
Skip Bare Metal green tea test for Network component
2019-11-12 11:09:46 +01:00
Martin Kojtal
d556bf698f
Merge pull request #11821 from rajkan01/feature-baremetal-greentea-psa
...
Skip Bare Metal green tea test for PSA component
2019-11-12 11:07:16 +01:00
Martin Kojtal
09d9287e3b
Merge pull request #11721 from rajkan01/feature-baremetal-greentea
...
Bare metal greentea support
2019-11-12 10:59:39 +01:00
Ari Parkkila
ad1107ef54
WiFi: Re-order Greentea tests with minor fixes
...
Run WIFI-GET-RSSI and WIFI-CONNECT-DISCONNECT-REPEAT tests in secure mode
Remove WIFI-CONNECT-PARAMS-VALID-UNSECURE, it's duplicate to WIFI_CONNECT with remains moved to WIFI-CONNECT-SECURE
2019-11-11 22:49:01 -08:00
RAJKUMAR KANAGARAJ
a682fde31c
Incorporated review comments
2019-11-11 05:01:23 -08:00
RAJKUMAR KANAGARAJ
6437f99a11
Error message correction and rx_lib header filer removed on systimer test case
2019-11-08 16:11:11 -08:00
RAJKUMAR KANAGARAJ
829e90afc8
Incorporated review comments
2019-11-08 07:07:12 -08:00
RAJKUMAR KANAGARAJ
9e994cfe38
Incorporated review comments
2019-11-08 06:49:28 -08:00
Martin Kojtal
816689d1bb
Merge pull request #11822 from tymoteuszblochmobica/tls
...
TLSSOCKET_HANDSHAKE_INVALID test skip if DNS AAA record not available.
2019-11-08 13:31:45 +01:00
Martin Kojtal
1e43a181ec
Merge pull request #11834 from kivaisan/fix_wifi_unsecure_test_check
...
Fix flag checks to allow disabling unsecure tests
2019-11-08 13:31:06 +01:00
RAJKUMAR KANAGARAJ
74d19395f6
Enabled the sleep,sleep_manager,watchdog_reset test case for bare metal greentea test
2019-11-07 10:34:03 -08:00
RAJKUMAR KANAGARAJ
120ca1b245
Incorporated the review comments
2019-11-07 07:48:43 -08:00
RAJKUMAR KANAGARAJ
f1139ebd8e
Incorporated the review comments
...
-Added "rtos-api" in TESTS/configs/baremetal.json
-some test case used thread_sleep_for instead Thisthread::sleep_for
-Added the EOF character
-Disable completely the non supported test cases
2019-11-07 07:19:13 -08:00
Kimmo Vaisanen
582b16ffbc
Add sender address and port verification to UDPSOCKET_ECHOTEST
...
recvfrom method returns sender address and port and this commit
adds a test for it in UDPSOCKET_ECHOTEST.
2019-11-07 14:51:20 +02:00
Martin Kojtal
33e392e9d9
Merge pull request #11682 from mprse/fpga_tests_CI_targets
...
Make FPGA tests to pass on CI targets (SPI, analogIn, PWM)
2019-11-07 11:46:40 +01:00
Kimmo Vaisanen
dfa96924da
Fix flag checks to allow disabling unsecure tests
...
Now unsecure tests can be disabled by just removing MBED_CONF_APP_WIFI_UNSECURE_SSID
configuration from json.
2019-11-07 12:17:01 +02:00
Tymoteusz Bloch
eb3befdac9
TLSSOCKET_HANDSHAKE_INVALID test skip if DNS AAA record not available.
...
TLS test sevrver "badssl.com" doesn't support DNS AAA records for IPV6.
To avoid test fail if no IPV4 is chosen this test is skipped.
2019-11-06 17:57:19 +01:00
RAJKUMAR KANAGARAJ
c9eb48a0c5
Netsocket,lora,cellular,nework test case requires RTOS so MBED_CONF_RTOS_PRESENT guard to all test cases
2019-11-06 04:06:11 -08:00
RAJKUMAR KANAGARAJ
f30dd1cef2
Enable the Bare Metal green tea test
...
-PSA test framework uses the RTOS threads to run test cases so added MBED_CONF_RTOS_PRESENT to all the test cases.
2019-11-06 03:15:49 -08:00
RAJKUMAR KANAGARAJ
b1731ce3c8
-New PR for PSA,Netsocket,storage components,reverted all the changes to back to original
...
-Change the #error description more precisely
-Separated the MBED_CONF_RTOS_PRESENT guarded
2019-11-06 01:59:05 -08:00
RAJKUMAR KANAGARAJ
302f595c28
- Emac,NFC-EEPROM,PSA-CRYPTO components build issue fixed
...
- RTOS supported test case guarded with MBED_CONF_RTOS_PRESENT flag
- Added the #error to non supported test case for bare metal
2019-11-06 01:57:29 -08:00
Przemyslaw Stekiel
b24afed5ae
SPI fpga test: use get_capabilities() function to skip test cases for unsupported features
2019-11-06 10:09:20 +01:00
Mirela Chirica
d2794c63c0
Cellular: Baud rate setting for UDPSOCKET_ECHOTES_BURST greentea test
2019-11-06 10:09:03 +02:00
Mirela Chirica
1993347532
Cellular: Baud rate setting for tls greentea tests
2019-11-06 10:08:34 +02:00
RAJKUMAR KANAGARAJ
3fc8905315
Fixed the greentea test dependency and incorporated the review comments
...
-Added the mbedtls,crypto,psa,filesystem,fat,littlefs in baremetal.json to resolve compiler issue
-Disable metrics that are not available for bare metal
-Moved the baremetal.json inside TESTS/configs directory
2019-11-05 08:49:27 -08:00
RAJKUMAR KANAGARAJ
f402dbb2da
Bare metal greentea support
...
-Added the baremetal.json on Tests directory to enable bare-metal
-Conditional enable of greentea metrics
Note:
Run green tea with bare metal
mbed test -m target -t GCC_ARM -n tests-mbed_platform-transaction --app-config TESTS/baremetal.json
2019-11-05 08:49:27 -08:00
Filip Jagodzinski
55e1a760cb
Test: Watchdog: Update the deepsleep wait
...
Extend the deepsleep wait up to 220% of the Watchdog timeout.
One of the current Watchdog timing requirements is to fire BEFORE twice
the timeout value, but at least one target (K64F) is expected to fire
EXACTLY at a doubled timeout value in deepsleep mode. This patch updates
the test to cope with a new deepsleep timing requirement.
2019-11-05 11:49:39 +01:00
Martin Kojtal
5303b10509
Merge pull request #11693 from mtomczykmobica/ONME-4398
...
UDPSOCKET_ECHOTEST change to tolerate duplicate packets
2019-11-04 15:29:51 +01:00
Martin Kojtal
f27aec3377
Merge pull request #11279 from cy-jayasankar/pr/added-ipv6-link-local-address-api
...
Add API to get ipv6 link local address
2019-11-04 15:28:41 +01:00
Martin Kojtal
c908404d94
Merge pull request #11783 from mirelachirica/set_baud_rate
...
Adding set baud rate routine
2019-11-04 15:27:02 +01:00
Mirela Chirica
3fdbe2408d
Cellular: Baud rate setting for TCPSOCKET_RECV_100K greentea test
2019-11-01 17:22:06 +02:00
Jayasankar Nara
cb51fa57e2
Add API to get ipv6 link local address.
...
Protocols like mdns requires IPv6 link local address to be advertised in its
records (AAAA record). LWIP::Interface::bringup() API is creating IPv6 link
local address;But as of now there is no API exposed by mbed-os to get the
IPv6 link local address.
This new API is required to deliver mDNS library support on mbed-os for Cypress
platforms. Unit tested it by invoking get_ipv6_link_local_address with a simple
application.
2019-11-01 03:43:36 +05:30
Martin Kojtal
eea83007be
Merge pull request #11203 from Tharazi97/Watchdog_lower_limit_timeout_test
...
Add watchdog lower limit timeout test
2019-10-31 14:25:52 +01:00
Filip Jagodzinski
5dcd0f7aec
Prevent sleep during watchdog lower limit test
2019-10-30 16:00:28 +01:00
Przemyslaw Stekiel
766c3647d7
Update tests-mbed_hal_fpga_ci_test_shield-pwm test (adapt for NRF_52)
...
Looks like the PWM works fine on NRF52840_DK target, but this target has hardware limitation and the max PWM period is 32 767 us.
That is why test cases when the period is set 50 ms are failing.
The test will be modified to test the 30 ms period instead of 50 ms, so the test can pass on all CI targets.
2019-10-30 14:39:42 +01:00
Przemyslaw Stekiel
95dc61dac3
SPI fpga test: disable 16 bit test case for NRF52840_DK (not supported)
2019-10-30 14:37:29 +01:00
Filip Jagodzinski
8640da4f9d
Test: Watchdog: Update the sleep & deepsleep cases
...
Use ThisThread::sleep_for() for sleeping instead of the calls to
Semaphore::acquire().
2019-10-30 12:51:47 +01:00
Filip Jagodzinski
361804b91d
Test: Watchdog: Fix deepsleep wait
...
Wait for the serial buffers flush before starting the watchdog.
2019-10-30 12:51:47 +01:00
Filip Jagodzinski
e3f8711818
Test: Watchdog: Update the deprecated calls
...
Replace the wait_ms() with wait_us().
Replace the Semaphore::wait() with Semaphore::acquire().
2019-10-30 12:51:46 +01:00
Filip Jagodzinski
2410257551
Test: Watchdog: Fix LP ticker preproc condition
2019-10-30 12:51:46 +01:00
Filip Jagodzinski
7af11fa4b5
Test: Watchdog: Fix error handling
...
Add a watchdog-kicking thread running in the background when the test
suite is handling a failed assertion. A single watchdog kick did not
provide enough time for the greentea communication if the watchdog
reset happened later than expected.
2019-10-30 12:51:19 +01:00
Martin Kojtal
6f5389980e
Merge pull request #11032 from mprse/bring_fpga_tests_master_spec
...
Add test header files and defined behavior for APIs tested using FPGA-Test-Shield
2019-10-30 11:02:34 +01:00
Przemyslaw Stekiel
2ff31126b4
Make use of xxx_free() in FPGA tests
2019-10-29 14:18:32 +01:00
Martin Kojtal
87b150a1fe
Merge pull request #11715 from miteshdedhia7/pr/target-cyw9p62s1-43012
...
Add CYW9P62S1_43012EVB_01 board
2019-10-29 10:29:10 +01:00
Przemyslaw Stekiel
6e31c14f2e
Fix fpga test function names
2019-10-28 13:10:52 +01:00
Przemyslaw Stekiel
40c4b44385
HAL: Serial: Update the header file doxy (FIXME)
2019-10-28 13:10:51 +01:00
Przemyslaw Stekiel
7aea44f0cf
Add header files to fpga tests, update test names
2019-10-28 13:10:51 +01:00
Martin Kojtal
6f7c1c9037
Merge pull request #11742 from fkjagodzinski/fix-reset_reason-ci_nightly
...
Fix the reset_reason host test in the CI
2019-10-28 11:53:42 +01:00
Martin Kojtal
1c5fe1c9f5
Merge pull request #11752 from mnaberez/erase-value
...
FlashIAP: Get erase value from HAL instead of hardcoding it
2019-10-28 11:21:10 +01:00
Martin Kojtal
3efae200ea
Merge pull request #11743 from maciejbocianski/fpga_i2c_test_limit_ports
...
fpga i2c test: limit tested peripherals
2019-10-28 11:04:33 +01:00
Martin Kojtal
87a5e47b42
Merge pull request #11631 from maciejbocianski/qspi_frequency_test_fix
...
Qspi frequency test fix
2019-10-28 09:41:36 +01:00
Mike Naberezny
6be96ba4b2
FlashIAP: Get erase value from HAL instead of hardcoding it
2019-10-26 14:11:42 -07:00