18674 Commits

Author SHA1 Message Date
Cristian Bulacu
f87fff19a7 tests: net: remove OT reference device flag for OT tests
This commit removes OPENTHREAD_REFERENCE_DEVICE flag for OpenThread tests.

Signed-off-by: Cristian Bulacu <cristian.bulacu@nxp.com>
2026-01-23 09:21:10 -06:00
Marcelo Roberto Jimenez
391ca7c7de drivers: flash: flash_shell.c: Fix parsing of "flash read"
The parsing of the number of bytes to read in the read command was being
done in hexadecimal, causing unexpected behavior.

Now the number can be interpreted in decimal or hexadecimal if prefixed
with 0x.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 09:17:05 -06:00
Marcelo Roberto Jimenez
ec8472c362 tests: subsys: shell: Clang-format on shell_flash_test.c
This patch runs clang-format on the shell_flash_test.c file
before the real patch gets applied, otherwise the changes
would be hard to read.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-23 09:17:05 -06:00
Robert Lubos
59b653bb4f tests: net: lib: http_server: Add test case for overlapping resources
Add a test case verifying that if there's a static resource defined
which overlaps a FS resource pointing to a directory, it takes
preference on exact URI match.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 13:52:47 +01:00
Robert Lubos
ba04734220 net: sockets: tls: Optimze helper buffer for sendmsg and CID check
Both cases use a large static buffer, we can optimize here and use a
single mutex-protected buffer for both.

sendmsg() test case needed adjustments, as it was also testing a buffer
overflow scenario. This can only be properly tested however if CID
feature is disabled, as otherwise the common helper buffer size is
increased for the CID use case, preventing the overflow from taking
place.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Robert Lubos
3cc194ee35 tests: net: sockets: tls: Add test cases for DTLS server multi-client
Add test cases verifying that DTLS server socket can handle multiple
clients.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2026-01-23 10:46:05 +01:00
Peter van der Perk
b76f37c5da boards: nxp: mr_canhubk3: Increase FS26 init priority
We've to ensure nothing blocks the watchdog init on startup,
otherwise we'll get into bootloop. Hence increase the piority.

Signed-off-by: Peter van der Perk <peter.vanderperk@nxp.com>
2026-01-23 10:43:47 +01:00
Dat Nguyen Duy
2247f4dc7a tests: drivers: support watchdog tests for s32k5xxcvb
Enable wdt_basic_api watchdog only for cm7. For cr52,
because the SoC set the cores in Thumb mode after reset,
so a debugger is always needed to switch the core to Arm
state before loading zephyr application.

wdt_basic_reset_none test can be enabled for both.

Signed-off-by: Dat Nguyen Duy <dat.nguyenduy@nxp.com>
2026-01-23 10:41:27 +01:00
Kevin Chan
e7720307ef tests: drivers: sdhc: support PSE84
- add overlay files for CM55 in order to run sdhc app.

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Kevin Chan
ac0ad06f9e tests: subsys: sd: sdmmc: support PSE84
- add overlay file for CM55

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-23 10:41:07 +01:00
Kevin Chan
aa58db6622 tests: drivers: spi: spi_loopback: support SPI-DMA on PSE84
Added SPI-DMA overlay

Signed-off-by: Kevin Chan <kevin.chan3@infineon.com>
2026-01-22 14:34:05 -06:00
Peter Mitsis
e18a048c84 kernel: Add K_TIMEOUT_SUM() macro
The K_TIMEOUT_SUM() macro is intended as a means to add two
k_timeout_t values together. This may be useful for a developer
applying an exponential backoff algorithm.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2026-01-22 14:33:23 -06:00
Marcelo Roberto Jimenez
62a49211b1 drivers: serial: uart_xmc4xxx: Enable run time configuration
This patch enables run time configuration for the XMC4xxx serial ports.

Signed-off-by: Marcelo Roberto Jimenez <marcelo.jimenez@gmail.com>
2026-01-22 14:30:26 -06:00
Braeden Lane
56014df8d9 tests: Add cy8ckit_041s_max test overlays
Add test and sample overlays for CY8CKIT-041S-MAX board:
- GPIO basic API test using P1.2 and P1.3 pins
- Button sample using P11.5 with pull-up configuration

Signed-off-by: Braeden Lane <Braeden.Lane@infineon.com>
2026-01-22 13:01:21 -05:00
Vinayak Kariappa Chettimada
891d50c396 tests: bsim: Bluetooth: Cover settings without snprintk use
Cover settings without snprintk use in bsim test.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-01-22 13:01:07 -05:00
Antoine Pradoux
2cc03f791d tests: rtc_api: Add RTC test configuration for nucleo_u385rg_q board
- Add a new test configuration file enabling RTC calibration and alarm
features for the nucleo_u385rg_q board
- Add the nucleo_u385rg_q device tree overlay defining the RTC alias

Signed-off-by: Antoine Pradoux <antoine.pradoux@st.com>
2026-01-22 13:00:57 -05:00
Jamie McCrae
195a3ff63a tests: dfu: img_util: Disable variant image for slot 1 build
Fixes an issue whereby a variant of the slot 1 image is built...
which would occupy the same slot that the test is building for,
therefore disable using the new experimental variant image Kconfig
in this configuration

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-22 12:54:28 -05:00
Grzegorz Chwierut
2d7b42ddc5 tests: boot: mcuboot_direct_xip: escape plus signs in regex patterns
The plus signs in version strings need to be escaped with double
backslashes when used in regex patterns for the test harness.
This ensures proper pattern matching during test execution.

Signed-off-by: Grzegorz Chwierut <grzegorz.chwierut@nordicsemi.no>
2026-01-22 14:14:48 +00:00
Vinayak Kariappa Chettimada
0b1b099196 Bluetooth: Controller: Fix PAST sync_offset_us calculation
Fix the missing use of remainder value in the sync_offset_us
calculations. Also, Periodic Sync reception is relative to
Peripheral event hence ticks_anchor does not require the
ticker margin and event jitter to be subtracted.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2026-01-22 14:09:11 +00:00
Valerio Setti
484fb7d7fc tests: storage: flash_map: rename conf file for integrity check
Since now there is a single backend for crypto, i.e. the PSA Crypto API
one, it's better to rename corresponding test case and related
configuration file so that instead of mentioning "psa" they mention
"integrity-check".

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-22 14:03:06 +00:00
Valerio Setti
74740148b4 tests: storage: flash_map: remove testing of legacy Mbed TLS crypto
Following the removal of legacy Mbed TLS crypto for SHA-256 in the
subsys, this commit updates the related sample. "overlay-mbedtls.conf" is
removed as no more necessary and the corresponding test case is removed
from "testcase.yaml". "overlay-psa.conf" is updated removing unnecessary
Kconfig selections.

Signed-off-by: Valerio Setti <vsetti@baylibre.com>
2026-01-22 14:03:06 +00:00
Lucien Zhao
f63b15ddd0 tests: drivers: pwm: enable pwm_api case by using flexio0
- enable pwm_api case by using flexio function
- record platform information in testcase.yaml

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2026-01-22 14:02:24 +00:00
Camille BAUD
fad7e5dfe6 drivers: display: rename ssd1306/9fb to ssd1306/9
harmonize with other drivers, remove irrelevant suffix

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-22 08:40:29 +00:00
Ibrahim Abdalkader
afa47a2765 mgmt: mcumgr: grp: Use kernel heap for allocations
Use the kernel heap instead of the libc heap, improving
security and consistency.

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2026-01-22 08:38:34 +00:00
Ibrahim Abdalkader
2a432c65a2 drivers: wifi: Use kernel heap for allocations
Use the kernel heap instead of the libc heap, improving
security and consistency.

Signed-off-by: Ibrahim Abdalkader <i.abdalkader@gmail.com>
2026-01-22 08:38:34 +00:00
Greg Leach
5064eda9a4 tests: app_development: Add efr32bg22 support
Map test IRQ to SGI to prevent clash with EUART0 TX IRQ for EFR32BG22 SoC.

Signed-off-by: Greg Leach <greg.leach@ezurio.com>
2026-01-21 20:07:16 +01:00
Camille BAUD
c5c4df5dd6 tests: build_all: display: Add ssd1325
Add ssd1325 test, rename ssd1327

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-21 20:07:07 +01:00
Sylvio Alves
a5dd03b029 tests: drivers: i2s: initialize i2s_config struct to avoid garbage
Initialize the i2s_config struct to zero before use in the
test_i2s_state_not_ready_neg test case.

When frame_clk_freq is set to 0 to unconfigure a stream, other
fields in the struct were left uninitialized. On platforms with
userspace support, the syscall handler validates block_size against
the mem_slab block size before calling the driver.
Uninitialized garbage values could cause this validation to
fail unexpectedly.

Signed-off-by: Sylvio Alves <sylvio.alves@espressif.com>
2026-01-21 17:07:19 +01:00
Pieter De Gendt
aa76c1d10d tests: lib: cobs: Add streaming tests
Add test cases for streaming variants of COBS encoder/decoder.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
Pieter De Gendt
f344ab6b98 cobs: Introduce streaming
This commit does:

- Introduce COBS streaming
- Refactor custom delimiter with XOR'ed encoded data
- Update tests

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
Pieter De Gendt
d4bf9ea2e8 tests: lib: cobs: Remove malloc/free
Use static fixture struct so no malloc/free is needed.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-21 17:06:04 +01:00
Tom Hughes
2d6aa47398 tests: mcumgr: Re-enable clang warning by using variables
When removing TOOLCHAIN_DISABLE_CLANG_WARNING, building the
settings.mgmt test with clang fails with:

tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:87:22: error:
variable 'test_response_read_data_start' is not needed and will not be
emitted [-Werror,-Wunneeded-internal-declaration]
   87 | static const uint8_t test_response_read_data_start[5] = {
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests/subsys/mgmt/mcumgr/settings_mgmt/src/main.c:91:22: error:
variable 'test_response_read_data_end' is not needed and will not be
emitted [-Werror,-Wunneeded-internal-declaration]
   91 | static const uint8_t test_response_read_data_end[1] = {

Add additional asserts to use these variables in the test.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2026-01-21 13:02:20 +00:00
Gaetan Perrot
1a12292846 tests: drivers: flash: negative_tests: fix write/fill alignment tests
The negative flash write and fill tests assumed that unaligned
offsets are always invalid.

This is not true for flash drivers reporting a write_block_size of
1, where all offsets and sizes are naturally aligned.

Condition the unaligned offset and size tests on the actual
write_block_size reported by the driver to avoid false failures and
ensure the tests follow the flash API contract.

No functional change for drivers with write_block_size > 1.

Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
2026-01-21 11:22:25 +00:00
Jamie McCrae
917404f5d7 mgmt: mcumgr: transport: uart: Change Kconfig to depends on
Changes CONFIG_MCUMGR_TRANSPORT_UART from selecting
CONFIG_UART_MCUMGR to instead of depending upon it, as it should
never have selected a driver Kconfig and instead always depended
upon it, and is needed for supporting different UART transports

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-21 11:21:46 +00:00
Khai Cao
c1a356e5ef boards: renesas: Correct part number for mck_ra8t2 board
Correct part number for mck_ra8t2 board by change
r7ka8t2lfecac to r7ka8t2lflcac

Signed-off-by: Khai Cao <khai.cao.xk@renesas.com>
2026-01-21 11:21:27 +00:00
Pieter De Gendt
6dcc156258 tests: lib: devicetree: api_ext: Add ADC_DT_SPEC with fallback tests
Add tests for the _OR variant sf the different ADC_DT_SPEC_GET macros.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-20 20:11:59 -05:00
Pieter De Gendt
12408745f4 tests: lib: devictree: api_ext: Add ADC_DT_SPEC_GET_BY_IDX cases
Add tests for the ADC_DT_SPEC_GET_BY_IDX and ADC_DT_SPEC_INST_GET_BY_IDX
macros.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2026-01-20 20:11:59 -05:00
farsin NASAR V A
5f91dc2a75 tests: drivers: dac: Add SAM E54 Xplained Pro test support
Add board-specific configuration and overlay files for
running DAC API tests on the SAM E54 Xplained Pro board.
- Add sam_e54_xpro.conf
- Add sam_e54_xpro.overlay
- Update DAC API test to support the board

Signed-off-by: farsin NASAR V A <farsin.nasarva@microchip.com>
2026-01-20 20:11:31 -05:00
Felix Wang
765476405a tests: drivers: pwm: Enable FTM pwm test on frdm_mcxe247
Provide overlay file to configure ftm to
enable pwm_api and pwm_loopback

Signed-off-by: Felix Wang <fei.wang_3@nxp.com>
2026-01-20 14:36:24 -05:00
Kate Wang
cf7763ea37 tests: drivers: build_all: input: Add TMA525B to build test
Add the TMA525B touch controller driver to the input build_all test.
This includes:
- Device tree overlay entry for the TMA525B device
- Test configuration enabling interrupt mode

Signed-off-by: Kate Wang <yumeng.wang@nxp.com>
2026-01-20 14:36:06 -05:00
Camille BAUD
2c1d2c8e83 tests: build_all: add ch9350l test
Adds a build test for CH9350L

Signed-off-by: Camille BAUD <mail@massdriver.space>
2026-01-20 14:35:50 -05:00
Szymon Janc
258eef1017 tests: Bluetooth: Bump qualification materials to Core Spec 6.2
This enables Bluetooth Core 6.2. No functional changes.

Signed-off-by: Szymon Janc <szymon.janc@codecoup.pl>
2026-01-20 15:33:36 +00:00
Jamie McCrae
43b0c9895d tests: boot: Add mcuboot_direct_xip test
Adds a test which checks that the sysbuild slot1 variant image is
generated, and ensures that it boots properly when both images are
present or when only the second image is present

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-20 15:31:06 +00:00
Ren Chen
7b81e406d6 board: ite: it515xx_evb: rename it515xx_evb to it51xxx_evb
This change accommodates support for next-generation
soc(it51600).

Tested with:
west build -p always -b it51xxx_evb/it51526aw samples/hello_world/

Signed-off-by: Ren Chen <Ren.Chen@ite.com.tw>
2026-01-20 15:28:09 +00:00
Nhut Nguyen
315ea7bdcc tests: drivers: gpio: Update Renesas RZ overlay files
Update all Renesas RZ overlays for GPIO tests to replace raw
values with IRQ phandles.

Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
2026-01-20 13:25:13 +00:00
Holt Sun
0037a5fc4b boards: frdm_ke17z: Add power management support
Enable power management using LPTMR0 as the idle timer.

- Set zephyr,cortex-m-idle-timer to lptmr0
- Remove redundant stop state DTS overrides
- Add power_mgmt_soc test configuration and overlay

Signed-off-by: Holt Sun <holt.sun@nxp.com>
2026-01-20 13:25:01 +00:00
Chris Friedt
25c2aaef9b posix: xsi: streams: deprecate CONFIG_XOPEN_STREAMS (again)
CONFIG_XOPEN_STREAMS does not follow the pattern of other XSI Option
Groups, where the Option Group name is not the same as the feature
test macro that indicates it is supported by the implementation.

Deprecate CONFIG_XOPEN_STREAMS and rename it to CONFIG_XSI_STREAMS.

For more information, please see
https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/\
V1_chap02.html#tag_02_01_05_09

Signed-off-by: Chris Friedt <chris@fr4.co>
2026-01-20 13:24:51 +00:00
Emil Gydesen
a25598eab9 Bluetooth: CSIP: Fix set member register issue
Fix issue with re-registering CSIS where it relied on
a stack allocated value during the service unregistering
and reset. To fix this properly, and to allow for further
optimization, the register function was refactored to dynamically
create the service, rather than relying on a static allocation
and dynamically remove unwanted characteristics.

Additionally this new approach also allow us to rely on
IS_ENABLED and remove some #if defined, as well as reducing
both ROM and RAM memory usage.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2026-01-20 13:23:28 +00:00
Farsin Nasar V A
d5317f5d42 tests: drivers: watchdog: Adds pic32cxsg test support files
- Adds pic32cx_sg41_cult.overlay for wdt test projects.
- Adds pic32cx_sg41_cult platform allow in testcase.yaml.
- Adds wdt board specific configuration in main.c

Signed-off-by: Farsin Nasar V A <farsin.nasarva@microchip.com>
2026-01-20 13:22:14 +00:00
Jamie McCrae
70fcffd5de tests: Update to use SOC_SERIES_NRF Kconfigs without X suffix
Updates usage of the old Kconfig to use the new Kconfig

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2026-01-20 13:21:38 +00:00