Commit graph

16700 commits

Author SHA1 Message Date
Robert Lubos
cd50608f24 tests: net: sockets: af_packet: Fix recvfrom DGRAM test
The recvfrom test case for DGRAM packet socket specified wrong socket
type, so RAW sockets were tested twice instead. Also, for the DGRAM
variant, the offset was not taken into account for the expected packet
length.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-04-30 16:26:16 +02:00
Francois Ramu
8501c46772 boards: st: stm32 add the SD disk name to boards with sdmmc node
Add a disk name to the SDMMC node, as done for all other SD card
compatibles in tree.

Signed-off-by: Francois Ramu <francois.ramu@st.com>
2025-04-30 10:55:04 +01:00
Ha Duong Quang
2f5a05cbb7 tests: adc: adc_api: fix main stack overflow
Increase the value of CONFIG_MAIN_STACK_SIZE for the s32z270 board to
avoid stack overflow during the adc_api test, and add new .conf files
for each board.

Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
2025-04-30 09:48:32 +02:00
Luis Ubieda
996e65d526 tests: rtio: Add testcase to validate OP_DELAY
Providing a set of SQEs with varying delays in different orders. Test
validates each delay is completed at the right amount (and the CQEs are
received in the right order).

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-04-30 09:48:16 +02:00
Camille BAUD
7d3f5f09ab tests: display: Add test for st75256
adds the test for st75256

Signed-off-by: Camille BAUD <mail@massdriver.space>
2025-04-30 07:51:57 +02:00
Arkadiusz Cholewinski
515c98139f tests: kernel/sleep: exclude npcx platforms from the test
According the specification, in extreme cases, the deviation of the APB
clock and LFCLK clock can reach up to +/-1% (+/- 10ms).
Therefore, exclude npcx platforms from the test because it required 1ms
accuracy.

fixes: #66185

Signed-off-by: Arkadiusz Cholewinski <arkadiuszx.cholewinski@intel.com>
2025-04-29 20:10:14 -04:00
Abderrahmane JARMOUNI
6b4984a366 tests: drivers: uart_async_api: fix alignment size
We fix 2 issues:
First issue: __aligned attribute is in bytes
second issue: we should align depending on the platform

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-04-29 20:07:46 -04:00
Daniel Leung
4655ae3a27 tests: userspace/mem_protect: more CONFIG_SYS_HEAP_ALLOC_LOOPS
Due to the constant alloc/free cycles during the stress test,
it is possible that the heap can become fragmented enough to
prevent successful allocation, and thus failing the test.
So we change the CONFIG_SYS_HEAP_ALLOC_LOOPS to a higher value
so the allocation code will try harder to find a space.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-04-29 19:04:23 +02:00
Daniel Leung
6ccf0eb7ad tests: mem_protect/syscalls: more explicit error messages
There are lots of copy and paste error message which does not
really tell you which part fails. So make those messages more
explcitly on where it is emitting the error message.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-04-29 19:04:23 +02:00
Daniel Leung
f08c9fe2c2 tests: mem_protect/syscalls: test k_yield while in syscalls
The syscall stress test relies on timeslicing to switch between
threads, which utilizes the interrupt handling path to perform
context switching. It is also possible for kernel to switch
threads due to, for example, taking a mutex. This adds a bit of
code to the syscalls test to simulate this by yielding while
inside syscall handlers. This is to cover more scenarios so we
can catch issues earlier.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-04-29 19:04:23 +02:00
Daniel Leung
9ade47bbef tests: mem_protect/syscall: join stress threads after abort
Add a loop to join the stress threads after calling abort.
This is to make sure all stress threads have already stopped
before moving on. Simply for test hygiene.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-04-29 19:04:23 +02:00
Daniel Leung
2b13c780cb tests: mem_protect/syscalls: move torture test to another group
This moves the syscall torture test into another test group or
suite so that we run the individual syscall tests first before
the torture test. If individual test fails, it is easier to see
the error. Especially under SMP where multiple CPUs can report
the same error, cluttering the output.

Also rename the test to syscall_switch_stress to better describe
its purpose.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-04-29 19:04:23 +02:00
Daniel Leung
3ca962eb37 tests: mem_protect/syscalls: multiple buffers for stress test
This modifies string_copy() to have an addition ID as function
argument so that it can copy into different buffers during
the multi-threaded stress test, instead of all threads writing
into the same buffer. This is to prevent a situation where
one thread writes incorrect data but being overwritten by
another thread with correct data, thus making the following
strcmp() passing for both threads. Logically this should never
happen since the same function is being called which should
give same result, but it is simply to test for weird
situations.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2025-04-29 19:04:23 +02:00
Fabian Kainka
d02503ad7b drivers: gnss: gnss_emul missing month_day data
Just a minor fix to the gnss_emul.c to fix a the missing
month_day data. Also minor spelling fixes in the test code.

Signed-off-by: Fabian Kainka <f.kainka@gmx.de>
2025-04-29 16:49:29 +02:00
Marek Matej
780bafab6a tests, samples: update esp32_devkitc board records
Update the tests using the esp32_devkitc_xxx entries.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2025-04-29 16:48:55 +02:00
cyliang tw
0400c8828f tests: drivers: i2c: i2c_target_api: support numaker_m55m1
Add support for Nuvoton numaker board numaker_m55m1.

Signed-off-by: cyliang tw <cyliang@nuvoton.com>
2025-04-29 16:48:19 +02:00
Tim Lin
f91943ab6d test: drivers/i2c: ite: it515xx_evb: Add I2C target test
Add I2C target node for it515xx_evb test.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
2025-04-29 16:48:06 +02:00
Jeppe Odgaard
634ba6955c drivers: led: add led_dac
Add LED driver support for DAC based LED drivers.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-04-29 16:47:36 +02:00
Bjarki Arge Andreasen
ac1634b585 tests: rtio: rtio_api: add await sqe test case
Add test case for RTIO_OP_AWAIT SQE.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-04-29 16:47:26 +02:00
Sebastian Głąb
687f4ce244 tests: drivers: audio: dmic_api: Enable coverage calculation
When test is run with enabled coverage, additional RAM is required
to store coverage data.
Digital Microphone test is reserving most of the available RAM
to store audio samples. Thus, test fails to build with coverage
enabled due to RAM overflow.

Decrease size of the audio buffer when coverage is enabled.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-04-29 13:01:07 +02:00
Johan Hedberg
6a24e6d152 Bluetooth: tests: Update to use new H:4 buffer encoding
Update the Bluetooth tests to assume the new H:4 encoding for data that's
passing between HCI drivers and their users (normally the host stack).

Signed-off-by: Johan Hedberg <johan.hedberg@silabs.com>
2025-04-29 13:00:33 +02:00
Henrik Brix Andersen
bbfa777e92 tests: boards: neorv32: build_all: enable PWM controller
Enable the NEORV32 PWM controller in the build_all test.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
2025-04-29 13:00:17 +02:00
Emil Gydesen
4d848ebdb1 tests: Bluetooth: Tester: Fix synced typos
Fixed typos syned -> synced and syced -> synced.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-04-29 02:42:32 +02:00
Benjamin Cabé
01a0c24e17 dts: vendor-prefixes: change description for zephyr entry
Use a better "vendor" name for "zephyr"

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-29 02:41:53 +02:00
Nirav Agrawal
bef5abd293 boards: shields: add nxp_m2_wifi_bt shield
- Added new shield to add support for WIFI and BT interface.
- Added board overlay for MIMXRT1060EVKC.
- Removed mimxrt1062 overlay from shell example to avoid conflicts.
- Added seperate shield overlay for supported M.2 module to enable
 BT or WIFI or Both.
- Added default kconfigs for each BT and WIFI which enables supported
 modules and SoC as part of enabled shield through build param.
- Added shield document.

Signed-off-by: Nirav Agrawal <nirav.agrawal@nxp.com>
2025-04-28 12:57:54 -05:00
Paul Alvin
87b664e3a2 tests: subsys: sd: Add board overlays to support testcase
Add SD/EMMC overlay files to support testcases for Versal NET. This
overlays are used to select the device to be tested.

Signed-off-by: Paul Alvin <alvin.paulp@amd.com>
2025-04-28 12:56:50 -05:00
Paul Alvin
ec23317813 tests: sd: mmc: Add filter for sdhc0 alias
Test expect sdhc0 alias to be defined.

Signed-off-by: Paul Alvin <alvin.paulp@amd.com>
2025-04-28 12:56:50 -05:00
Emil Gydesen
68652a6682 Bluetooth: CAP: Broadcast: Add check for memory allocation for create
When creating a broadcast source with
bt_cap_initiator_broadcast_audio_create there was no check if
all broadcast sources were already allocated, which could cause
a NULL pointer dereference.

Add a check, a test and documentation about possibly
error codes of the function.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-04-28 16:41:06 +02:00
Mert Ekren
d557fc51bb tests: drivers: gpio: Add MAX32657 boards overlay files
Add MAX32657 boards overlay files to gpio test be supported.

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
2025-04-28 16:40:10 +02:00
Fin Maaß
3a195a08da drivers: net: ethernet: change ETHERNET_LINK_*BASE_T
change ETHERNET_LINK_*BASE_T to ETHERNET_LINK_*BASE.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2025-04-28 09:22:09 +01:00
Titan Chen
31f5d2826d drivers: pwm: rts5912: port pwm driver on Zephyr
Add PWM driver support for Realtek RTS5912

Signed-off-by: Titan Chen <titan.chen@realtek.com>
2025-04-28 08:34:18 +02:00
Phi Bang Nguyen
cf6f9e3807 tests: drivers: build_all: video: Move board-specific overlays to boards
Move board-specific overlays to boards folder

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-04-26 11:15:50 -04:00
Phi Bang Nguyen
ee7fb5119b tests: drivers: build_all: video: Add test case for smartdma
Add built-only test case for smartdma driver

Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
2025-04-26 11:15:50 -04:00
Benjamin Cabé
c080d1cb4b tests: posix: add test for pthread_cond_init with existing condattr
Introduce new test for pthread_cond_init verifying successful
initialization with a valid pre-initialized condattr.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-04-25 19:03:28 +02:00
Jukka Rissanen
0c1dca52f4 tests: net: ipv6: Test deprecated address selection
Make sure deprecated address is selected if no other address
is available.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-04-25 19:00:59 +02:00
Neil Chen
4ea825152f tests: drivers/adc/adc_api: Support adc api test for NXP frdm_mcxa153
Support adc api test for NXP frdm_mcxa153

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-04-25 18:59:33 +02:00
Hake Huang
513e45f60d tests: drivers: uart: simplify setting for NXP platforms
simplify the test overlay for NXP platforms
also add check for read_ptr to avoid build warning

Signed-off-by: Hake Huang <hake.huang@nxp.com>
2025-04-25 18:59:24 +02:00
Michał Stasiak
c8bda86db6 tests: drivers: clock_control_api: move startup time to Kconfig
Moved target dependent startup time from header file to
Kconfig option to allow adding new targets with new .conf
file rather that modyfing source of the test. Adjusted
startup time for nRF54L09 and nRF54L20.

Signed-off-by: Michał Stasiak <michal.stasiak@nordicsemi.no>
2025-04-25 15:57:13 +02:00
Aleksandr Khromykh
fd818d7274 tests: bluetooth: mesh: test lpn communication after friendship
Commit extends the communication test between the LPN and
the third mesh device by checking that LPN and the third mesh
device can exchange data normally after friendship termination.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
2025-04-25 14:05:27 +02:00
Luis Ubieda
7e1bc39225 tests: build_all: sensor: Add ICM45686 as an I3C device
To validate build-time functionality.

Signed-off-by: Luis Ubieda <luisf@croxel.com>
2025-04-25 14:05:10 +02:00
Hoang Nguyen
02eda248e1 drivers: gpio: Add support for RZ/A2M
Add gpio support for RZ/A2M

Signed-off-by: Hoang Nguyen <hoang.nguyen.jx@bp.renesas.com>
Signed-off-by: Binh Nguyen <binh.nguyen.xw@renesas.com>
2025-04-25 14:05:01 +02:00
Jérôme Pouiller
6cc155f585 tests: drivers: flash: Remove conflicting overlay
Since siwx917_rb4338a now declare a storage_partition,
siwx917_rb4338a.overlay is not required anymore.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-04-25 14:04:26 +02:00
Jamie McCrae
2df118a390 tests: boot: mcuboot_data_sharing: Remove boot_info node
Removes a node from the devicetree overlay for a board for this
test

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-04-25 14:03:34 +02:00
Jamie McCrae
d2c4ba3191 tests: boot: mcuboot_recovery_retention: Remove boot mode overlay
Removes setting the boot mode device in the default test overlay
file as this is now set by the board

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-04-25 14:03:34 +02:00
Andrej Butok
9126b1240d tests: littlefs: add 18 tested NXP boards to testcase.yaml
Adds 18 tested NXP boards to the littlefs testcase.yaml

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-04-25 11:04:51 +02:00
Derek Snell
dd825203b5 boards: nxp: add mcx_n9xx_evk
Another board for the MCXN947 SOC, very similar to FRDM-MCXN947

Signed-off-by: Derek Snell <derek.snell@nxp.com>
2025-04-25 11:04:08 +02:00
Martin Hoff
64d20cf412 tests: vector_table_relocation: add test for vector table relocation
Add a basic test for vector table relocation to SRAM. This test
verifies that the vector table can be relocated to SRAM and that
the VTOR register correctly points to the SRAM address range.

Signed-off-by: Martin Hoff <martin.hoff@silabs.com>
2025-04-25 11:03:54 +02:00
Jordan Yates
3546020178 tests: net: arp: test the packet queuing case
Test the case where the packet provided to `net_arp_prepare` is queued
for later transmission, instead of being replaced with an ARP query
or having ARP information populated.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-24 22:58:51 +02:00
Jordan Yates
d283130b68 net: l2: ethernet: arp: explicit error codes
Update `net_arp_prepare` to return a return code instead of a pointer,
so that the various results of the function can be differentiated.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-04-24 22:58:51 +02:00
Chris Friedt
89c1f15a6e posix: move timespec functions to posix_clock.h
Move somewhat useful (but private and internal functions) that deal
with struct timespec to posix_clock.h until there is a better API
available for dealing with operations on struct timespec.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2025-04-24 22:58:43 +02:00