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:
parent
30928c21f0
commit
d5d3ac7427
4 changed files with 35 additions and 0 deletions
8
tests/bluetooth/host_config_variants/CMakeLists.txt
Normal file
8
tests/bluetooth/host_config_variants/CMakeLists.txt
Normal 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)
|
1
tests/bluetooth/host_config_variants/prj.conf
Normal file
1
tests/bluetooth/host_config_variants/prj.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
CONFIG_BT=y
|
10
tests/bluetooth/host_config_variants/src/empty.c
Normal file
10
tests/bluetooth/host_config_variants/src/empty.c
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2024 Nordic Semiconductor
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
16
tests/bluetooth/host_config_variants/testcase.yaml
Normal file
16
tests/bluetooth/host_config_variants/testcase.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue