Commit graph

16700 commits

Author SHA1 Message Date
Rafał Kuźnia
f78742ff75 tests: drivers: adc: add nRF54L20 configuration
Added the test configuration for nRF54L20 for the following tests:
- adc_api
- adc_error_cases

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
2025-02-13 16:41:57 +01:00
Omkar Kulkarni
97166a5c11 tests: settings: Performance test for settings
This adds a on target performance test for Settings SS. Using this test
performance of the Setting SS + NVS/ZMS backend can be benchmarked.

The test repeatedly write 128 settings entries. Each setting entry
has a size of 4 bytes, and path length of 16 bytes (excluding the
null-terminator).

The test has two variants, with and without Bluetooth scan running.
This is useful to benchmark performance along with some component
of BT subsystem activated.

The test could be enhanced in future to include or create combinations
of different functionalities running, when agreesive store operations
are happening.

Signed-off-by: Omkar Kulkarni <omkar.kulkarni@nordicsemi.no>
2025-02-13 16:40:41 +01:00
Riadh Ghaddab
ef4e8dd5c3 settings: ZMS: add a backend for ZMS (Zephyr Memory Storage)
This adds the initial backend support for the ZMS storage system.

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2025-02-13 16:40:41 +01:00
Mahesh Mahadevan
3b43cb3139 tests: pm: Test the SoC State Change Power Domain driver
The SoC State Change Power Domain driver issues TURN_ON/
TURN_OFF actions to all devices registered with it for
certain power states that can be specified via device tree.
This test exercises the functionality of this driver.

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2025-02-13 16:40:10 +01:00
Sebastian Głąb
c4a817971d tests: drivers: watchodg: Enable wdt_error_cases on nRF5340dk
Enable wdt_error_cases test on nRF5340dk.

Define valid test configuration for that target
(reuse from nRF54H/nRF54L).
Add target to the platform_allow.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-02-13 12:15:41 +01:00
Guillaume Gautier
824bc6cfb5 tests: drivers: uart: async_api: add stm32n6 boards overlays
Add UART test overlays for Nucleo N657x0-Q and STM32N6570 DK boards.
Remove non serial boot conf file since they are now unnecessary.

Signed-off-by: Guillaume Gautier <guillaume.gautier-ext@st.com>
2025-02-13 12:15:01 +01:00
Piotr Kosycarz
e3e45487db tests: drivers: pwm: pwm_gpio_loopback: adjust configuration for nrf54h20
Extend CONFIG_SKIP_EDGE_NUM.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
2025-02-13 12:14:41 +01:00
Khoa Nguyen
fc43629c6f tests: drivers: uart: Add support uart_async_api for ek_ra4m1
Add support uart_async_api to run test app on ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
0c277e7a39 tests: drivers: spi: Add support spi_loopback for ek_ra4m1
Add support spi_loopback to run test app on ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
78b55cc972 tests: drivers: i2c: Add support i2c test for ek_ra4m1
Add support i2c_target_api test app for ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
35d94de056 tests: drivers: adc: add support adc test app for ek_ra4m1
Add support adc_accuracy_test and adc_api test app
for ek_ra4m1 board

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Khoa Nguyen
ddcd752e67 tests: drivers: pwm: Add support pwm_loopback for ek_ra4m1
Add support pwm_loopback to run test app on ek_ra4m1

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-13 09:11:33 +01:00
Ryan McClelland
8f4a4aeb23 tests: cmsis-nn: update tests for v7.0.0
arm_convolve_s8 got an extra arg. Set to NULL to no behavior change.

Signed-off-by: Ryan McClelland <ryanmcclelland@meta.com>
2025-02-13 06:39:17 +01:00
Tom Hughes
782152f404 tests: i2c_emul: Remove unused variable
Building with clang warns:

tests/drivers/i2c/i2c_emul/src/test_forwarding_buf.cpp:20:32: error:
unused variable 'targets' [-Werror,-Wunused-const-variable]
constexpr const struct device *targets[FORWARD_COUNT] = {
                               ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-13 03:27:24 +01:00
Tom Hughes
bae8e34a38 tests: i2c_emul: Remove unused variable
Building with clang warns:

tests/drivers/i2c/i2c_emul/src/test_forwarding_pio.cpp:19:32: error:
unused variable 'targets' [-Werror,-Wunused-const-variable]
constexpr const struct device *targets[FORWARD_COUNT] = {
                               ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-13 03:27:13 +01:00
Tom Hughes
c586962b56 tests: kernel: gen_isr_table: Re-enable warning
This warning doesn't appear to be needed anymore and CI passes with it
removed.

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-13 01:13:47 +01:00
Marek Pieta
da1ae8dca5 tests: bsim: bluetooth: Test with CONFIG_BT_LONG_WQ disabled
Change adds bsim tests with CONFIG_BT_LONG_WQ=n to ensure correct
behavior. Change uses host/gatt/ccc_store test.

Change also switches to using more unique simulation ID in the test
scripts.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2025-02-12 20:26:28 +01:00
Marek Pieta
78479b092f tests: bsim: bluetooth: Test with CONFIG_BT_LONG_WQ disabled
Change adds bsim tests with CONFIG_BT_LONG_WQ=n to ensure correct
behavior. Change uses host/security/ccc_update test.

Change also switches to using more unique simulation ID in the test
scripts.

Signed-off-by: Marek Pieta <Marek.Pieta@nordicsemi.no>
2025-02-12 20:26:28 +01:00
Sachin D Kulkarni
522387ec17 drivers: nrf_wifi: Add missing test cases
Add test cases for SoftAP and P2P modes.

Signed-off-by: Sachin D Kulkarni <Sachin.Kulkarni@nordicsemi.no>
2025-02-12 20:18:47 +01:00
Aksel Skauge Mellbye
da36bfcfa9 tests: drivers: uart: Add overlay for xg24_rb4187c
Add test configuration for xg24_rb4187c in uart_async_api test.

Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
2025-02-12 20:17:36 +01:00
Pavel Vasilyev
6c35d372dd tests: bluetooth: tester: mesh: Increase CMD tx bufs
Increase CONFIG_BT_BUF_CMD_TX_COUNT to avoid deadlock when running out
of buffers. See #77241 for the reference.

This fixes Mesh Provisioning Service tests (MESH/NODE/MPS).

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2025-02-12 16:05:45 +01:00
alperen sener
3cab4fe0dc tests: bluetooth: tester: Make BTP CMD thread stack size kconfig
Different test layers need different stack sizes for BTP CMD thread
and also AutoPTS might need to overwrite this config based on test
case.

Increase the stack size for mesh tests.

Signed-off-by: alperen sener <alperen.sener@nordicsemi.no>
2025-02-12 16:04:48 +01:00
Emil Gydesen
571f26cf1a Bluetooth: Rename BLE to Bluetooth (LE) where applicable
The BLE acronym is not an official description of Bluetooth
LE, and the Bluetooth SIG only ever refers to it as Bluetooth
Low Energy or Bluetooth LE, so Zephyr should as well.

This commit does not change any board or vendor specific
documentation, and the term BLE may still be used in those.
It will be up to the vendors to update it if they want,
since many of them are using the term BLE in their
products.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-12 12:24:18 +01:00
Tom Burdick
2a046004b9 rtio: Correctly handle completion count wraps
Prior to this change a wrap of the completion count (without SUBMIT_SEM)
would result in looping indefinitely waiting for completions.

Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
2025-02-12 12:23:06 +01:00
Jordan Yates
13220aa939 tests: rtio: rtio_api: test cq_count overflow
Add a test for the behaviour of `rtio_submit` with
`CONFIG_RTIO_SUBMIT_SEM=n` when the `cq_count` variable overflows.

Signed-off-by: Jordan Yates <jordan@embeint.com>
2025-02-12 12:23:06 +01:00
Neil Chen
cb772b0f60 board: nxp: frdm_mcxa156: add config CONFIG_LPADC_DO_OFFSET_CALIBRATION
Update config CONFIG_LPADC_DO_OFFSET_CALIBRATION in soc level.

Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
2025-02-12 09:49:17 +01:00
Emil Gydesen
49d9b4cb69 Bluetooth: PACS: Remove BAP infix for pacs_register_param
Since the PACS service is not part of the bt_bap API it should
not use the bt_bap prefix, and instead just be bt_pacs like the
rest of the PACS API.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-12 09:41:49 +01:00
Håvard Reierstad
7737483c06 Bluetooth: Host: More bsim refactoring
Commit does the following changes:
* Use functionality from the `babbelkit` library for common functions
  related to flags, test progression (failing, passing etc.) and
  synchronization between two devices. Locally defined equivalents are
  removed.
* Removes the files containing only functionality that is provided
  by the `babblekit` library.
* Remove the `test_pre_init_f` and `test_tick_f` functions (commonly
  implemented as `test_init` and `test_tick`) from the modified tests.
  These functions are not needed as they were only used to fail the test
  if a device didn't complete the test within a certain time frame. This
  is already handled by the `sim_length` argument used in the test
  scripts.

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-02-12 09:40:07 +01:00
Håvard Reierstad
c2c4f2e0d1 Bluetooth: tests: Add macros to babblekit
Adds two macros to the babblekit library:
* DEFINE_FLAG_STATIC
* TEST_ASSERT_NO_MSG

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-02-12 09:40:07 +01:00
Håvard Reierstad
997814cf8c Bluetooth: testlib: Add addr string macro
Adds a macro returning a string representation of a Bluetooth address.
This allows you to print multiple addresses in a single printk or
LOG... call.

Signed-off-by: Håvard Reierstad <haavard.reierstad@nordicsemi.no>
2025-02-12 09:40:07 +01:00
Andriy Gelman
7fb23580c2 tests: dma: chan_blen_transfer: Add xmc47/45_relax_kit overlays
Adds overlays for xmc47_relax_kit and xmc45_relax_kit boards.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2025-02-12 02:26:20 +01:00
Andriy Gelman
c68004c919 tests: dma: scatter_gather: Add xmc45/47_relax_kit overlay
Also add 0x prefix to print statement in test.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2025-02-12 02:26:20 +01:00
Andriy Gelman
aea1ff9e2f tests: drivers: dma: Add cyclic transfer test
Adds a test with the cyclic transfer bit set in the dma configuration.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
2025-02-12 02:26:20 +01:00
Jiafei Pan
8a9763a895 boards: imx8mn_evk_a53: add i2c gpio expander support
Added gpio expander pca6416 support on the board, it use i2c bus to
expand IO ports.

Added GPIO test case overlay for the board.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-02-12 02:26:08 +01:00
Jiafei Pan
2c2430cb49 boards: imx8mm_evk_a53: add i2c gpio expander support
Added gpio expander pca6416 support on the board, it use i2c bus to
expand IO ports.

Added GPIO test case overlay for the board.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-02-12 02:26:08 +01:00
Tom Hughes
2a1cef8649 tests: net: udp: Remove unused function
Building with clang warns:

tests/net/udp/src/main.c:112:31: error: unused function 'if_get_addr'
[-Werror,-Wunused-function]
static inline struct in_addr *if_get_addr(struct net_if *iface)
                              ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-12 02:24:21 +01:00
Tom Hughes
d6794035cb tests: net: arp: Remove unused function
Building with clang warns:

tests/net/arp/src/main.c:152:31: error: unused function 'if_get_addr'
[-Werror,-Wunused-function]
static inline struct in_addr *if_get_addr(struct net_if *iface)
                              ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-12 02:24:05 +01:00
Tom Hughes
7179284a0c test: net: shell Remove unused function
Building with clang warns:

tests/net/shell/src/main.c:110:31: error: unused function 'if_get_addr'
[-Werror,-Wunused-function]
static inline struct in_addr *if_get_addr(struct net_if *iface)
                              ^

Signed-off-by: Tom Hughes <tomhughes@chromium.org>
2025-02-12 02:23:21 +01:00
Emilio Benavente
65225962c8 tests: drivers: Add FRDM_MCXW72 Overlays
Add FRDM_MCXW72 Overlay for PWM, ADC, SPI testing

Signed-off-by: Emilio Benavente <emilio.benavente@nxp.com>
2025-02-11 22:13:18 +01:00
Jérôme Pouiller
0d0e7800bb tests: drivers: flash: Enable board siwx917_rb4338a
Ensure nobdy break compatibility with SiWx91x chipsets.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-02-11 22:07:11 +01:00
Jérôme Pouiller
5b67a2c497 tests: drivers: dma: Enable board siwx917_rb4338a
Ensure nobdy break compatibility with SiWx91x chipsets.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-02-11 22:07:11 +01:00
Jérôme Pouiller
8575bc00bc tests: drivers: gpio: Enable board siwx917_rb4338a
Ensure nobody break compatibility with SiWx91x chipsets.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-02-11 22:07:11 +01:00
Jérôme Pouiller
931e7cfeca modules: hal_silabs: Introduce WiseConnect SDK
WiseConnect SDK is need for Silabs SiWx91x series.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
2025-02-11 22:07:11 +01:00
Emil Gydesen
b67d291207 Bluetooth: Host: Add type check for bt_conn API
Added a new function, bt_conn_is_type, that returns whether
the provided conn object is of the provided type.

This check is then used to ensure that the conn objects
supplied to other bt_conn function are of the right type.
The right type has also been documented for these functions.

This is an initial commit for a larger change in the BT Host,
as similar checks should be added to the L2CAP, GATT, ISO,
Audio and possibly Mesh APIs.

The type check could have been implemented by using the
bt_conn_get_info function, but that requires additional
function calls as well as memory allocation and copy.
Since bt_conn_is_type is designed to be widely used, it
was suited for its own function.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2025-02-11 22:04:51 +01:00
Lucien Zhao
19f56facd4 tests: drivers: pwm: add mimxrt700_evk cm33 cpu0 support
add overlay file to record the flexio configuration

Signed-off-by: Lucien Zhao <lucien.zhao@nxp.com>
2025-02-11 15:42:48 +01:00
Sebastian Głąb
5eff0c1cd7 tests: subsys: logging: Test with CONFIG_LOG disabled
Developer reports build error when he uses LOG_RAW in his code
and disables logging in prj.conf using CONFIG_LOG=n.

Add test case for above described scenario.

Signed-off-by: Sebastian Głąb <sebastian.glab@nordicsemi.no>
2025-02-11 15:41:21 +01:00
Lingao Meng
f5bd2170d1 tests: bsim: Add testcase for bluetooth mesh extended advertiser
Add some configuration for test adv_ext.c

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>

Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
2025-02-11 15:38:35 +01:00
Rene Beckmann
cc33491265 net: mqtt-sn: Wait for register & subscribe to complete
From the MQTT-SN spec:

6.5 Topic Name Registration Procedure

...
At any point in time a client may have only one
REGISTER message outstanding, i.e. it has to wait
for a REGACK message before it can register another
topic name.
...

6.9 Client’s Topic Subscribe/Un-subscribe Procedure

...
As for the REGISTER procedure, a client may have only
one SUBSCRIBE or one UNSUBCRIBE transaction open at a time.
...

Until now, the library did not comply with these requirements.
An additional "waiting" state for topics was introduced:
REGISTER, SUBSCRIBE and UNSUBSCRIBE as an extra step before
switching to REGISTERING, SUBSCRIBING and UNSUBSCRIBING. The
library now makes sure that only one topic can be REGISTERING
and only one topic can be in either SUBSCRIBING or UNSUBSCRIBING.
Additionally, requesting to UNSUBSCRIBE is now denied if the topic
is not yet SUBSCRIBED, to avoid weird race conditions.

Also, added two tests that verify this behavior.

This fixes #84644

Signed-off-by: Rene Beckmann <rene.bckmnn@gmail.com>
2025-02-11 11:44:52 +00:00
Rene Beckmann
25c78a2561 net: mqtt-sn: Use after function in tests
Use an after function to deinit the client.

Signed-off-by: Rene Beckmann <rene.bckmnn@gmail.com>
2025-02-11 11:44:52 +00:00
Khoa Nguyen
c18b0625d5 tests: drivers: dac: Add support to test DAC on RA devices
Add support ek_ra8m1, ek_ra8d1, mck_ra8t1, ek_ra6m5,
ek_ra6m4, ek_ra6m3, ek_ra6m2, ek_ra6m1, ek_ra6e2,
fpb_ra6e2, fpb_ra6e1, ek_ra4m3, ek_ra4m2, ek_ra4e2,
ek_ra2a1 to test:
- zephyr/tests/drivers/dac/dac_api
- zephyr/tests/drivers/dac/dac_loopback (except ek_ra2a1)

Signed-off-by: Khoa Nguyen <khoa.nguyen.xh@renesas.com>
2025-02-11 11:44:40 +00:00