Commit graph zephyr/tests/boards
Author SHA1 Message Date
Sylvio Alves
b5a3ffb680 tests: boards: esp32 lp_uart irq and loopback tests
Add an internal-loopback ztest for the esp32 lp_uart driver covering
both poll and interrupt-driven paths on c5, c6 and p4. Add a sysbuild
lp-core test where the lp core runs a loopback self-test and reports
the verdict to the hp core over the mailbox, on c5 and c6.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-06-30 18:22:25 -04:00
Jakub Zymelka
5826782d20 tests: boards: nrf: rram: add radio-sync coverage
Bring up BLE LL with non-connectable advertising in the suite setup
(guarded by CONFIG_BT) so that nrf_flash_sync_is_required() returns
true and every flash op is dispatched through the radio-sync
write_op(). Two new testcase variants exercise this path:

 boards.nrf.rram.radio_sync      - BLE active, no SKIP
 boards.nrf.rram.radio_sync_skip - BLE active + SKIP_IF_ERASED

Both overlays pin CONFIG_NRF_RRAM_WRITE_BUFFER_SIZE=32 to match what
MCUboot already uses on nrf54l15dk; the Kconfig default of 1 selected
when not RADIO_SYNC_NONE triggers a pre-existing latent bug in
soc_flash_nrf_ticker.c (FLASH_SLOT_WRITE = 500 us is smaller than
FLASH_SYNC_SWITCHING_TIME = 1700 us, so `interval = duration -
SWITCHING_TIME` underflows uint32_t and any multi-slot write times out
after 24 s).

Add a new test_multislot_stress ZTEST that loops 20 iterations of
write -> read -> verify -> flatten -> read -> verify on a 1024B region.
With WRITE_BUFFER_MAX_SIZE = 512 B every iteration in the radio_sync
variants needs two consecutive radio time slots, which validates:
  - write_op() reentry across slots (FLASH_OP_ONGOING -> next slot);
  - the defensive nrf_rramc_config_set(write=true) at the start of
    every slot, which makes write_op() self-contained instead of
    relying on RRAMC config persisting across the radio gap;
  - end-to-end commit_changes() with sizes that are multiples of
    WRITE_BUFFER_MAX_SIZE (no explicit commit) and not (explicit
    commit), interleaved at iteration granularity.

In RADIO_SYNC_NONE the same workload still validates large single-call
rram_write() and flatten paths, so the test is meaningful for every
existing variant of the suite.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2026-06-29 09:16:40 +02:00
Jakub Zymelka
d5583cad8a tests: boards: nrf: rram: extend with flatten / skip-if-filled tests
Cover the new flash_api_fill dispatch and skip-if-filled paths.

Signed-off-by: Jakub Zymelka <jakub.zymelka@nordicsemi.no>
2026-06-29 09:16:40 +02:00
Jérôme Pouiller
855d0bb027 tests: boards: siwx91x_shell: Make it more user friendly
Main goal of siwx91x_shell is to check the compilation with the CI.
However, experience shows it is also useful to run this application.

So, add support for DHCP, and various shell commands to make it more
convenient for this scenario.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-06-17 11:58:46 -04:00
Jérôme Pouiller
9de509c853 tests: boards: siwx91x_shell: Reorder prj.conf
The options were listed in random order. Group options related to the
network configuration. Try to order/group them by network layer.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-06-17 11:58:46 -04:00
Jérôme Pouiller
84ed7942cb soc: silabs: siwx91x: fota: DNS is not required
DNS_RESOLVER is is fact not a requirement for "silabs fota".

DNS_RESOLVER selected NET_SOCKETS, so if we remove DNS_RESOLVER, we need to
explicitly select NET_SOCKETS.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-06-17 11:58:46 -04:00
Anas Nashif
e12bc68df2 tests: fix various typos
Fix various typos under tests/

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-06-17 10:12:27 -04:00
Sylvio Alves
9a46f33895 soc: espressif: enable octal flash with octal psram
Octal PSRAM modules on esp32s3 are paired with octal flash. Without
CONFIG_ESPTOOLPY_OCT_FLASH the flash runs in untuned STR timing and can
corrupt at high PSRAM speeds, since runtime auto-detect only fixes the
IO mode and cannot enable timing tuning that is gated at build time.

Default ESPTOOLPY_OCT_FLASH to y when SPIRAM_MODE_OCT is selected so the
flash timing is tuned (DTR) out of the box. The user can still disable
it for boards that pair octal PSRAM with quad flash.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-06-16 17:47:22 +02:00
Sylvio Alves
240f6f0823 tests: boards: esp32: add psram config-combo coverage
Add cache_coex variants for flash-to-PSRAM relocation, mcuboot, and
reloc+mcuboot, and extend the base coverage to the esp32c5 and esp32p4
boards, so CI exercises the PSRAM boot paths that previously broke.
Declare integration platforms for the esp32s3 board.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-06-16 17:47:22 +02:00
Abderrahmane JARMOUNI
2112e83949 tests: boards: nrf: dmm: fix dcache line size usage
Use public cache API function to get DCache line size instead of
relying on 'CONFIG_DCACHE_LINE_SIZE' that has dependencies and is
primarily meant to be used in places where API function cannot be
used (linker scripts, special macros...). Apps shall not bypass the
public cache API.

Signed-off-by: Abderrahmane JARMOUNI <git@jarmouni.me>
2026-06-16 17:43:53 +02:00
Ryan Erickson
2e1fb68e36 boards: ezurio: remove bl54L15u_dvk
This board is redundant. bl54l15_dvk is equivalent.

Signed-off-by: Ryan Erickson <ryan.erickson@ezurio.com>
2026-06-10 10:53:47 +02:00
Jérôme Pouiller
f9cff17a1b soc: silabs: siwx91x: add nwp_version shell command
Add a "silabs nwp_version" shell command that prints the NWP firmware
version (chip_id, rom_id, major, minor, security, patch, customer_id,
build_num).

With the optional -c flag, the command also checks the version against
siwx91x_nwp_fw_expected_version and returns -EINVAL if major, minor or
security_version do not match.

The command is controlled by CONFIG_SIWX91X_VERSION_SHELL (default y)
which depends on SILABS_SIWX91X_NWP and SHELL.

Assisted-by: Copilot:claude-sonnet-4.6
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-06-08 23:13:00 +02:00
Jérôme Pouiller
1b3bdc4acb tests: boards: silabs: add siwx91x_shell build test
Add a build-only test for the siwx91x shell commands to ensure
CONFIG_SIWX91X_FIRMWARE_UPGRADE_SHELL keeps compiling with its
typical TLS/networking configuration.

Tested by building for siwx917_rb4338a.

Assisted-by: Copilot:claude-sonnet-4.6
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2026-06-08 23:13:00 +02:00
Anas Nashif
d0b389da9e kernel: remove redundant kernel_structs.h includes
kernel.h implies kernel_structs.h via kernel_includes.h, making
explicit inclusion of kernel_structs.h unnecessary whenever kernel.h
is already included in the same translation unit.

Remove the redundant includes across arch, boards, drivers, kernel,
lib, samples, subsys, and tests trees.

in include/zephyr/kernel_structs.h:
 *  2. kernel.h shall imply kernel_structs.h, such that it shall not be
 *    necessary to include kernel_structs.h explicitly when kernel.h is
 *    included.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-06-02 20:24:14 +02:00
Sylvio Alves
c4b50e3bf3 kernel: smp: fix stale SCHED_CPU_MASK consumers
SCHED_CPU_MASK is an SMP-only feature. Several samples and
tests set CONFIG_SCHED_CPU_MASK=y unconditionally in prj.conf,
which warns on UP boards.

Move the assignment into sample.yaml or testcase.yaml gated on
CONFIG_SMP. Pair with CONFIG_SCHED_SIMPLE=y to satisfy the
scheduler dependency. Drop the flag from tests that do not use
the API. Remove a stale help-text paragraph that no longer
matches the symbol's placement.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-06-01 18:06:04 -05:00
Anas Nashif
15a4788d4a tests/samples: fix test identifiers and make them uniform
Fix test identifiers, apply consistency and categorise.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2026-05-27 21:29:56 -04:00
Sylvio Alves
08cda241e4 tests: wifi: esp32: accept user-requested disconnect as success
A successful user-triggered disconnect now reports its overlayed
disconn_reason (WIFI_REASON_DISCONN_USER_REQUEST) in the event
status field, which is non-zero and was incorrectly flagged as a
failure by the test. Treat both WIFI_REASON_DISCONN_SUCCESS and
WIFI_REASON_DISCONN_USER_REQUEST as passing outcomes.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-04-28 22:07:44 +02:00
Krzysztof Chruściński
a4b69c5ba1 tests: boards: nrf: gppi: Add pdm0 node as test sink
Test is using one of the peripherals as sink for PPI events. So far
it supported LPCOMP or ECB on nrf54h20 cpurad. Some SoCs don't have
LPCOMP and another peripheral need to be used. Extended test to
use PDM in that case. nrf54h20 cpuapp configuration is changed to
use PDM instead of LPCOMP.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-04-22 12:55:36 +02:00
Travis Lam
19886ffd0f tests: Enable tests on nrf7120 NS
Enable tests for nrf7120dk/nrf7120/cpuapp/ns platform.

Signed-off-by: Travis Lam <travis.lam@nordicsemi.no>
2026-04-15 05:43:58 -04:00
Fin Maaß
cfc452889b drivers: wifi: esp32: don't set ESP32_WIFI_STA_AUTO_DHCPV4
Don't set CONFIG_ESP32_WIFI_STA_AUTO_DHCPV4
as it is already enabled by default, if all dependencies are met.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-04-14 22:33:12 -04:00
Nikhil Namjoshi
41082f40fc net: Initialize chksum variable to avoid clang build errors
This addresses clang build failure seen in
https://github.com/zephyrproject-rtos/zephyr/runs/69856219528

after PR #106578 was merged.

Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
2026-04-03 14:58:06 -05:00
Nikhil Namjoshi
f98624455c net: Update net_calc_chksum to return err code on failure
`net_calc_chksum` is designed to return uint16_t checksum.
Its current behavior is to return 0 checksum on error
(or on an empty payload) and a valid non zero checksum for non empty
payloads. 0 could be a valid checksum for empty payload.

So update the `net_calc_chksum` and its wrapper's definition to
return error codes.

Signed-off-by: Nikhil Namjoshi <nikhilnamjoshi@google.com>
2026-04-03 23:14:47 +09:00
Fin Maaß
fdd0b71828 boards: espressif: esp32_ethernet_kit: enable ethernet by default
If a board is called a ethernet_kit, ethernet should be enabled
by default. Also without this being enabled, the esp32 ethernet driver
is not build tested by the ci.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
2026-03-25 08:04:32 -04:00
Chaitanya Tata
b83a85d20e tests: boards: nrf70: ent_security: Fix missing test tag
This tag ensures that whenever hostap is changed then these tests are
also run.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-03-23 17:37:28 -05:00
Marek Matej
3f0eb8be62 tests: boards: espresif: add esp_threadbr
Add new test case to cover esp_threadbr with ethernet shield.

Signed-off-by: Marek Matej <marek.matej@espressif.com>
2026-03-20 07:10:42 +01:00
Andy Lin
c8a5e16dd0 tests: boards: rpi_pico: Add ROM access verification tests
Add a new test suite to verify the accessibility of the ROM functions and
data across different configurations and chips (RP2040 and RP235x).

Signed-off-by: Andy Lin <andylinpersonal@gmail.com>
2026-03-19 17:10:26 -05:00
Sylvio Alves
11c04abe33 tests: add esp32c5 overlays and configs
Add ESP32-C5 test overlays for counter, I2S, PWM loopback, retained
memory, and UART async API tests.

The PWM GPIO loopback test requires SKIP_EDGE_NUM=6 on ESP32-C5 to
account for flash cache loading latency on the first GPIO ISR
invocations that skews edge timing measurements.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-19 14:53:05 -05:00
Zhiyuan Tang
413767d636 tests: boards: realtek: adapt osif_msgq test for RTL8752H
The OSIF API signature for `os_msg_queue_create` differs between the
RTL8752H series and other supported SoCs (e.g., RTL87x2G). Specifically,
the RTL8752H implementation does not accept a queue name string as an
argument.

This commit adds a conditional check using `CONFIG_SOC_SERIES_RTL8752H`
to invoke the correct API variant. This ensures the test suite compiles
and runs correctly on both RTL8752H and RTL87x2G platforms.

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-03-18 08:39:10 -05:00
Jamie McCrae
f22592cbc5 tree: Replace FIXED_PARTITION_* macro usage with PARTITION_*
Replaces usage of these deprecated macros with ones that support
fixed and mapped partition compatibles. Also includes an update to
hal_espressif which also (rightly or wrongly) has zephyr specific
code in it

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-03-17 18:24:52 -04:00
Sylvio Alves
d54faf4d71 tests/samples: espressif: rename esp32c3 board target
esp32c3_devkitm has been used as board reference for ESP32-C3 SoC.
Change to default esp32c3_devkitc to align with internal CI tests.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-17 18:23:32 -04:00
Sylvio Alves
3121a8bf27 tests/samples: espressif: rename esp32s2 board target
esp32s2_saola has been used as board reference for ESP32-S2 SoC.
Change to default esp32s2_devkitc to align with internal CI tests.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-17 18:23:32 -04:00
Sebastian Głąb
01d6259184 tests: boards: nrf: Enable qdec test on nrf54lm20b
Add overlay required to run the qdec test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-12 12:08:08 -04:00
Sylvio Alves
7fb8d277c8 tests: boards: espressif: use ztest harness for memory_layout
The memory_layout test uses the ztest framework with zassert macros,
so the harness should be ztest instead of console with custom regex
patterns.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-03-11 17:48:40 +00:00
Krzysztof Chruściński
fc90e2c89e tests: boards: nrf: gppi: Add support for nrf54h20dk cpuapp
Add configuration for nrf54h20dk/nrf54h20/cpuapp.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-10 14:18:00 -05:00
Krzysztof Chruściński
0cd7926ef5 tests: boards: nrf: gppi: Add test for GPPI
Add test for GPPI helper that manages PPI, DPPI and PPIB.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2026-03-10 14:18:00 -05:00
Sebastian Głąb
f1d1d59c4c tests: boards: nrf: i2c: Enable i2c_slave test on nrf54lm20b
Add overlay required to run the i2c_slave test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 15:13:15 +01:00
Sebastian Głąb
1f40ebe2a2 tests: boards: nrf: hwinfo: Enable reset_cause test on nrf54lm20b
Add overlay required to run the reset_cause test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-06 11:35:15 +00:00
Pieter De Gendt
50578b8aa8 net: ip: icmp: Change net_icmp_handler_t return type to enum net_verdict
Update the return type of the ICMP callback handler to enum net_verdict.
This fixes an issue where currently all ICMP handler are passed the same
pkt. Handlers could have modified the passed packet resulting in undefined
behavior.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-03-06 10:06:42 +01:00
Sebastian Głąb
75678e5f47 tests: boards: nrf: Enable comp test on nrf54lm20b
Add overlay required to run the comp test on nrf54lm20b.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2026-03-04 14:29:16 +00:00
Sylvio Alves
5346c0c02d tests: boards: espressif: rtc_clk: fix XTAL source test
Move PLL frequency array before test_cpu_xtal_src so it can be used
to restore CPU to PLL after XTAL testing. Skip non-exact XTAL
divisions (e.g. 26 MHz / 4) instead of testing invalid frequencies
that would cause the clock driver to fail or hang.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-27 11:50:50 +01:00
Zhiyuan Tang
6b11fe0da8 tests: boards: add test suite for Realtek Bee OSIF
This commit introduces a comprehensive test suite to verify the
Realtek OSIF (Operating System Interface) implementation for the
Bee SoC family.

These tests ensure that the OSIF abstraction layer correctly maps
to the underlying Zephyr kernel APIs.

The test implementation references `tests/subsys/portability/cmsis_rtos_v2`
to adopt a proven testing structure for OS abstraction layers.

The test suite covers the following functional modules:
- Memory management (osif_mem)
- Message queues (osif_msgq)
- Synchronization primitives (Mutexes, Semaphores)
- Task management and Scheduling (osif_task, osif_sched)
- Software timers (osif_timer)

Signed-off-by: Zhiyuan Tang <zhiyuan_tang@realsil.com.cn>
2026-02-26 10:29:19 +01:00
Chaitanya Tata
84142d00e6 hostap: Remove EAP-LEAP that uses MD5
EAP-LEAP uses MD5, so, remove this method.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-26 10:26:51 +01:00
Chaitanya Tata
fce2f70ee0 modules: hostap: Remove MD5
MD5 is deprecated and the security methods that use are not officially
supported in Zephyr (EAP-MD5, TLSv1 etc), so, remove the code related to
MD5 and disable it in hostap.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
2026-02-26 10:26:51 +01:00
Sylvio Alves
e35ef80a3e tests: boards: espressif: memory_layout: use platform_allow
Use platform_allow to explicitly list supported boards instead of
a config filter. This restricts the test to specific devkit boards
and avoids running on appcpu targets.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-24 18:26:39 +01:00
Thinh Le Cong
ad158f7d45 tests: boards: renesas: Add ELC test support for fpb_ra8e1
Add ELC test support for Renesas fpb_ra8e1

Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
2026-02-24 10:34:05 +01:00
Robert Robinson
4511e75716 tests: boards: nrf: i2c: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-23 16:58:49 +00:00
Robert Robinson
807bd74b66 tests boards: nrf_comp: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-23 16:58:49 +00:00
Sylvio Alves
87e1920f09 tests: boards: espressif: add memory layout test
Add a test that validates SRAM region sizes and performs
write/read verification across the full heap range from
_end to _heap_sentry for all Espressif SoCs.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-02-20 14:59:28 +01:00
Robert Robinson
c27bf83db3 tests: boards: nrf: qdec: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-19 10:03:58 -06:00
Robert Robinson
e789595d05 tests: boards: nrf: hwinfo: reset_cause: Add support for nRF7120
After porting nRF7120 to Zephyr, all tests that were supported in
sdk-nrf must now be supported in Zephyr instead.

Signed-off-by: Robert Robinson <robert.robinson@nordicsemi.no>
2026-02-19 10:03:58 -06:00