Gerard Marull-Paretas
93b63df762
samples, tests: convert string-based twister lists to YAML lists
...
Twister now supports using YAML lists for all fields that were written
as space-separated lists. Used twister_to_list.py script. Some artifacts
on string length are due to how ruamel dumps content.
Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-05-10 09:52:37 +02:00
Jonathan Rico
20f82253ac
tests: Bluetooth: update buf UT behavior
...
a6e5755da8 changed the behavior of
`bt_buf_get_cmd_complete`, update the test accordingly.
Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2023-04-14 11:53:06 +02:00
Théo Battrel
a3ac4421d2
Bluetooth: Tests: Fix bt_buf_get_evt test
...
Fix #55957 . The `bt_buf_get_evt` test was using `net_buf` structures
without allocating it properly.
Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
2023-03-21 22:49:34 +09:00
Henrik Brix Andersen
c6c5d5842d
tests: remove test_framework tag from tests non-framework tests
...
Remove the "test_framework" tag from tests that are not testing the ztest
framework itself.
Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
2023-03-15 15:03:02 +01:00
Jamie McCrae
af78cbdc99
samples and tests: Add REQUIRED to Zephyr find_package call
...
Adds REQUIRED to samples and tests for finding the zephyr package
to align all samples and tests with the same call and parameters.
Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-03-02 09:58:27 +01:00
Fabio Baltieri
f5b4acac57
yamllint: indentation: fix files in tests/
...
Fix the YAML files indentation for files in tests/.
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2023-01-04 14:23:53 +01:00
Yuval Peress
f460c21578
test: update how unit tests set sources
...
Replaces cases of setting SOURCES before calling find_package with
proper target_sources.
Signed-off-by: Yuval Peress <peress@google.com>
2022-10-31 17:01:59 +01:00
Jonathan Rico
d870df0054
Bluetooth: tests: use a single definition of the fff global
...
Linking fails on ubuntu 22.04 because of multiple definitions of the `fff`
global, which is defined by `DEFINE_FFF_GLOBALS`.
Only define it in the tests' `main.c` instead of the mocks.
Signed-off-by: Jonathan Rico <jonathan.rico@nordicsemi.no>
2022-10-26 13:29:19 +02:00
Ahmed Moheb
385527bdd6
tests: bluetooth: Remove deprecated definitions
...
Remove ZTest deprecated definitions that aren't used anymore.
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-10-11 11:29:42 +02:00
Ahmed Moheb
b8d5aaccd2
tests: bluetooth: Use ZTest new APIs with bt_buf_get_cmd_complete() UT
...
Migrate bt_buf_get_cmd_complete() UT to use the new APIs of ZTest
framework.
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-10-11 11:29:42 +02:00
Ahmed Moheb
c7c0e2d654
tests: bluetooth: Use ZTest new APIs with bt_buf_get_evt() UT
...
Migrate bt_buf_get_evt() UT to use the new APIs of ZTest framework.
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-10-11 11:29:42 +02:00
Ahmed Moheb
8c9235c2b0
tests: bluetooth: Use ZTest new APIs with bt_buf_get_rx() UT
...
Migrate bt_buf_get_rx() UT to use the new APIs of ZTest framework.
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-10-11 11:29:42 +02:00
Ahmed Moheb
ea67890fdc
tests: bluetooth: Use ZTest new APIs with bt_buf_get_type() UT
...
Migrate bt_buf_get_type() UT to use the new APIs of ZTest framework.
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-10-11 11:29:42 +02:00
Ahmed Moheb
fd888df41d
tests: bluetooth: host: Add mocks for keys.c
...
Add required mocks to be able to compile and test /bluetooth/host/keys.c
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-26 13:05:47 +02:00
Ahmed Moheb
db5ef779c4
tests: bluetooth: host: Add UT for bt_buf_get_type()
...
Unit test project for bt_buf_get_type().
This part of subsys/bluetooth/host/buf.c unit testing
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-09 10:06:19 +02:00
Ahmed Moheb
e544792ae1
tests: bluetooth: host: Add UT for bt_buf_get_evt()
...
Unit test project for bt_buf_get_evt().
This part of subsys/bluetooth/host/buf.c unit testing
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-09 10:06:19 +02:00
Ahmed Moheb
13203cc801
tests: bluetooth: host: Add UT for bt_buf_get_cmd_complete()
...
Unit test project for bt_buf_get_cmd_complete().
This part of subsys/bluetooth/host/buf.c unit testing
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-09 10:06:19 +02:00
Ahmed Moheb
4abff8a625
tests: bluetooth: host: Add UT for bt_buf_get_rx()
...
Unit test project for bt_buf_get_rx().
This part of subsys/bluetooth/host/buf.c unit testing
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-09 10:06:19 +02:00
Ahmed Moheb
cb5ba5bea8
tests: bluetooth: host: Add mocks for buf.c
...
Add required mocks to be able to compile and test /bluetooth/host/buf.c
Signed-off-by: Ahmed Moheb <ahmed.moheb@nordicsemi.no>
2022-09-09 10:06:19 +02:00