Skip to content

Commit d9a691c

Browse files
Thalleykartben
authored andcommitted
tests: Bluetooth: BAP: Modify BASE unittests to native_sim
Modify the unit tests to use the native_sim board instead of the unit_testing board. The native_sim board allows us to use the kernel in a more regular way, while still being able to treat the tests as unittest. This commit also removes unused includes in the CMakelists. Signed-off-by: Emil Gydesen <[email protected]>
1 parent 7781f95 commit d9a691c

File tree

3 files changed

+6
-30
lines changed

3 files changed

+6
-30
lines changed

tests/bluetooth/audio/bap_base/CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
find_package(Zephyr COMPONENTS unittest HINTS $ENV{ZEPHYR_BASE})
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
66

77
project(bluetooth_bap_base)
88

9-
add_subdirectory(${ZEPHYR_BASE}/tests/bluetooth/audio/bap_base/uut uut)
10-
11-
target_link_libraries(testbinary PRIVATE uut)
12-
13-
target_include_directories(testbinary PRIVATE include)
14-
15-
target_sources(testbinary
9+
target_sources(app
1610
PRIVATE
1711
src/main.c
1812
)

tests/bluetooth/audio/bap_base/testcase.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ common:
44
- bluetooth_audio
55
tests:
66
bluetooth.audio.bap_base.test_default:
7-
type: unit
7+
platform_allow:
8+
- native_sim
9+
integration_platforms:
10+
- native_sim

tests/bluetooth/audio/bap_base/uut/CMakeLists.txt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)