From 4e0fecfdb435d60f2af29f0c9aa2d4e45c9824d2 Mon Sep 17 00:00:00 2001 From: Trond Einar Snekvik Date: Thu, 12 Nov 2020 17:13:21 +0100 Subject: [PATCH] Bluetooth: Mesh: Build extended advertising test Adds a new testcase to tests/bluetooth/mesh that builds mesh with extended advertising. Signed-off-by: Trond Einar Snekvik --- tests/bluetooth/mesh/ext_adv.conf | 66 ++++++++++++++++++++++++++++++ tests/bluetooth/mesh/testcase.yaml | 5 +++ 2 files changed, 71 insertions(+) create mode 100644 tests/bluetooth/mesh/ext_adv.conf diff --git a/tests/bluetooth/mesh/ext_adv.conf b/tests/bluetooth/mesh/ext_adv.conf new file mode 100644 index 00000000000..941152f4753 --- /dev/null +++ b/tests/bluetooth/mesh/ext_adv.conf @@ -0,0 +1,66 @@ +CONFIG_TEST=y +CONFIG_INIT_STACKS=y +CONFIG_MAIN_STACK_SIZE=512 +CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048 + +CONFIG_BT_OBSERVER=y +CONFIG_BT_BROADCASTER=y +CONFIG_BT_CTLR_DUP_FILTER_LEN=0 +CONFIG_BT_CTLR_LE_ENC=n +CONFIG_BT_CTLR_LE_PING=n +CONFIG_BT_DATA_LEN_UPDATE=n +CONFIG_BT_PHY_UPDATE=n +CONFIG_BT_CTLR_CHAN_SEL_2=n +CONFIG_BT_CTLR_MIN_USED_CHAN=n +CONFIG_BT_CTLR_PRIVACY=n + +CONFIG_BT_PERIPHERAL=y + +CONFIG_BT=y +CONFIG_BT_TINYCRYPT_ECC=y +CONFIG_BT_L2CAP_RX_MTU=69 +CONFIG_BT_L2CAP_TX_MTU=69 + +CONFIG_BT_MESH=y +CONFIG_BT_MESH_RELAY=y +CONFIG_BT_MESH_RELAY_ENABLED=n +CONFIG_BT_MESH_BEACON_ENABLED=n +CONFIG_BT_MESH_LOW_POWER=n +CONFIG_BT_MESH_FRIEND=n + +CONFIG_BT_MESH_PB_GATT=y +CONFIG_BT_MESH_PB_ADV=n +CONFIG_BT_MESH_GATT_PROXY=y + +CONFIG_BT_MESH_LPN_SCAN_LATENCY=30 +CONFIG_BT_MESH_LPN_RECV_DELAY=40 +#CONFIG_BT_MESH_LPN_POLL_TIMEOUT=300 + +CONFIG_BT_MESH_SUBNET_COUNT=2 +CONFIG_BT_MESH_APP_KEY_COUNT=2 +CONFIG_BT_MESH_MODEL_GROUP_COUNT=2 +CONFIG_BT_MESH_LABEL_COUNT=3 + +CONFIG_BT_MESH_IV_UPDATE_TEST=y + +#CONFIG_UART_CONSOLE=n +#CONFIG_BT_DEBUG_MONITOR=y +CONFIG_BT_DEBUG_LOG=y + +CONFIG_BT_MESH_DEBUG=y +CONFIG_BT_MESH_DEBUG_PROV=y +CONFIG_BT_MESH_DEBUG_PROXY=y +#CONFIG_BT_MESH_DEBUG_BEACON=y +CONFIG_BT_MESH_DEBUG_NET=y +#CONFIG_BT_MESH_DEBUG_TRANS=y +#CONFIG_BT_MESH_DEBUG_LOW_POWER=y +#CONFIG_BT_MESH_DEBUG_FRIEND=y +#CONFIG_BT_MESH_DEBUG_MODEL=y +CONFIG_BT_MESH_DEBUG_ACCESS=y +CONFIG_BT_MESH_DEBUG_CRYPTO=y +CONFIG_BT_MESH_DEBUG_ADV=y +#CONFIG_BT_MESH_SELF_TEST=y + +CONFIG_BT_EXT_ADV=y +CONFIG_BT_CTLR_ADV_EXT=y +CONFIG_BT_MESH_ADV_EXT=y diff --git a/tests/bluetooth/mesh/testcase.yaml b/tests/bluetooth/mesh/testcase.yaml index 08c79d8ac28..a36c4eab780 100644 --- a/tests/bluetooth/mesh/testcase.yaml +++ b/tests/bluetooth/mesh/testcase.yaml @@ -38,3 +38,8 @@ tests: extra_args: CONF_FILE=proxy.conf platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840 tags: bluetooth mesh + bluetooth.mesh.ext_adv: + build_only: true + extra_args: CONF_FILE=ext_adv.conf + platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840 + tags: bluetooth mesh