Commit Graph

12745 Commits

Author SHA1 Message Date
Jamie McCrae 8f245d764d tests: Update board names for hwmv2
Updates tests that use board names which have changed with
boards v2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:14 +00:00
Erwan Gouriou 86ab2bd430 boards: Convert stm32_min_dev to HWM v2
Port the board to HWMv2.

Signed-off-by: Erwan Gouriou <erwan.gouriou@st.com>
2024-03-01 14:17:12 +00:00
Jamie McCrae 9a93916604 tests: Update board names for hwmv2
Updates tests that use board names which have changed with
boards v2

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2024-03-01 14:17:12 +00:00
Gerard Marull-Paretas 8aa8ce4ac8 soc: gigadevice: port to HWMv2
Port all the Gigadevice SoCs to HWMv2.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-03-01 14:17:07 +00:00
Torsten Rasmussen db9e46010c twister: update testcase.yaml and sample.yaml to mps3/an547 identifier
This commit updates testcase.yaml and sample.yaml to use mps3/an547
identifier which replaces former mps3_an547 board name.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2024-03-01 14:17:06 +00:00
Carlo Caione afa65e4bbe tests: kernel/cache: Do not invd the whole cache
That is dangerous and a big no-no. Remove it.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
2024-03-01 14:08:34 +01:00
Agata Figiel 19610233e2 Bluetooth: Tester: Add TMAP tests support
Adding support for TMAP tests.

Signed-off-by: Agata Figiel <agata.figiel@codecoup.pl>
2024-03-01 09:01:37 +01:00
Fabio Baltieri 3538335f5a input: add a pat912x driver
Add an initial input driver for the PixArt PAT9125EL, just core
functionalities for now, will add more configuration properties at a
later stage.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-29 11:53:20 +00:00
Christopher Friedt d8072a9492 tests: posix: add a compile-and-run-only test for syslog
Ensure that we have code coverage for syslog and that it
can compiles and run with regular tests.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-29 02:45:01 -05:00
Pieter De Gendt 408babb00f tests: net: iface: Test foreach multicast helper functions
Add test cases for IPv4/IPv6 foreach functions that iterate all
multicast addresses assigned to an interface.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-02-28 13:18:06 -06:00
Daniel Leung 7c80746bc6 tests: kernel: use TC_END_REPORT for faults
Use TC_END_REPORT() to report "PROJECT EXECUTION FAILED"
instead of a call to printk() for ZTEST enabled tests. as
this prints the failed message as well as the RunID (and
whatever will be added in future).

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2024-02-28 13:39:15 -05:00
Robert Lubos b920793e9b tests: net: sockets: tls: Add test verifying send() after close
Add test case verifying that send() returns an error when called after
TLS session has been closed.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-28 18:03:40 +00:00
Benedikt Schmidt 9db19dd5a6 tests: drivers: build_all: gpio: fix I2C addresses
Iterate through I2C addresses in devicetree overlay
for build_all/gpio to avoid conflicts.

Fixes #69551

Signed-off-by: Benedikt Schmidt <benedikt.schmidt@embedded-solutions.at>
2024-02-28 17:08:49 +01:00
Fabio Baltieri 906724fb99 input: increase default stack size to 1024
The default 512 bytes stack size is a bit tight for some architecture
and leads to samples running out of stack. Let's default to 1024 and let
the user tweak it down if necessary.

Suggested-by: Benjamin Cabé <benjamin@zephyrproject.org>
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-28 07:45:28 -06:00
Cemre Derbaz d2fbd3f152 tests: watchdog: Do not fail on not permitted option
Skip test on not permitted option provided.

Signed-off-by: Cemre Derbaz <cemre.derbaz@analog.com>
2024-02-27 17:00:07 +01:00
Ricardo Rivera-Matos aff2564c6a build_all: regulator: Adds CP9314 entry
Adds the CP9314 device to the regulator build_all test suite.

Signed-off-by: Ricardo Rivera-Matos <rriveram@opensource.cirrus.com>
2024-02-27 14:57:12 +01:00
Piotr Narajowski 4c9d644680 bluetooth: tester: CSIP tests
Adding support for CSIP client role tests.

Signed-off-by: Piotr Narajowski <piotr.narajowski@codecoup.pl>
2024-02-27 14:55:18 +01:00
Emil Gydesen 689e3216fc Bluetooth: BAP: Add bt_bap_base_subgroup_get_bis_indexes
Add bt_bap_base_subgroup_get_bis_indexes that gets the BIS indexes
of a subgroup. This work very similar to
bt_bap_base_get_bis_indexes, except that it works for subgroups
rather than BASEs.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-27 14:46:33 +01:00
Christopher Friedt c5ba34ec90 tests: posix: common: add a testsuite for pthread_mutexattr_t
Add a testsuite for testing pthread_mutexattr_t related
functions.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-27 06:11:03 -05:00
Christopher Friedt 986e8f0ac4 tests: posix: mutex: init and destroy mutexattr properly
Previously, the mutex attribute was not initialized prior to its
first use or subsequently destroyed.

Ensure that it is initialized by calling
pthread_mutexattr_init() and destroyed by calling
pthread_mutexattr_destroy().

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-27 06:11:03 -05:00
Pavel Vasilyev d1da07144e tests: bsim: bluetooth: mesh: Add short delay before suspending stack
The stack manages to suspend the advertiser before it finishes
transmitting the Outbound PDU Report message to confirm the transmission
of a Provisioning PDU. The test requires the server to become
unresponsive when the Provisioning PDU is sent to the unprovisioned
device to test timeout of the provisioning protocol.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-02-26 14:34:58 +01:00
Pavel Vasilyev febff796bb Revert "bsim: Bluetooth: Mesh: fix provision timeout"
This reverts commit c1bbd48659.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-02-26 14:34:58 +01:00
Pavel Vasilyev d6ce3e88b6 tests: bsim: bluetooth: mesh: Suspend advertiser from the start callback
Now, when the deadlock is removed from `bt_mesh_adv_disable` function,
the advertiser can be disabled from the `bt_mesh_send_cb`
callbacks.

Signed-off-by: Pavel Vasilyev <pavel.vasilyev@nordicsemi.no>
2024-02-26 14:34:58 +01:00
Rubin Gerritsen f086afd47c samples: Bluetooth: Only connect to devices with rssi below -50
When the Bluetooth central samples in an open air environment
it is very likely that there are multiple devices nearby with
a received signal strength stronger than -70 dBm.

To avoid connecting to the wrong device, make the check stricter.

For tests using those samples, the NtNcable attenuation is changed
from the default 60 dBm to 40 dBm to satisfy the new requirement.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2024-02-26 14:34:07 +01:00
Peter Mitsis ebec1500ff tests: latency_measure: Add condition variables
Adds condition variables to the latency measure benchmark.

Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
2024-02-26 11:53:44 +00:00
Juha Ylinen 514fb3f245 tests: lwm2m: Add test case
Add test case for lwm2m_set_bulk() function.

Signed-off-by: Juha Ylinen <juha.ylinen@nordicsemi.no>
2024-02-26 11:53:29 +00:00
Gerard Marull-Paretas 6810a53297 twister: s/riscv(32|64)/riscv
Only riscv is supported now, any 32/64-bit requirements need to use
CONFIG_64BIT now.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
2024-02-26 12:49:06 +01:00
Jukka Rissanen 1899c0c5c7 tests: net: ip-addr: Check IPv6 private addresses
Add a test that checks that the private address checker works
as expected.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-26 11:41:55 +00:00
Jukka Rissanen 5723676770 tests: net: ip-addr: Check IPv4 private addresses
Add a test that checks that the private address checker works
as expected.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-02-26 11:41:55 +00:00
Robert Lubos 3ea05cc958 tests: net: dhcpv4_server: Add tests for declined address expiry/reuse
Verify that declined addresses are not permanently blocked - i. e.
expire after configured timeout and in case of free address shortage,
can be reused.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2024-02-26 11:41:35 +00:00
Fabio Baltieri 9e1eec9ced test: add a test for sign extend
Add tests for the sign extend functions.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2024-02-26 11:41:20 +00:00
Vinayak Kariappa Chettimada c8dbb97170 tests: bsim: hci_uart: Fix execution timeout
Fix execution timeout to be atleast the simulation
length of the tests.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-02-26 11:38:30 +00:00
Vinayak Kariappa Chettimada ff91408385 tests: bsim: hci_uart: Rename to hci_uart test name
Rename uart and uart_async bsim test to reflect
testing of hci_uart sample using UART driver
variants under bsim simulations.

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
2024-02-26 11:38:30 +00:00
Aleksander Wasaznik 060dc9ef6d Bluetooth: tests: Switch to default `BT_RECV_CONTEXT`
The tests `hci_prop_evt` and `host_long_adv_recv` used `bt_recv_prio`,
and so relied on an extra config option `CONFIG_BT_RECV_BLOCKING`. This
patch replaces the use of `bt_recv_prio` with `bt_recv` and restores the
use of the default option for `BT_RECV_CONTEXT`.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-02-26 11:37:14 +00:00
Aleksander Wasaznik 6f077be959 Bluetooth: tests: init: `CONFIG_BT_RECV_WORKQ_BT=y`
Add a test case to the init test to cover `CONFIG_BT_RECV_WORKQ_BT=y`.

Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
2024-02-26 11:36:48 +00:00
Gaetan Perrot a4ea4e294f posix: Implement test for fdetach and fattach
Add tests for `fdetach()` and `fattach()`

signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
2024-02-26 11:36:04 +00:00
Chen Xingyu eaa492ab3e tests: drivers: build_all: input: Add adc-keys
* so that it'll be built by the CI

Signed-off-by: Chen Xingyu <hi@xingrz.me>
2024-02-26 11:35:19 +00:00
Piotr Narajowski 69381b1ba7 bluetooth: tester: Add TBS server tests
Adding support for TBS server tests.

Signed-off-by: Piotr Narajowski <piotr.narajowski@codecoup.pl>
2024-02-26 11:34:00 +00:00
Jonathan Rico 1c73528a10 tests: Bluetooth: add host flow-control test
Verifies that there is no host RX buffer leak due to disconnections.

That is, not actual host buffer objects but rather the number of buffers
that the controller thinks the host has.

If there is a desynchronization between those two, the result would be that
the controller stops forwarding ACL data to the host, leading to an
eventual application timeout.

Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2024-02-26 11:32:36 +00:00
Alberto Escolar Piedras 65d49cd434 tests/bsim/bt/host: Split build script in 6
There are quite many BT host test images being built.
Today these are all built in parallel, causing a quite
high load.

Let's split them in their separate sub-scripts,
so we don't parallelize too many builds,
and users have more granularity if they only
want to build a subset.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-02-26 11:40:47 +01:00
Alberto Escolar Piedras 940d53e839 tests bsim/bt/ll: Split build script in 2
The CIS tests are building quite many
apps on their own.
Let's split them in their separate sub-script,
so we don't parallelize too many builds,
and users have more granularity if they only
want to build a subset.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
2024-02-26 11:40:47 +01:00
Christopher Friedt f60ef4dea9 tests: posix: mqueue: increase sleep ms to reduce failures
The test_mqueue_notify_thread testcase had a relatively high
failure rate because sleeping only 10ms was in some cases not
sufficiently long enough for the spawned thread to update
notification_executed.

Sleep 100 ms instead of 10 ms to reduce the failure rate.

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
2024-02-26 02:09:42 -05:00
Emil Gydesen 41a589c5fa Bluetooth: CSIP: Add support for dynamic SIRKs
Add support for dynamically change the SIRK in a CSIS.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:28:26 -05:00
Gustavo Silva 3850f4ca64 drivers: sensor: add ScioSense ENS160 driver
Add driver for ScioSense ENS160 multi-gas sensor. The driver includes
support for I2C and SPI, attributes for setting temperature and
humidity compensation and data ready trigger.
Also add ScioSense to the list of vendor prefixes.

Signed-off-by: Gustavo Silva <gustavograzs@gmail.com>
2024-02-25 22:27:22 -05:00
Emil Gydesen f4d82cedb9 Bluetooth: Audio: Remove the BT_AUDIO_CODEC_LC3_QOS macros
The LC3 framed macros were unused.
The LC3 unframe macros only added the 7500/10000
parameter, but since the the 7500/10000 requirement is also
defined by BAP, it makes equally much sense to simply use the BAP
presets.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:26:57 -05:00
Emil Gydesen d78604e690 Bluetooth: Audio: Remove the BT_AUDIO_CODEC_LC3_CONFIG_X_Y
LC3 does not define any such configurations, and they are in
fact defined by the BAP. The LC3 header file should thus not
pretend that there are these specific configurations for LC3.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:26:57 -05:00
Emil Gydesen ede68ad5c0 tests: Bluetooth: CAP Commander Change Volume mute unittests
Adds unittests for the CAP COmmander Change Volume mute
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Emil Gydesen 341906a0fd tests: bsim: Bluetooth: CAP Commander Change Volume mute
Adds bsim test of the CAP Commander Change Volume mute
procedure.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
2024-02-25 22:25:26 -05:00
Riadh Ghaddab 0fb8506ae4 tests: subsys/fs/nvs: fix nvs-cache-gc test
nvs-cache-gc test is running into infinite loop because of the wrong
stop condition when filling a sector.
Fix this by keeping an empty ATE in the sector for delete operation as
defined in the NVS filesystem write operations.

Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
2024-02-25 20:47:06 -05:00
Anas Nashif ce4022f828 tests: dma: remove wrong license from overlay
Wrongly licensed file, change to APL-2.0.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2024-02-25 20:44:48 -05:00