Skip to content

Commit d5d3ac7

Browse files
theob-prokartben
authored andcommitted
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>
1 parent 30928c2 commit d5d3ac7

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
cmake_minimum_required(VERSION 3.20.0)
4+
5+
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
6+
project(host_config_variants)
7+
8+
target_sources(app PRIVATE src/empty.c)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_BT=y
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* Copyright (c) 2024 Nordic Semiconductor
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
int main(void)
8+
{
9+
return 0;
10+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
tests:
2+
# Test that the Host builds with BT_SMP_OOB_LEGACY_PAIR_ONLY enabled
3+
bluetooth.host_config_variants.config_bt_smp_oob_legacy_pair_only:
4+
extra_configs:
5+
- CONFIG_BT_SMP=y
6+
- CONFIG_BT_PERIPHERAL=y
7+
- CONFIG_BT_SMP_SC_PAIR_ONLY=n
8+
- CONFIG_BT_SMP_OOB_LEGACY_PAIR_ONLY=y
9+
platform_allow:
10+
- native_sim
11+
- native_sim/native/64
12+
integration_platforms:
13+
- native_sim
14+
tags:
15+
- bluetooth
16+
build_only: true

0 commit comments

Comments
 (0)