Commit Graph

16839 Commits

Author SHA1 Message Date
Tom Hughes
d732a51d56 tests: kernel: gen_isr_table: Don't use IRQ1 if already used
IRQ 1 is used by the LiteX timer, so we can't use it for the test:

gen_isr_tables.py: error: multiple registrations at table_index 1 for
irq 1 (0x1)

Existing section
['.irq.WEST_TOPDIR/zephyr/tests/kernel/gen_isr_table/src/main.c.0'],
new section .irq.WEST_TOPDIR/zephyr/drivers/timer/litex_timer.c.0

Has IRQ_CONNECT or IRQ_DIRECT_CONNECT accidentally been invoked on the
same irq multiple times?

Issue #92194

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-07-02 17:58:08 -05:00
Grzegorz Swiderski
d9c5545804 tests: kernel: interrupt: Fix for nRF54H20 FLPR
Use designated IRQ numbers, instead of generic defaults.

Signed-off-by: Grzegorz Swiderski <grzegorz.swiderski@nordicsemi.no>
2025-07-02 17:57:45 -05:00
Tim Pambor
659382f1e9 tests: net: dns-sd: Use standard struct in_addr for IPs
Refactored the code to use the standard struct in_addr for
representing IPv4 addresses instead of a uint32_t combined
with the custom IP_ADDR macro.

Signed-off-by: Tim Pambor <tim.pambor@codewrights.de>
2025-07-02 03:55:06 -10:00
Abderrahmane JARMOUNI
dd594d54f5 tests: kernel: device: expand device api coverage
Enhance device z_device_get_all_static API test

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-07-01 19:03:40 -05:00
Abderrahmane JARMOUNI
ddbc7efed6 tests: kernel: device: expand device api coverage
Add test coverage for device device_get_by_dt_nodelabel() API

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-07-01 19:03:40 -05:00
Abderrahmane JARMOUNI
1f4e78eb33 tests: kernel: device: add dev deinit api coverage
Add test coverage for device de-initialization API

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2025-07-01 19:03:40 -05:00
Sylvio Alves
ae3fb6e091 tests: boot: add Espressif boards to MCUboot test case
Include all supported Espressif SoC variants in the MCUboot
test suite to ensure proper CI coverage.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2025-07-01 11:12:25 -10:00
Declan Snyder
0574ac7e84 tests: spi_loopback: skip hold_on_cs test if not supported
This early exit section is only reached if there is an error.
In the case of not supported, the ret variable will be 0 and zassert
won't happen. This is because the test was meant to be skipped, not
passed or failed, in this case. So add the skip call.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-07-01 11:00:43 -10:00
Emil Gydesen
e72e837971 tests: Bluetooth: Tester: VCP BSIM test
Adds BSIM testing of the VCP features of the BT Tester.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-07-01 10:54:09 -10:00
Cong Nguyen Huu
a53582dab8 tests/samples: drivers: create test, sample for psi5 driver
Create test, sample for psi5 driver

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-07-01 10:53:59 -10:00
Emil Gydesen
2298ec49c7 tests: Bluetooth: Audio: Add common start_broadcast_adv
Add a common function, start_broadcast_adv, to start
broadcast advertisement in the LE Audio BSIM tests.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-07-01 05:57:48 -10:00
Łukasz Stępnicki
d7fd99ecc6 tests: kernel: interrupt: generic ISR offset definition for nrf54h20 VPRs
All VPRs in nrf54h20 can have same ISR offset configuration.

Signed-off-by: Łukasz Stępnicki <lukasz.stepnicki@nordicsemi.no>
2025-07-01 05:55:36 -10:00
Alberto Escolar Piedras
35a10937d7 tests/net: dhcpv6: Avoid directly accessing address of unaligned struct
Use UNALIGNED_MEMBER_ADDR when getting the address of possibly
unaligned structures members instead of attempting to directly
get the address as an offset.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2025-07-01 10:15:55 -05:00
Adam Kondraciuk
017dca302c tests: drivers: timer: nrf_grtc_timer: Align tests with uptime changes
Update GRTC tests to reflect uptime reset at startup.

Signed-off-by: Adam Kondraciuk <adam.kondraciuk@nordicsemi.no>
2025-06-30 15:23:44 -05:00
Shrek Wang
6527a1b23c net: tcp: Set the right th_win value in tester_prepare_tcp_pkt
The 16bit th_win in the TCP header was not set via htons(). It
will bring issues of wrong th_win value in the peer end. For
example, the 1280 (0x0500) TCP window size would be taken as
5 (0x0005) by the peer end.

Signed-off-by: Shrek Wang <inet_eman@outlook.com>
2025-06-30 15:16:02 -05:00
Karol Lasończyk
061036f9e3 tests: samples: Extend support for nRF54LM20A
Extends support and adds new overlays.

Signed-off-by: Karol Lasończyk <karol.lasonczyk@nordicsemi.no>
Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-27 18:26:57 -05:00
David Schneider
f3f851306d boards: waveshare: rp2040_plus: Initial support
Add support for Waveshare RP2040 Plus board a Raspberry Pi Pico like
board including a battery charger.

Signed-off-by: David Schneider <schneidav81@gmail.com>
2025-06-27 18:24:55 -05:00
Raymond Lei
dd90248a3a test: spi_loopback: nxp: Add Flexio spi test support
Add overlay file for RT1170 EVK and simply existing flexio spi overlay
file for RT1060 EVKC and RT1064 EVK. One flexio-spi interface for both slow
and fast tests. Fast baud rate set to 16Mbps now.

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2025-06-27 09:05:47 -10:00
Jukka Rissanen
24843ae223 tests: net: ppp: Compile test with PPP statistics
Make sure the compilation is ok if PPP statistics is enabled.

This is related to commit 3e704256e3
("net: ppp: stats: Fix net_mgmt request handler format") which
was needed because earlier commit 5a9a39caf3
("net: mgmt: Convert the mgmt API to use 64-bit masks")
missed an compile problem because there was no compile test that
enabled CONFIG_NET_STATISTICS_PPP option.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2025-06-27 09:05:22 -10:00
Johann Fischer
a1681112bd tests: usb: device_next: rework test configuration
Do not use qemu_cortex_m3 for the "build all" case, as it overflows and
provides no benefit over native_sim. Add native_sim/native/64 platform
to the tests.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-06-27 08:52:22 -10:00
Johann Fischer
cc92d1c119 tests: usb: device_next: add test for string descriptors
Add test for the string descriptors.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-06-27 08:52:22 -10:00
Johann Fischer
0598392a7d tests: usb: device_next: add test for incomplete control transfers
Add a test for incomplete control transfers with missing data and status
stages.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
2025-06-27 08:52:22 -10:00
Henrik Brix Andersen
5ca8be264d tests: kconfig: functions: add tests for dt_compat_enabled_num
Add tests for the dt_compat_enabled_num Kconfig helper function.

Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2025-06-27 10:07:01 -05:00
Benjamin Cabé
5e0ab3dad0 tests: net: lib: dns: dns_cache: test dns_cache_remove
Add tests for dns_cache_remove() API

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-27 10:05:40 -05:00
Mert Ekren
e7dd1e507a tests: drivers: spi: Add MAX32657 overlay files
Enable 'spi_loopback' test for MAX32657 boards.

Signed-off-by: Mert Ekren <mert.ekren@analog.com>
2025-06-27 10:01:27 -05:00
Benjamin Cabé
3b0e134204 tests: net: npf: test NPF_ORIG_IFACE_[UN]MATCH rules
Add a test for the NPF_ORIG_IFACE_MATCH and NPF_ORIG_IFACE_UNMATCH
rules.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
2025-06-27 14:14:49 +02:00
Tomasz Bursztyka
c341f5389d tests: misc: Fixing expected output on check_init_priorities test
check_init_priorities.py does no longer output any information about any
initialization function pointer as such pointer has been removed from
struct init_entry.

Signed-off-by: Tomasz Bursztyka <tobu@bang-olufsen.dk>
2025-06-27 14:13:58 +02:00
Fabrice DJIATSA
faf1b10d5c tests: drivers: adc: adc_api: increase adc prescaler
increase value of the adc-prescaler to avoid ADC
overrun.

adc driver related error log:
"E: ADC overrun error occurred ..."

Signed-off-by: Fabrice DJIATSA <fabrice.djiatsa-ext@st.com>
2025-06-27 12:22:40 +02:00
Grzegorz Chwierut
1f92890283 tests: upgrade: Upgrade with mcumgr using BLE transport
Extend tests/boot/with_mcumgr with BLE configuration.
Updated sample to use the source code from smp_svr.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2025-06-27 12:21:56 +02:00
Bjarki Arge Andreasen
160c196435 tests: drivers: spi: loopback: extend nrf overlays with miso/mosi
Add miso-gpios and mosi-gpios to nrf overlays required for
device_deinit testing.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-27 10:57:59 +02:00
Bjarki Arge Andreasen
ecb5457898 tests: drivers: spi: loopback: test device_deinit
Introduce test for device_deinit() which deinitializes the spi
bus, then configures miso as input, mosi as output using gpio,
utilizing the loopback to test directly controlling the pins.
Then reinit the spi device.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-27 10:57:59 +02:00
Julien Panis
a631df5cd8 tests: drivers: spi: spi_loopback: Add testcase for cc23x0
Enable DMA for the test.

Signed-off-by: Julien Panis <jpanis@baylibre.com>
2025-06-27 10:56:54 +02:00
Cong Nguyen Huu
1a3f46ce6e tests/samples: drivers: create test, sample for SENT driver
Create test, sample for SENT driver

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-06-26 18:50:07 -10:00
Bjarki Arge Andreasen
e0fa444b8d tests: drivers: i2c: target_api: extend nrf overlays with bus gpios
Add bus gpios to zephyr,user node in nrf overlays to enable testing
device_deinit test case.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-26 22:15:52 -05:00
Bjarki Arge Andreasen
db1f14e79a tests: drivers: i2c: target_api: add device_deinit test case
Add device_deinit test case which, in case there are two devices
using gpio loopbacks, deinits both controller and target devices,
then uses gpio to configure and toggle the pins of the bus, then
reinitializes both devices.

Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
2025-06-26 22:15:52 -05:00
Andrej Butok
82c723c05c tests: test_mcuboot: update the NXP board platform_allow list
- Adds new tested NXP boards to the test_mcuboot platform_allow list.
- Sorts NXP boards alphabetically.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
2025-06-26 22:10:18 -05:00
Yishai Jaffe
40123c6775 tests: display: cfb: added tests for draw_circle API
Added tests for the newly added cfb_draw_circle API.

Signed-off-by: Yishai Jaffe <yishai1999@gmail.com>
2025-06-26 22:09:48 -05:00
Philipp Steiner
a62b62dda8 tests: fuelgauge: Add Onsemi LC709203F driver
Add test for the Onsemi LC709203F fuel gauge

Signed-off-by: Philipp Steiner <philipp.steiner1987@gmail.com>
2025-06-26 22:08:44 -05:00
Raymond Lei
0d2935218c drivers: spi: nxp: fix PCS broken issue and PCS_HOLD_ON support
Different LPSPI IPs are used for RT11xx and MCXN. On a older version of
LPSPI, a transmit command or a TX data need to be issued to end a frame.
On a new version, no such requirement.

Based on above information, we have to make DMA transfers "cascade" in
the DMA ISR to keep CS asserted during the whole SPI transfer.

PCS_HOLD_ON is a feature to keep CS asserted during multi SPI transfers.
It is implemented and supported on new LPSPI IP but it is impossible to
be supported on an older version like RT11xx.

Signed-off-by: Raymond Lei <raymond.lei@nxp.com>
2025-06-26 22:06:04 -05:00
Declan Snyder
6aa46f4019 tests: spi: Add overlay for frdm_mcxa156 dual test
Add an overlay to the spi_controller_peripheral test for the
frdm_mcxa156. Since this IP has multiple CS, need to introduce a way to
configure the correct CS to the test; just going to use zephyr,user for
now instead of refactoring to be less nordic-specific, keeping the usage
optional.

Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
2025-06-26 11:07:55 -10:00
Tony Han
c61f7f09bc tests: drivers: rtc: sam: enable tests for sama7g54_ek
Enable tests: tests/drivers/rtc/rtc_api.

Signed-off-by: Tony Han <tony.han@microchip.com>
2025-06-26 10:42:39 -10:00
Cong Nguyen Huu
bb20f35ecd tests: drivers: mbox_data: exclude the drivers.mbox_data testcase on S32Z
This test case is not supported on the S32Z platform,
as it requires execution across two CPU cores

Signed-off-by: Cong Nguyen Huu <cong.nguyenhuu@nxp.com>
2025-06-26 11:04:19 -05:00
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