Skip to content
Permalink
Browse files

tests: bluetooth: Test vendor-specific events

Add test for a proprietary HCI Vendor-Specific event.

In the test the controller is replaced with a small stub controller,
with limited support of the initialization flow from the host.

After initialization, a HCI prop event callback is registered and an
prop event is triggered and sent to the host. It is then verified that
the registered callback is called.

Signed-off-by: Thomas Ebert Hansen <thoh@oticon.com>
  • Loading branch information...
thoh-ot authored and carlescufi committed May 13, 2019
1 parent 5e1de1a commit c3de368e47b933b8c7c2358cedadbed54f93494c
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.13.1)
set(NO_QEMU_SERIAL_BT_SERVER 1)

include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
project(hci_prop_evt)

target_sources(app PRIVATE src/main.c)
@@ -0,0 +1,14 @@
CONFIG_TEST=y
CONFIG_ZTEST=y

CONFIG_BT=y
CONFIG_BT_CTLR=n
CONFIG_BT_NO_DRIVER=y

CONFIG_BT_HCI_VS_EVT_USER=y

CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEBUG_HCI_CORE=y
CONFIG_BT_DEBUG_HCI_DRIVER=y

CONFIG_HEAP_MEM_POOL_SIZE=2048

0 comments on commit c3de368

Please sign in to comment.
You can’t perform that action at this time.