Commit graph

12828 commits

Author SHA1 Message Date
Gerson Fernando Budke 8303b3dab0 tests: i2s: sam: Add missing overlays
Add missing overlays files to allow I2S tests pass on ci.

Fixes #69936

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2024-03-13 10:41:52 -04:00
TaiJu Wu be9a85bf6c test: Remove multi level queue limit test
Set total priorities to 71.
This setting already exceeds original limit(32) and exceeds 64 to test
secondary bitmap.

Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>
2024-03-12 19:37:40 -04:00
Fabio Baltieri d123a4571a input: kbd_matrix: define PRIkbdrow coherently
It's not supposed to have the "%" in the macro, reuse the existin one
for the data type.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-03-12 19:28:40 -04:00
Anas Nashif f9932c578d tests: benchmark: adapt recording of benchmark results
We now have a different output, so capture it correctly.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-03-12 15:02:49 -04:00
Dominik Ermel 6d40cb8038 tests/flash: Fix nrf52840dk configurations
The commit disables QSPI in SoC configurations, as QSPI got enabled
by default and test never really run on SoC.

In QSPI configuration erase page size is set to 4096
There is not TC_PRINT showing name of device that the test will
run on, in test setup.

The nrf52840dk configuration files have been renamed to reflect
dk name and SoC.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-03-12 17:57:39 +00:00
Alberto Escolar Piedras 2e5a71961e tests/drivers/counter: Allow on nrf52_bsim
Allow all tests which run in the real nrf52840 to also
run in the simulated nrf52_bsim.
That way we will have runtime tests in CI.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-12 17:57:18 +00:00
Alberto Escolar Piedras 16cbf80620 tests/drivers/counter/counter_basic_api: Add overlay for nrf52_bsim
Add a DT overlay so this test can also be run in the nrf52_bsim
simulated board.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-12 17:57:18 +00:00
Emil Gydesen 6f405f6b80 tests: Bluetooth: CAP Commander Change Microphone Gain unittests
Adds unittests for the CAP Commander Change Microphone Gain
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-12 17:56:09 +00:00
Emil Gydesen 8956642265 tests: bsim: Bluetooth: CAP Commander Change Microphone Gain
Adds bsim test of the CAP Commander Change Microphone Gain
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-12 17:56:09 +00:00
Gaetan Perrot d9e9f75bfc kernel: api: implement test for sys_slist_find
implement test for sys_slist_find

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-03-12 13:46:29 -04:00
Erwan Gouriou 68616f23d8 boards: nucleo_h563zi: Enable I2C
Enable i2c1 on nucleo_h563zi (arduino_i2c).
Additionally provide a test configuration for i2c_target_api.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-12 16:07:20 +01:00
Alberto Escolar Piedras d592455cc0 tests/bsim mesh: Increase realtime timeout
One of these tests has been seen failing in older slower
computers due to timeouts, let's increase the timeout so
we don't break in those cases.
Note this timeout is just a safety to eventually kill
hung simulations even if nobody presses Ctrl+C.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-12 22:15:34 +09:00
Alberto Escolar Piedras e9c8856165 tests/bsim audio mcs_mcc: Increase realtime timeout
This test has been seen failing in older slower computers
due to timeouts, let's increase the timeout so we don't
break in those cases.
Note this timeout is just a safety to eventually kill
hung simulations even if nobody presses Ctrl+C.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-12 22:15:34 +09:00
Alberto Escolar Piedras 0888882262 tests/bsim broadcast_audio: Increase realtime timeout
This test has been seen failing in older slower computers
due to timeouts, let's increase the timeout so we don't
break in those cases.
Note this timeout is just a safety to eventually kill
hung simulations even if nobody presses Ctrl+C.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-03-12 22:15:34 +09:00
Mikhail Siomin 0157a89f52 tests: spi: spi_loopback: Added MCUX FlexIO SPI test
Added FlexIO SPI test. Overlay in the tests for mimxrt1064_evk
board only.

Signed-off-by: Mikhail Siomin <victorovich.01@mail.ru>
2024-03-12 14:00:45 +01:00
Gerard Marull-Paretas 6cb283d106 tests: arch: common: ramfunc: add nrf54h20pdk cpuapp overlays
On nRF54H20, we need to configure RAM with execution permissions in
order to execute code from it. This patch adds overlays for the nRF54H20
PDK cpuapp cores so that RAM0X region is given execution permissions and
so the test runs successfully.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-12 10:58:51 +01:00
Magdalena Pastula 1e20632b36 tests: drivers: counter: add nRF54L15 overlay
Add nRF54L15 overlay for counter_basic_api test.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
2024-03-12 10:54:27 +01:00
Magdalena Pastula c57946173f tests: drivers: timer: add nrf_grtc_timer tests
Add NRF GRTC timer test for nRF54L15.

Signed-off-by: Magdalena Pastula <magdalena.pastula@nordicsemi.no>
2024-03-12 10:54:27 +01:00
Henrik Brix Andersen a0b4bf21b5 tests: drivers: can: timing: report unsupported bitrates
Enable testing of all bitrates for all drivers and report which bitrates
are not supported by the CAN controller under test.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 810eaf1fb0 tests: drivers: can: api: add test for bitrate limits
Add test for validating the CAN controller bitrate limits.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Henrik Brix Andersen 57c015d017 tests: lib: devicetree: api: add tests for minimum CAN phy bitrate
Add tests for DT_CAN_TRANSCEIVER_MIN_BITRATE() and
DT_INST_CAN_TRANSCEIVER_MIN_BITRATE().

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-12 10:43:36 +01:00
Hake Huang b624013335 tests: tests/drivers/adc/adc_api: change the overlay naming to HWV2
update overlay names

fixing: #69945

Signed-off-by: Hake Huang <hake.huang@oss.nxp.com>
2024-03-12 10:41:00 +01:00
Maksim Salau a9c2d81bd0 drivers: adc: add ADC_DT_SPEC_*_BY_NAME() macros
The commit adds macros to get ADC io-channel information
from devicetree by name.

Signed-off-by: Maksim Salau <maksim.salau@gmail.com>
2024-03-11 17:24:40 +01:00
Andy Ross 19ad64b98b tests/kernel/sched/deadline: Add a SCHED_SCALABLE=y case for coverage
It turns out the deadline scheduling and the scalable scheduling
backend didn't work right together (for almost six years!) because we
never had coverage of that combination.  Add it explicitly given the
known issue in #69935.

We might want to consider adding a whole CI target with SCALABLE=y,
which we've done for other common tunables to get coverage.

Signed-off-by: Andy Ross <andyross@google.com>
2024-03-11 15:42:26 +01:00
Jukka Rissanen 66eb627b02 tests: net: ieee802154: Invalid number of params in debug print
The debug print did not had print modifier for errno which
causes compiler error.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-03-11 10:39:05 -04:00
IBEN EL HADJ MESSAOUD Marwa 302da95b30 tests: drivers: i2c: i2c_target_api: add nucleo_f401re
Adds i2c3 on the dts of nucleo_f401re.
Adds necessary overlay and nucleo_f401re in i2c_target_api test case
to enable the board.

Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <marwa.ibenelhadjmessaoud-ext@st.com>
2024-03-11 09:07:45 -05:00
Dominik Ermel a454bb9abc tests/storage/stream_flash: Fix the test_stream_flash_erase_page
Fix for test that was failing due to incorrectly testing of
stream_flash_erase_page.
The stream_flash_erase_page would never be able to erase a page
it has been requested to erase.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
2024-03-11 14:26:34 +01:00
Gaetan Perrot 45f907b9fd posix: Implement test for getmsg and getpmsg
Add tests for `getmsg()` and `getpmsg()`

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-03-11 14:25:26 +01:00
Nithin Ramesh Myliattil 6ce38c1aa7 bluetooth: id: fix adv sets with same id use different RPA
The fix is to check if any of the adv set's rpa expired
callback returns false, then all adv sets continues with
the old RPA.

Note: Fix is applicable only to adv sets which shares the
same id.

Signed-off-by: Nithin Ramesh Myliattil <niym@demant.com>
2024-03-11 14:24:41 +01:00
Henrik Brix Andersen 75c9f0fb0e tests: drivers: can: shell: skip dtiming test if CAN FD is not enabled
Skip the "test_can_dtiming" test case if CONFIG_CAN_FD_MODE is not enabled,
not the "test_can_timing_missing_value" test case.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2024-03-11 14:20:20 +01:00
Aleksandr Khromykh aa87ed5d8a Bluetooth: Mesh: make models metadata const
Commit adds const qualifier to models metadata.
Specification claims: Composition Metadata Page 0
shall not change during a term of a node on the network.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2024-03-11 09:26:12 +01:00
Tom Burdick 0650a88bed llext: Rework hello_world test case to be "simple"
The simple test is there to test the API and simple extensions in
unison. Hello world was intended to be the first not the only extension
being tested.

Also refactors the entry thread to allow for usermode potentially by
passing the pointer to the function symbol rather than having it look it
up directly.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2024-03-09 14:44:23 +00:00
Christopher Friedt 8912ba9004 tests: posix: tests for environ, getenv, setenv, unsetenv
Add tests for environ, getenv(), setenv(), unsetenv(), and
getenv_r().

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-03-08 04:28:47 -05:00
Pieter De Gendt 91f36191be boards: st: stm32h573i_dk: Add netif:eth support
Add build_only for the st,stm32-ethernet driver to the build_all
ethernet tests and add an entry for ethernet support to make sure
ethernet driver is built.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-03-08 09:37:15 +01:00
Pieter De Gendt 2054b9f982 tests: drivers: build_all: ethernet: Move app overlay to spi
Use the native_sim board to build ethernet drivers for spi devices and
add an entry for the default testcase.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-03-08 09:37:15 +01:00
Pieter De Gendt 6d99fc6d47 tests: drivers: build_all: ethernet: Do not set NET_TEST
The ethernet drivers can only be built if the NET_TEST option is not
selected.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-03-08 09:37:15 +01:00
Chaitanya Tata 5af6dfdd0e tests: Add a test for duplicate event handlers
This will help to detect any issues with duplicate handlers, currently,
it causes an infinite loop in the handler that processes the single
linked list.

Also, increase the stack size to pass the synchronous test case.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2024-03-08 09:35:04 +01:00
Robert Lubos 328ff9ac45 tests: llext: Set min_ram requirement for readonly_mpu variant
Set the minimal RAM requirement for the test variant, so that it does
not get built for platforms it won't fit anyway.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-03-07 21:38:46 +00:00
Emilio Benavente 9815296500 dts: arm: Enabling pit for imx devices
Enabled the PIT and Multi channel support
for some of the rtXXXX devices.
- rt1010
- rt1060
- rt1160
- rt1170

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-03-07 13:23:58 -06:00
Emilio Benavente 8bb95d33be drivers: counter: Adding Mutli Channel PIT Support
Updating the nxp,pit driver to support mutliple
channels. Updating the dts and board overlays
to account for the changes.

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-03-07 13:23:58 -06:00
Emilio Benavente 04b240c830 dts: bindings: renamed binding used for pit
Renamed pit binding from nxp,kinetis-pit
to nxp,pit

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2024-03-07 13:23:58 -06:00
Peter Mitsis a55a078909 tests: Use z_pend_curr() in sched benchmark
Replaces the use of z_pend_curr_irqlock() with z_pend_curr()
as the former is not used anywhere else anymore.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-03-07 11:51:06 -05:00
Gerard Marull-Paretas 80cc7d1ee5 drivers: mbox: update MBOX consumers to the new API
Update all usages of the MBOX API to the latest API changes (to be
squashed for bisectability).

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-07 14:32:57 +00:00
Gerard Marull-Paretas b39d123163 tests: drivers: mbox: mbox_data: use DT
Instead of hardcoding everything in the sample.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-07 14:32:57 +00:00
Anisetti Avinash Krishna 9eadfef4cf tests: drivers: gpio: gpio_basic_api: boards: Enabled test for rpl_s
Enable gpio_basic_api test for intel_rpl_s_crb platform

Signed-off-by: Anisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
2024-03-07 11:09:30 +00:00
Chang An 3605d57ae1 LE Audio: bt_bap_broadcast_sink_cb.syncable should provide the BIGInfo
Modify bt_bap_broadcast_sink_cb.syncable to provide the BIGInfo
instead of just the encryption field.

Signed-off-by: Chang An <chang.an_1@nxp.com>
2024-03-07 11:09:12 +00:00
Emil Gydesen a472133587 Bluetooth: BAP: Apply missing guards for Kconfig values
Some pieces of code were missing proper guards for Kconfig
values, which could cause compile issues

The massive amount of #if in bap.c clearly indicates that the
file should be split, as it contains many things that are specific
for various roles.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-03-07 10:58:32 +00:00
Ying Zhang b32c819b09 Bluetooth: tester: Add support for BTP_GAP_SET_POWERED command
Fill BTP_GAP_SET_POWERED command to support power on/off BT controller

Fixes: #67346

Signed-off-by: Ying Zhang <ying.zhang_2@nxp.com>
2024-03-07 10:57:17 +00:00
Giancarlo Stasi 95851583b8 Bluetooth: Controller: Vendor Specific: support for Scan Request Reports
Add support for vendor specific Set Scan Request Reports command and
Scan Request Received Event, available for legacy advertising.

Signed-off-by: Giancarlo Stasi <giancarlo.stasi.co@gmail.com>
2024-03-07 10:57:09 +00:00
Lyle Zhu 40cf23daff Bluetooth: Rename BT_BREDR to BT_CLASSIC
Rename BT_BREDR to BT_CLASSIC
Rename CONFIG_BT_BREDR to CONFIG_BT_CLASSIC

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
2024-03-07 11:26:45 +02:00