Bluetooth: controller: SW deferred privacy build test
Build test of feature Signed-off-by: Asger Munk Nielsen <asmk@oticon.com>
This commit is contained in:
parent
1d412c4acd
commit
f6f33dfb8f
14
tests/bluetooth/ctrl_sw_privacy/CMakeLists.txt
Normal file
14
tests/bluetooth/ctrl_sw_privacy/CMakeLists.txt
Normal file
|
@ -0,0 +1,14 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.13.1)
|
||||
include_directories("./src")
|
||||
|
||||
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
|
||||
project(bluetooth_ctrl_sw_privacy)
|
||||
|
||||
zephyr_library_include_directories($ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
|
||||
target_sources(app PRIVATE ${app_sources})
|
||||
|
8
tests/bluetooth/ctrl_sw_privacy/prj.conf
Normal file
8
tests/bluetooth/ctrl_sw_privacy/prj.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
CONFIG_BT=y
|
||||
CONFIG_BT_CTLR=y
|
||||
CONFIG_BT_LL_SW_SPLIT=y
|
||||
CONFIG_BT_PERIPHERAL=y
|
||||
CONFIG_BT_CENTRAL=y
|
||||
CONFIG_ZTEST=y
|
||||
CONFIG_BT_PRIVACY=y
|
||||
CONFIG_BT_CTLR_SW_DEFERRED_PRIVACY=y
|
27
tests/bluetooth/ctrl_sw_privacy/src/main.c
Normal file
27
tests/bluetooth/ctrl_sw_privacy/src/main.c
Normal file
|
@ -0,0 +1,27 @@
|
|||
/* main.c - Application main entry point */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2015-2016 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/types.h>
|
||||
#include <stddef.h>
|
||||
#include <sys/printk.h>
|
||||
#include <ztest.h>
|
||||
|
||||
#include <bluetooth/bluetooth.h>
|
||||
|
||||
void test_ctrl_sw_privacy(void)
|
||||
{
|
||||
zassert_false(bt_enable(NULL), "%s failed", __func__);
|
||||
}
|
||||
|
||||
/* test case main entry */
|
||||
void test_main(void)
|
||||
{
|
||||
ztest_test_suite(test_bluetooth,
|
||||
ztest_unit_test(test_ctrl_sw_privacy));
|
||||
ztest_run_test_suite(test_bluetooth);
|
||||
}
|
7
tests/bluetooth/ctrl_sw_privacy/testcase.yaml
Normal file
7
tests/bluetooth/ctrl_sw_privacy/testcase.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
common:
|
||||
build_only: true
|
||||
tags: bluetooth
|
||||
tests:
|
||||
bluetooth.ctrl_sw_privacy.test:
|
||||
platform_whitelist: nrf52_bsim
|
||||
|
Loading…
Reference in a new issue