Commit Graph

1825 Commits (b79b8f5126de16ec2d5a375c2f6c458e5d508424)

Author SHA1 Message Date
Martin Kojtal 867cd0f0b6
Merge pull request #13016 from jeromecoutant/PR_RTCTEST
tests-mbed_hal-rtc patch to match IAR compilation issue
2020-06-05 15:52:08 +02:00
Martin Kojtal 8ff3c95b2d
Merge pull request #13030 from kjbracey-arm/thisthreadgetname
Fix ThisThread::get_name definition
2020-06-05 10:39:34 +02:00
Martin Kojtal ab439624ed
Merge pull request #12979 from LDong-Arm/stack_size_expectation_from_config
stack_size_unification test: set expected stack sizes from config
2020-06-04 14:39:08 +02:00
Darryl Green e5f8dd8798 Move import to after TARGET_PSA define check
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-05-29 13:19:12 +01:00
Jaeden Amero b44a263729 psa: Put Mbed PSA implementation into MBED_PSA_SRV
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-05-29 13:19:11 +01:00
Kevin Bracey 922b656d39 Fix ThisThread::get_name definition 2020-05-29 11:46:58 +03:00
jeromecoutant ccfb099255 tests-mbed_hal-rtc patch to match IAR compilation issue 2020-05-26 10:26:45 +02:00
jeromecoutant 1a64d6e525 FPGA UART test: disable 7 bits test for K64F 2020-05-18 11:48:27 +02:00
jeromecoutant 64f9a7a8ba FPGA UART test: disable 9 bits test for K64F 2020-05-18 11:48:26 +02:00
jeromecoutant ba94adbf65 FPGA test: Add ReadMe file 2020-05-18 11:48:26 +02:00
jeromecoutant 6900ec69dd FPGA test shield: UART test capability update 2020-05-18 11:48:25 +02:00
jeromecoutant 864c96efd4 FGGA UART test: add test cases with 7 and 9 bits data length 2020-05-18 11:47:31 +02:00
Lingkai Dong 4ecd99f6a4 stack_size_unification test: set expected stack sizes from config 2020-05-15 14:42:27 +01:00
Martin Kojtal 6cbe22dc59
Merge pull request #12623 from toyowata/baremetal_lpc1114
LPC1114: baremetal profile support
2020-05-15 13:17:52 +02:00
Anna Bridge 90a8fef7d0
Merge pull request #12942 from kjbracey-arm/chrono-timeout-test
Add Timeout rescheduling test
2020-05-15 11:13:25 +01:00
Martin Kojtal 37ee008b90
Merge pull request #12961 from MarceloSalazar/remove_nrf51
Remove nRF51 targets
2020-05-15 08:08:26 +02:00
Martin Kojtal 595754dffa
Merge pull request #12917 from rajkan01/usb_serial_greentea
Bare metal profile: Enable USB serial greentea test
2020-05-14 10:49:39 +02:00
Rajkumar Kanagaraj 15dd18a058 Incorporated the review comment 2020-05-13 16:47:35 +01:00
Rajkumar Kanagaraj 3ee6d8993b Incorporated the review comment 2020-05-13 14:11:36 +01:00
Marcelo Salazar ccd95f1e14 Remove nRF51 targets
The following public nRF51 targets are being removed:

- NRF51822
- NRF51_DK
- NRF51_MICROBIT
2020-05-13 10:36:50 +01:00
Martin Kojtal 0b4b2afaf4
Merge pull request #12901 from kjbracey-arm/mailchrono
Rationalise Mail/Queue/MemoryPool timing APIs
2020-05-12 17:10:43 +02:00
Martin Kojtal 15ade20b4d
Merge pull request #12909 from kyle-cypress/pr/cypress-misc-fixes
Cypress: Misc target updates
2020-05-12 14:27:34 +02:00
Kevin Bracey 181446331e Rationalise Queue/Mail get/put APIs
To line up with MemoryPool/Mail alloc, rework naming of get/put

    Queue::get -> try_get, try_get_for
    Queue::put -> try_put, try_put_for
    Mail::get -> try_get, try_get_for
    Mail::put (no change, but assert that it works)

In the future the names `get` and `put` can be used for untimed blocking
operations. In the interim, you have to use
`try_get_for(Kernel::wait_for_u32_forever)`.

`Mail::put` differs in that it has always been a non-blocking call, but
it can be assumed to always succeed when used correctly, because the
Queue has enough room to store a pointer to every block in the
MemoryPool. It could in future be made a `void` return, similar to the
change made to `Mutex::lock`.
2020-05-12 15:17:01 +03:00
Kevin Bracey 166ada084e Rationalise MemoryPool/Mail alloc APIs
alloc APIs were generally inconsistent - take the opportunity to align with
other APIs like Semaphore.

    alloc -> try_alloc
    alloc_for -> try_alloc_for
    alloc_until -> try_alloc_until

In future the name `alloc` can be used for an untimed blocking
allocation.
2020-05-12 15:17:01 +03:00
Rajkumar Kanagaraj 2feb1124f8 Call non-blocking USB send_nb instead of blocking send from ticker callback 2020-05-12 13:16:47 +01:00
Rajkumar Kanagaraj beacd629d1 Bare metal profile: Enable USB serial greentea test 2020-05-12 13:16:47 +01:00
Martin Kojtal 44b98761e0
Merge pull request #12944 from rajkan01/usb_msd_greentea_py3
Fix the USB MSD greentea host side pyusb_msd.py script
2020-05-12 14:06:27 +02:00
Martin Kojtal 631e81e07e
Merge pull request #12916 from rajkan01/usb_basic_hid_greentea
USB basic and hid greentea test cleanup and enable to the bare metal profile
2020-05-12 14:06:07 +02:00
Martin Kojtal 5f76dfe896
Merge pull request #12805 from fkjagodzinski/test_update-usb_serial-minimal_printf
Tests: USBSerial: Handle minimal printf limitations
2020-05-12 14:05:51 +02:00
toyowata 5a57670121 [TESTS] Add memory check for RAM constraint device 2020-05-12 10:07:34 +09:00
Rajkumar Kanagaraj 61c70e0fdc Cleanup
- Remove the partially implemented VENDOR_TEST_CTRL_NONE USB control request type.
- Remove the USB control request type VENDOR_TEST_CTRL_IN_DELAY, VENDOR_TEST_CTRL_OUT_DELAY, VENDOR_TEST_CTRL_IN_STATUS_DELAY, VENDOR_TEST_CTRL_OUT_STATUS_DELAY macros as did not have any test.
2020-05-11 20:55:15 +01:00
Kevin Bracey e3ef38d71d Add Timer copy/move tests 2020-05-11 16:20:13 +03:00
Rajkumar Kanagaraj f7f0681c7b USB hid and basic test
- Enable the USB hid and basic test for bare metal profile.
- Remove the partially (The green tea test host side implementation is missing on pyusb_basic.py ) implemented USB control transfer VENDOR_TEST_CTRL_NONE_DELAY request type test case as it is becoming obsolete.
- Remove high priority event queue which is used by that request type test case.
2020-05-11 11:48:23 +01:00
Rajkumar Kanagaraj b6fa3cb072 Fix the USB MSD greentea host side pyusb_msd.py script 2020-05-07 18:37:43 +01:00
Kevin Bracey 8a5f58bf55 Convert Timeout test to Chrono
Now tests only the Chrono `attach(duration)` method, not the deprecated
`attach` and `attach_us` calls.
2020-05-07 17:41:06 +03:00
Kevin Bracey 25fad5d2a3 Add Timeout rescheduling test
The `Timeout` drift test uses rescheduling inside a callback, but it is
currently disabled due to lack of stability. Rescheduling using relative
timeouts inside the callback is a bad technique as it leads to drift, so
I understand the test being disabled. It is better to use `Ticker` for a
periodic callback or to use `Timeout::attach_absolute`.

Add a simpler test that just ensures the callback is called repeatedly -
this test would detect issue #12940, and should not have stability
problems.
2020-05-07 17:41:06 +03:00
Marcelo Salazar 4083469d09 Remove Ublox targets 2020-05-06 16:39:29 +01:00
Marcelo Salazar 570df49abd Rename ADV_WISE_1510 target 2020-05-06 16:03:07 +01:00
Veijo Pesonen b81f069df9 baremetal: include littlefsv2 2020-05-05 14:24:44 +03:00
Kyle Kearney d058586c48 Remove CYW943012P6EVB_01 target 2020-04-30 11:12:00 -07:00
Martin Kojtal af4c8a94f3
Merge pull request #12757 from dgreen-arm/test-remerge
Update Mbed OS with Mbed Crypto merged into Mbed TLS
2020-04-30 16:06:32 +02:00
Martin Kojtal 08a09200a6
Merge pull request #12864 from MarceloSalazar/platform_cleanup3
Remove unsupported targets
2020-04-30 14:56:36 +02:00
Darryl Green 7fbc143b05 Fix assertation ordering in tests
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:29 +01:00
Darryl Green 0d16ca4d8a Remove references to mbed-crypto
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:20 +01:00
Darryl Green d64c9e53c8 Move Mbed Crypto Greentea tests to Mbed TLS
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:15 +01:00
Darryl Green 53260ebd77 Use updated ECC curve macros
Signed-off-by: Darryl Green <darryl.green@arm.com>
2020-04-30 11:28:10 +01:00
Martin Kojtal d1ae0d570c
Merge pull request #12425 from kjbracey-arm/chrono
C++ Chrono support
2020-04-30 11:41:43 +02:00
Marcelo Salazar 81a92e3cb5 Re-enable K82F target 2020-04-30 09:56:37 +01:00
Marcelo Salazar 92cbd9a734 Rename ADV_WISE_1570 target 2020-04-30 09:56:35 +01:00
MarceloSalazar a58de82a7f Remove KL82Z target 2020-04-30 09:56:33 +01:00
MarceloSalazar 51c2484c06 Remove LPC1769 target 2020-04-30 09:56:32 +01:00
MarceloSalazar 5dcfe57c41 Remove LPC4088 based targets 2020-04-30 09:56:32 +01:00
Martin Kojtal a9cb876b39
Merge pull request #12737 from Patater/psa-breaking-changes
Remove PSA implementation for v8-M and dual CPU targets
2020-04-30 10:42:24 +02:00
Filip Jagodzinski 9066e67eff Tests: USBSerial: Handle minimal printf limitations
In a line coding test, host changes the line coding based on data received
from DUT via the USBSerial::printf(). A fixed-size payload, equal to
LINE_CODING_STRLEN, is required by the host side. When the minimal printf is
used, fixed-width messages can not be easily generated on the fly. Zero-fill
or width specifiers are not supported by the minimal printf.

Update the host side to stop reading on a defined payload delimiter and
allow variable-width messages.
2020-04-28 18:07:51 +02:00
Lingkai Dong 81e676b86b RTOS: use default boot-stack-size for nRF as SoftDevice is no longer used
Previously we overrode nRF targets to have a larger stack
due to memory required by SoftDevice. Having deprecated SoftDevice
in favour of Cordio for BLE (#12674), such requirement does not
apply anymore.
2020-04-27 17:22:49 +01:00
Jaeden Amero fcf427ac11 psa: Remove S-mode only code
Remove all PSA S-mode only code, as it is unused. Only PSA S targets
would use the code, and we've removed those targets in a previous
commit.

Ensure all tests for S-mode code we are deleting is also removed, even
if that code would run in NS-mode. Keep any tests that also test our PSA
emulation support (for single v7-M targets).

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:13 +01:00
Kevin Bracey 8e3e19837a More Chrono test fixes
* Timer test - handle removal of Timer(ticker_data_t *)
* Timer test - use Chrono, don't test deprecated methods
* Kernel tick count test - TEST_ASSERT_WITHIN -> TEST_ASSERT_INT_WITHIN
* Mutex test - fix up Chrono changes
* SysTimer test - adapt to SysTimer Chrono changes
* Thread test - use Chrono
* SysTimer - devirtualize destructor
2020-04-27 10:19:08 +03:00
Kevin Bracey e5e45d83e7 Chrono test fixes
* Remove ambiguity in single-parameter Queue::put and get
* Fix type problems in RTC test - add missing include
* Don't attempt to use TimerEvent default constructor
* Remove references to Timer::read_duration
2020-04-27 10:19:08 +03:00
Kevin Bracey 5601a207cc Fix and update tests to use Chronos APIs 2020-04-27 10:19:08 +03:00
Kevin Bracey f0ee31f119 Add RealTimeClock 2020-04-27 10:19:08 +03:00
Kevin Bracey b6a7a0896e Streamline crash data access
Use correctly-typed external definition for the crash data region, and
eliminate unnecessary pointer indirection.

Results in a small ROM saving even with crash capture disabled, as there
was a pointer for the fault context store in either case. The pointer
isn't needed, as the context store location is fixed according to the
configuration flag.
2020-04-24 10:59:13 +03:00
Rajkumar Kanagaraj 784369a3de Bare metal: Enable signals greentea test 2020-04-23 12:38:02 +01:00
Martin Kojtal 5e765487c4
Merge pull request #12833 from evedon/ed-baremetal-json
Override c_lib to small for all targets
2020-04-22 11:15:08 +02:00
Martin Kojtal b622a25688
Merge pull request #12810 from MarceloSalazar/platform_cleanup
Remove unsupported targets

Note, commit 21e364e is just a styling fix, no target removal.
2020-04-22 10:58:50 +02:00
Martin Kojtal aec6303437
Merge pull request #12787 from kyle-cypress/pr/cyeskit-064b0s2-4343w
Cypress: Add CYESKIT-064B0S2-4343W
2020-04-21 10:08:40 +02:00
Martin Kojtal bb6345e63b
Merge pull request #12827 from ithinuel/bare_metal_hal
enable common tickers & lp_tickers hal tests in baremetal mode
2020-04-21 09:56:59 +02:00
Martin Kojtal b9ab2d2f25
Merge pull request #12816 from rajkan01/semaphore_greentea_test
Baremetal: Enable Semaphore greentea test
2020-04-21 09:51:07 +02:00
Evelyne Donnaes 8be00a1ff8 Override c_lib to small for all targets.
Small C libraries should be used with the bare metal profile
to save memory.
2020-04-20 18:01:51 +01:00
Marcelo Salazar ee8231ab9d Remove USI_WM_BN_BM_22 based targets 2020-04-20 16:55:35 +01:00
MarceloSalazar bf590310db Remove MTB_RAK811 target 2020-04-20 16:55:34 +01:00
MarceloSalazar e78ba7065b Remove MTB_MTS_XDOT target 2020-04-20 16:55:33 +01:00
MarceloSalazar 91607fe9cd Remove MTB_MURATA_ABZ target 2020-04-20 16:55:33 +01:00
Rajkumar Kanagaraj a24419bde6 Incorporated the review comments 2020-04-20 12:56:50 +01:00
Kimmo Vaisanen fe98dbef94 Cellular: Fix BG96 offloaded DNS query for new API
Fixed following issues in BG96 offloaded DNS:
- Fixed mbed-os 6 API change for asynchronous DNS callback. Return value is no longer
  an error value but in success case the amount of DNS records
- Asynchronous request returns request ID instead of NSAPI_ERROR_OK. BG96 supports only
  one asynchronouse DNS query at the time, so ID 1 is used.
- BG96 does not support multi-ip DNS responses, so disabled multi-ip tests
2020-04-20 12:35:09 +03:00
Wilfried Chauveau 3d74526fa9
enable common tickers & lp_tickers hal tests in baremetal mode 2020-04-17 15:01:56 +01:00
Jaeden Amero 07a84ec10a psa: Remove MBED_SPM code
All MBED_SPM targets have been removed previously, via commits
5cc66282dd ("PSOC6: remove PSA targets") and 115b09aba43b ("psoc6:
Remove FUTURE_SEQUANA and FUTURE_SEQUANA_M0"). Remove all the dead
MBED_SPM code, as no targets use it.

Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-16 14:10:54 +01:00
Rajkumar Kanagaraj 8bc7ffe6e3 Baremetal: Enable Semaphore greentea test 2020-04-16 12:07:05 +01:00
Martin Kojtal 9ffc5bcaa6
Merge pull request #12779 from rajkan01/eventflags_greentea_test
Baremetal: Enable EventFlags greentea test
2020-04-15 15:00:48 +02:00
Martin Kojtal c83924d3dc
Merge pull request #12786 from rajkan01/kernel_tick_count_greentea_test
Baremetal: Enable kernel_tick_count greentea test
2020-04-15 09:42:34 +02:00
Martin Kojtal fef75b3b52
Merge pull request #12731 from kivaisan/fix_socketaddress_verification
Testing: Fix multihoming test compilation issues
2020-04-15 09:21:18 +02:00
Rajkumar Kanagaraj 45de008c50 Incorporated the review comment 2020-04-14 18:57:27 +01:00
Martin Kojtal 64bc9d9dd7
Merge pull request #12775 from MarceloSalazar/platform_cleanup
Remove unsupported targets
2020-04-14 10:59:20 +02:00
Martin Kojtal 33563b3cfb
Merge pull request #12739 from jamesbeyond/sema_dep
FIX: update usb device tests for deprecated API
2020-04-14 09:07:43 +02:00
Rajkumar Kanagaraj c91362fa3c Baremetal: Enable kernel_tick_count greentea test 2020-04-09 16:45:57 +01:00
MarceloSalazar a15f6a43ad General clean-up of unsupported targets 2020-04-09 15:36:21 +01:00
MarceloSalazar e43ece13aa Rename EMW3166 target 2020-04-09 15:32:41 +01:00
Rajkumar Kanagaraj 176c599a60 Incorported the review comment 2020-04-09 15:19:11 +01:00
Martin Kojtal 7fce7f552c
Merge pull request #12572 from rajkan01/waitapi_remove_deprecated
Remove mbed wait deprecated APIs
2020-04-09 14:57:46 +02:00
Martin Kojtal 0aacbf72d1
Merge pull request #12668 from VeijoPesonen/fix_tests-integration-fs_2
tests-integration-fs-threaded: makes tests independent from each other
2020-04-09 09:04:56 +02:00
Rajkumar Kanagaraj d598d81221 Baremetal: Enable EventFlags greentea test 2020-04-08 18:36:26 +01:00
Rajkumar Kanagaraj 3d128e861b - Fix the CI build issue.
- Incorporate the review comment.
2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj cbb15ad9ac ThisThread::sleep_for is asserted when the PWM test case calls this API with IRQ masked, so wait_us is used to fix this issue as PWM testes to be executed with interrupt disabled to avoid context switch. 2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj 9739b565b2 Fix the CI build issue 2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj 83be3f24a5 Remove mbed wait deprecated APIs 2020-04-08 10:35:07 +01:00
Roman Okhrimenko bb53efcdbd Add TARGET_CYESKIT_064B0S2_4343W to list in flash_configs in TESTS 2020-04-05 13:52:27 +03:00
Martin Kojtal 74ace63eaa
Merge pull request #12729 from AnttiKauppila/mbedtls_fixes
Mbedtls fixes
2020-04-03 08:59:14 +02:00
Martin Kojtal ded879daed
Merge pull request #12603 from dustin-crossman/pr/add-cysbsyskit_01
Add target CYSBSYSKIT_01
2020-04-02 18:18:11 +02:00
Martin Kojtal e8208c062b
Merge pull request #12719 from jeromecoutant/PR_FPGA_JSON
FPGA CI TEST SHIELD: add test config json file
2020-04-01 08:58:44 +02:00
Martin Kojtal f03860a971
Merge pull request #12604 from OpenNuvoton/nuvoton_nano130_tickless_lpticker
NANO130: Fix test failures with tickless from lp_ticker
2020-04-01 08:40:19 +02:00
Kimmo Vaisanen 9913f25d2a Testing: Add missing TRACE_GROUP for multihoming tests 2020-04-01 08:32:06 +03:00