Commit 5329319d authored by Andries Kruithof's avatar Andries Kruithof Committed by Alberto Escolar
Browse files

Tests: bluetooth: Fix failing df unittests



Due to recent refactoring following unittests are failing:
tests/bluetooth/df/*
tests/bluetooth/ctrl_user_ext

This commit fixes these by adding the include files containing the
missing type definitions

Signed-off-by: default avatarAndries Kruithof <andries.kruithof@nordicsemi.no>
parent f05229c6
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -8,6 +8,19 @@ project(bluetooth_ctrl_user_ext)

zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/bluetooth/controller/)

if(CONFIG_SOC_COMPATIBLE_NRF)
  zephyr_library_include_directories(
    $ENV{ZEPHYR_BASE}/subsys/bluetooth/controller/ll_sw/nordic
    $ENV{ZEPHYR_BASE}/subsys/bluetooth/hci/nordic
  )
elseif(CONFIG_SOC_OPENISA_RV32M1_RISCV32)
  zephyr_library_include_directories(
    $ENV{ZEPHYR_BASE}/bluetooth/controller/ll_sw/openisa
    $ENV{ZEPHYR_BASE}/bluetooth/hci/openisa
  )
endif()


FILE(GLOB app_sources src/*.c)

target_sources(app PRIVATE ${app_sources})
+3 −0
Original line number Diff line number Diff line
@@ -11,6 +11,9 @@
#include <zephyr/net/buf.h>

#include "util/memq.h"

#include "ll_sw/pdu_df.h"
#include "lll/pdu_vendor.h"
#include "ll_sw/pdu.h"
#include "ll_sw/lll.h"
#include "hci/hci_user_ext.h"
+3 −1
Original line number Diff line number Diff line
@@ -9,7 +9,9 @@
#include <zephyr/ztest.h>

#include <zephyr/bluetooth/bluetooth.h>

#include <pdu_df.h>
#include <lll/pdu_vendor.h>
#include <pdu.h>
#include "bt_common.h"

void *ut_bt_setup(void)
+2 −0
Original line number Diff line number Diff line
@@ -15,6 +15,8 @@
#include <hal/ccm.h>

#include <zephyr/bluetooth/hci.h>
#include <pdu_df.h>
#include <lll/pdu_vendor.h>
#include <pdu.h>
#include <lll.h>
#include <lll/lll_df_types.h>
+2 −0
Original line number Diff line number Diff line
@@ -22,6 +22,8 @@
#include "lll/pdu_vendor.h"
#include "pdu.h"

#include "hal/ccm.h"

#include "lll.h"
#include "lll/lll_adv_types.h"
#include "lll_adv.h"
Loading