From ca5931065c34d8042d93cd5ad117d6d6c69b6e71 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Mon, 25 Sep 2023 18:06:58 +1000 Subject: [PATCH] testsuite: boards: unit_testing: default HCI bus Be explicit about the HCI backend that Bluetooth unit tests require. Some unit tests depend on `BT_HAS_HCI_VS`, so also enable that. Signed-off-by: Jordan Yates --- drivers/bluetooth/hci/Kconfig | 1 + .../boards/unit_testing/unit_testing/Kconfig.defconfig | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index 8a50caa92f0..195faef0985 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -99,6 +99,7 @@ config BT_PSOC6_BLESS config BT_NO_DRIVER bool "No default HCI driver" + select BT_HAS_HCI_VS help This is intended for unit tests where no internal driver should be selected. diff --git a/subsys/testsuite/boards/unit_testing/unit_testing/Kconfig.defconfig b/subsys/testsuite/boards/unit_testing/unit_testing/Kconfig.defconfig index b2efdb2bee7..939f1c97e71 100644 --- a/subsys/testsuite/boards/unit_testing/unit_testing/Kconfig.defconfig +++ b/subsys/testsuite/boards/unit_testing/unit_testing/Kconfig.defconfig @@ -2,4 +2,7 @@ # # Copyright (c) 2022 Nordic Semiconductor -# Intentionally left empty +# Bluetooth unit tests expect this backend +choice BT_HCI_BUS_TYPE + default BT_NO_DRIVER +endchoice