Commit Graph

16797 Commits

Author SHA1 Message Date
Benjamin Cabé
44aaa8443b tests: lib: net_buf: add tests for net_buf_linearize()
Add tests to ensure 100% line and branch coverage of previously untested
net_buf_linearize() function.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-26 11:01:49 -05:00
Robert Lubos
2b1b509d9c tests: net: lwm2m: interop: Add custom tests for observe atributes
Add custom interoperability tests verifying that numerical observe
attributes work as expected.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-06-26 11:00:42 -05:00
Sai Santhosh Malae
957ef08cc2 tests: counter: siwx91x: counter_basic_api test support
1. Add counter tag in siwx91x board yaml files
2. Enable sysrtc node for siwx917_rb4342a through overlay

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-06-26 10:58:34 -05:00
Sai Santhosh Malae
b914c7f1a1 tests: dma: siwx91x: loop_transfer test support
Add siwx917_rb4338a and siwx917_rb4342a overlays
for loop_transfer test

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-06-26 10:58:34 -05:00
Sai Santhosh Malae
ff8a8a2d25 tests: dma: siwx91x: update scatter gather testcase.yaml
Include siwx917_rb4338a board

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-06-26 10:58:34 -05:00
Sai Santhosh Malae
3be571dd1d tests: dma: siwx91x: scatter_gather test support
Add scatter gather test support for siwx917_rb4342a

Signed-off-by: Sai Santhosh Malae <Santhosh.Malae@silabs.com>
2025-06-26 10:58:34 -05:00
Sayooj K Karun
41adc8a61a include: zephyr: sys: Refactor MIN_HEAP_DEFINE macro
Remove calling of `min_heap_init()` from MIN_HEAP_DEFINE

Signed-off-by: Sayooj K Karun <sayooj@aerlync.com>
2025-06-26 11:58:05 -04:00
Dave Joseph
cabf2c4d1d tests: power: tisci: TISCI power domains test
Test for power domains driver based on TISCI API added. This test is
for the target am243x_evm/am2434/r5f0_0.

Signed-off-by: Dave Joseph <d-joseph@ti.com>
2025-06-26 10:57:45 -05:00
Jeppe Odgaard
dffbd4fc88 license: fix copyright owner
Change license owner to Prevas due to initially wrong owner due to company
mix-up during co-development.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-06-26 10:56:48 -05:00
Miguel Gazquez
d3cae7ee92 drivers: sensors: add driver for the magnetometer in lsm9ds1
This driver supports the magnetometer in the ST lsm9ds1 sensor, on the
I2C bus.
This driver does not support the triggers.
This driver use the stmemsc HAL.

link: https://www.st.com/resource/en/datasheet/lsm9ds1.pdf

Signed-off-by: Miguel Gazquez <miguel.gazquez@bootlin.com>
2025-06-26 10:55:11 -05:00
David Jewsbury
bd5aefb58b tests: drivers: Update nrf2 clock control tests for nrf2_auxpll driver
Test added for new nrf2_auxpll driver. Frequency checks are
against known usecases of the auxpll (USB, CAN and AUDIO).
Also update test to be more modular, only running certain tests
if in the devicetree.

Signed-off-by: David Jewsbury <david.jewsbury@nordicsemi.no>
2025-06-26 14:13:54 +02:00
Jukka Rissanen
9f46048159 tests: net: dhcpv4: client: Add DNS server deletion test
Make sure net_dhcpv4_stop() will generate DNS server deletion events.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-06-26 14:08:19 +02:00
Jukka Rissanen
29e0272454 tests: net: dhcpv4: client: Remove checks for DNS server removal
As the net_dhcpv4_stop() will now properly remove DNS servers, remove
the loop check so that the add event gets tested again.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-06-26 14:08:19 +02:00
Jukka Rissanen
cdc6c324d7 net: dns: Save info about source when configuring DNS servers
Remember which DNS server was added by a source like DHCPv4 or v6
message. This will allow system to remove DNS servers that were added by
that source. Then when stopping for example DHCP, we can remove those
specific DNS servers and not leaving DNS servers hanging in the system.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-06-26 14:08:19 +02:00
Duy Nguyen
f2d30ab55b tests: kernel_workq: Excluding test for qemu_rx
Excluding this test for qemu_rx because it's failing randomly
Root cause not identified yet, #92213 is created to keep track
of this
This test case is working fine on actual RX HW so issue might be
in the inside the qemu environment

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
Duy Nguyen
9541fceb11 test/subsys/jwt: Work around for qemu_rx support
The qemu_rx some how with too big offset in "mov" instruction
cannot manipulate the memory correctly
This commit reconfigure the slot count to reduce the size of
psa_global_data_t struct so that issue on qemu_rx not occur

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
Duy Nguyen
50c5d3c878 test: zbus: Disable icount shift on qemu_rx
Somehow icount shift making this test fail on qemu_rx target
maybe clock rate on RX is too low, as work around I disable
the icount shift for this test case on qemu_rx

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
Duy Nguyen
250465566b tests: error_hook: Workaround for RX architecture
GCC for RX would crash with an internal compiler error during
DWARF frame generation in `dwarf2out_frame_debug_adjust_cfa()`
when compiling the `trigger_fault_illegal_instruction()`
test function.

This patch adds `__builtin_unreachable()` to help the compiler
reason about control flow, preventing incorrect DWARF CFA
generation.

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
Duy Nguyen
0b52a83104 tests: libcxx: Update missing CONFIG_COMMON_LIBC_MALLOC
The prj.conf was missing CONFIG_COMMON_LIBC_MALLOC causing
warning of the depended config CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE

Signed-off-by: Duy Nguyen <duy.nguyen.xa@renesas.com>
2025-06-26 14:07:03 +02:00
Keith Packard
8d9ae3873c tests/arch/rx: Remove unused variable 'events'
This causes a compile error.

Signed-off-by: Keith Packard <keithp@keithp.com>
2025-06-26 14:07:03 +02:00
Jamie McCrae
3d11c84cfb tests: fs: littlefs: Fix nRF54L15-based dtc overlay files
Fixes these files to no longer delete non-secure partitions as
they are not present, and updates the offset of the area to use

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2025-06-26 12:43:28 +02:00
Adam Kondraciuk
645fb26670 tests: drivers: i2s: Run I2S tests on nRF54H20
Enable test execution on nRF54H20 target.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-06-26 12:42:59 +02:00
Fabrice DJIATSA
7900f8d4ee tests: drivers: uart: async_api: update wba55cg clock frequency
With the current configuration, we encounter a user setting error
during the test with the log:
"Wrong number of bytes received, got: 2, expected: 3."

Workaround:
Increase the clock frequency to enable faster data transmission
and avoid user setting errors.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-26 11:13:30 +02:00
Fabrice DJIATSA
28c766b957 tests: drivers: uart_async_api: add tx buffer in nocache memory
Since nucleo_f746zg has NOCACHE_MEM defined
(related to test cases drivers.uart.async_api.nocache_mem
and drivers.uart.async_api.nocache_mem_dt.nucleo_f746zg),
the TX buffer should be placed in a non-cacheable memory region
for the uart_async_var_buf_length testsuite to pass.

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-26 11:13:30 +02:00
Khoa Tran
a42978a841 tests: i2s: Add support for i2s SSIE on Renesas RA boards
Add Renesas RA board support for these tests:
- tests/drivers/i2s/i2s_api
- tests/drivers/i2c/i2c_speed

Signed-off-by: Khoa Tran <khoa.tran.yj@bp.renesas.com>
2025-06-26 11:12:21 +02:00
Abderrahmane JARMOUNI
da62b1c19d tests: drivers: spi_loopback: fix buffers alignment size
Size given to __aligned() is in bytes.
Align following DCACHE line size, or default to 32-byte alignment

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-06-26 11:12:11 +02:00
Jeppe Odgaard
aeb0c0aec1 tests: drivers: build_all: led: add led_pwm
Enable test for LED PWM driver.

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
2025-06-26 11:10:59 +02:00
Yangbo Lu
5fed196842 tests: drivers: gpio_basic_api: add imx943 m33 dts overlay
Added imx943 m33 dts overlay.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2025-06-26 09:41:53 +02:00
Alvis Sun
23ba092656 boards: npcx: add support for npck3m8k_evb
Add support for npck3m8k board that is a development platform to
evaluate the Nuvoton NPCK3 embedded controller.

Signed-off-by: Alvis Sun <yfsun@nuvoton.com>
Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
2025-06-26 09:39:11 +02:00
Benjamin Cabé
f21f3b0d92 tests: do not use "sanity" word
Fix to align with guidelines regarding the use of inclusive language.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-25 16:00:10 -10:00
Khoa Nguyen
3367bd46dd tests: drivers: comparator: Add support gpio_loopback for ek_ra8p1
Add support test app `gpio_loopback` for Renesas ek_ra8p1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
917bbd2cee tests: subsys: pm: Add support power_mgmt_soc for ek_ra8p1
Add support test app `power_mgmt_soc` for Renesas ek_ra8p1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
6412f03fbd tests: drivers: display: Add support display_read_write on ek_ra8p1
Add support test app `display_read_write` for
ek_ra8p1/r7ka8p1kflcac/cm85

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
10120fd09f tests: drivers: i2c: Add support i2c_api for ek_ra8p1
Add support test app i2c_api for Renesas ek_ra8p1 testing
on i2c and sci-i2c HWIP

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
c6f237ed0b tests: drivers: spi: Add support spi_loopback for ek_ra8p1
Add support test app spi_loopback for Renesas ek_ra8p1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
6750a6a163 tests: drivers: pwm: Add support pwm_loopback for ek_ra8p1
Add support test app pwm_loopback for Renesas ek_ra8p1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khoa Nguyen
e6f9cd35bf tests: drivers: uart: Add support test uart_async for ek_ra8p1
Add support test uart_async_api for Renesas ek_ra8p1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-06-25 15:56:20 -10:00
Khaoula Bidani
1c91c6be3d tests: drivers: wdt_basic_api: Add nucleo u385rg_q as allowed platform
Add nucleo u385rg_q as allowed platform for iwdg and wwdg tests
to verify functionality on the STM32U3-series.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-06-25 15:46:40 -10:00
Cong Nguyen Huu
2339c7c23c tests: drivers: mbox: mbox_data: add support for s32z
The hardware MRU on SoC S32Z supports ping-pong data on a
MBOX channel within one core.

Added Kconfig TEST_SINGLE_CPU to enable test on single CPU  to wrap
the specific code for each testcase, As the expected received data
must match the sent data when running test single CPU. This differs
from the expected data in the current supported test transfer data
between 2 other cores, where the remote core increments the data by
one before transferring it back to the main core.

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-06-25 15:41:38 -10:00
Kristoffer Rist Skøien
ca2e98c4c9 debug: Added CPU usage callback
- Added a CPU load callback with threshold
- Changed cpu_load to use k_timer instead of k_work

Signed-off-by: Kristoffer Rist Skøien <kristoffer.skoien@nordicsemi.no>
2025-06-25 15:29:06 -10:00
Pieter De Gendt
c906d4a103 tests: net: dhcpv4: client: Test restarting DHCPv4 client
Add tests that verify the behavior of stopping and starting the DHCPv4
client.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-25 14:09:46 +02:00
Pieter De Gendt
1712a930a0 tests: net: dhcpv4: client: Explicit event/callback testing
Use k_event bit flags to test individual events and callbacks. Don't rely
on the number of events that happened.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-06-25 14:09:46 +02:00
Aksel Skauge Mellbye
fccc0a7544 drivers: pwm: silabs: Add TIMER PWM driver for Series 2
Add PWM driver for the Timer peripheral on Series 2.
The TIMER uses the high-frequency EM01 Group A clock, and has
a 16- or 32-bit counter. It supports PWM period and pulse capture
on channel 0, and PWM output on all channels.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Aksel Skauge Mellbye
566fc7a7db drivers: pwm: silabs: Add LETIMER PWM driver for Series 2
Add PWM driver for the Low Energy Timer peripheral on Series 2.
The LETIMER runs at up to 32 kHz and has a 24-bit counter. It
only supports PWM output, it does not support input capture.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-06-25 14:07:40 +02:00
Andrzej Głąbek
fb94343ce4 tests: drivers: flash: common: Fix page size when no erase is required
When no flash device requires erase, this test does not retrieve
flash page size with flash_get_page_info_by_offs(), but instead
it takes an arbitrary page size based on the test area length.
Since the test_flash_copy routine needs to use two pages, the test
area needs to be split into at least two parts. Correct the related
code and add a check if test_flash_copy requirements are met.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
2025-06-25 14:06:07 +02:00
Phi Tran
42b2624531 tests: pwm: Add overlay to support pwm on RX130
Add pwm property in tests/pwm to support PWM on RSK-RX130-512KB board.

Signed-off-by: Phi Tran <phi.tran.jg@bp.renesas.com>
2025-06-25 10:52:34 +02:00
Khaoula Bidani
065900b11f tests: drivers: uart: async_api: add stm32u3 boards overlays
Add UART test overlays for Nucleo U385RG-Q board.
Remove non serial boot conf file since they are now unnecessary.

Signed-off-by: Khaoula Bidani <khaoula.bidani-ext@st.com>
2025-06-25 10:50:08 +02:00
Bartosz Miller
39b2451494 tests: boards: nrf: qdec: Disable testing of 2nd instance until fixed
Disable testing second QDEC instance until the issue with multiple
QDEC instances support is resolved

Signed-off-by: Bartosz Miller <bartosz.miller@nordicsemi.no>
2025-06-25 09:53:15 +02:00
Pisit Sawangvonganan
1757ea302c drivers: sensors: improve range check in sensor_value_from_float/double
Avoid undefined behavior caused by casting floating-point values outside
the int32_t range. The updated implementation explicitly validates input
bounds before performing conversions, ensuring consistent behavior across
platforms.

Added test cases to cover edge conditions near float rounding limits
and INT32 range boundaries.

Signed-off-by: Pisit Sawangvonganan <pisit@ndrsolution.com>
2025-06-25 09:52:37 +02:00
Thao Luong
6f135938aa tests: drivers: dac: Add support ek_ra2l1 for dac test
Add support ek_ra2l1 on dac_api and dac_loopback tests.

Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
2025-06-25 09:52:23 +02:00