From 0b3c67c31ba1d9b9b6e9cc49ffdcf5650a4e35c4 Mon Sep 17 00:00:00 2001 From: Jonathan Rico Date: Tue, 20 Aug 2024 10:17:39 +0200 Subject: [PATCH] Bluetooth: audio: Make unit tests compile The tests manually include sources that are normally conditionally included (ie based on kconfig values) in the stack. The tests should be fixed by the original authors. For now, force-on the hidden kconfig that enables the log options. Signed-off-by: Jonathan Rico --- tests/bluetooth/audio/bap_base/Kconfig | 14 ++++++++++++++ tests/bluetooth/audio/cap_commander/Kconfig | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tests/bluetooth/audio/bap_base/Kconfig create mode 100644 tests/bluetooth/audio/cap_commander/Kconfig diff --git a/tests/bluetooth/audio/bap_base/Kconfig b/tests/bluetooth/audio/bap_base/Kconfig new file mode 100644 index 00000000000..04d45e7f89b --- /dev/null +++ b/tests/bluetooth/audio/bap_base/Kconfig @@ -0,0 +1,14 @@ +# Temporary override +# +# Copyright (c) 2024 Nordic Semiconductor ASA + +# SPDX-License-Identifier: Apache-2.0 +# + +config BT_BAP_BASE + # Override until someone fixes the UT build system + bool + default y + +# Include Zephyr's Kconfig. +source "Kconfig.zephyr" diff --git a/tests/bluetooth/audio/cap_commander/Kconfig b/tests/bluetooth/audio/cap_commander/Kconfig new file mode 100644 index 00000000000..1493bd1a3d1 --- /dev/null +++ b/tests/bluetooth/audio/cap_commander/Kconfig @@ -0,0 +1,14 @@ +# Temporary override +# +# Copyright (c) 2024 Nordic Semiconductor ASA + +# SPDX-License-Identifier: Apache-2.0 +# + +config BT_BAP_STREAM + # Override until someone fixes the UT build system + bool + default y + +# Include Zephyr's Kconfig. +source "Kconfig.zephyr"