Tests: Bluetooth: Build Host with different configurations

The new `host_config_variants` goal is to be able to test specific set
of configurations when building the Host without the need of having a
specific application for it.

The first test check that the Host build correctly with
`CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY` enabled.

Signed-off-by: Théo Battrel <theo.battrel@nordicsemi.no>
This commit is contained in:
Théo Battrel 2024-12-04 15:09:14 +01:00 committed by Benjamin Cabé
commit d5d3ac7427
4 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(host_config_variants)
target_sources(app PRIVATE src/empty.c)

View file

@ -0,0 +1 @@
CONFIG_BT=y

View file

@ -0,0 +1,10 @@
/*
* Copyright (c) 2024 Nordic Semiconductor
*
* SPDX-License-Identifier: Apache-2.0
*/
int main(void)
{
return 0;
}

View file

@ -0,0 +1,16 @@
tests:
# Test that the Host builds with BT_SMP_OOB_LEGACY_PAIR_ONLY enabled
bluetooth.host_config_variants.config_bt_smp_oob_legacy_pair_only:
extra_configs:
- CONFIG_BT_SMP=y
- CONFIG_BT_PERIPHERAL=y
- CONFIG_BT_SMP_SC_PAIR_ONLY=n
- CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY=y
platform_allow:
- native_sim
- native_sim/native/64
integration_platforms:
- native_sim
tags:
- bluetooth
build_only: true