From 04794ba1c11c34a2d68917377725cc436ad84728 Mon Sep 17 00:00:00 2001 From: Vinayak Chettimada Date: Wed, 28 Dec 2016 05:42:06 +0100 Subject: [PATCH] Bluetooth: Controller: add init test for BT 4.0 only controller Add a test configuration to build a controller that supports only Bluetooth v4.0 features. This is copy of prj_controller.conf, but Kconfig defines will be added in subsequent commits to conditionally compile out feature not in Bluetooth v4.0 specification. Also, added nrf52840_pca10056 and arduino_101_ble board builds be tested. Change-id: I36891bfc54cc36a8588c9b019de582e3193e8aa3 Signed-off-by: Vinayak Chettimada --- tests/bluetooth/init/prj_controller_4_0.conf | 11 +++++++++++ tests/bluetooth/init/testcase.ini | 11 +++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 tests/bluetooth/init/prj_controller_4_0.conf diff --git a/tests/bluetooth/init/prj_controller_4_0.conf b/tests/bluetooth/init/prj_controller_4_0.conf new file mode 100644 index 00000000000..9323e25a80a --- /dev/null +++ b/tests/bluetooth/init/prj_controller_4_0.conf @@ -0,0 +1,11 @@ +CONFIG_BLUETOOTH=y +CONFIG_BLUETOOTH_CONTROLLER=y +CONFIG_BLUETOOTH_PERIPHERAL=y +CONFIG_BLUETOOTH_CENTRAL=y +CONFIG_BLUETOOTH_SMP=y +CONFIG_BLUETOOTH_SIGNING=y +CONFIG_BLUETOOTH_SMP_SC_ONLY=y +CONFIG_BLUETOOTH_L2CAP_DYNAMIC_CHANNEL=y +CONFIG_BLUETOOTH_GATT_DYNAMIC_DB=y +CONFIG_BLUETOOTH_GATT_CLIENT=y +CONFIG_BLUETOOTH_BREDR=n diff --git a/tests/bluetooth/init/testcase.ini b/tests/bluetooth/init/testcase.ini index e483f00583b..a68d0c458a2 100644 --- a/tests/bluetooth/init/testcase.ini +++ b/tests/bluetooth/init/testcase.ini @@ -8,14 +8,21 @@ tags = bluetooth build_only = true extra_args = CONF_FILE=prj_controller.conf # Only run on nRF5x, the only supported radio -platform_whitelist = nrf52_pca10040 nrf51_pca10028 96b_nitrogen +platform_whitelist = nrf52840_pca10056 nrf52_pca10040 nrf51_pca10028 arduino_101_ble 96b_nitrogen + +[test_controller_4_0] +tags = bluetooth +build_only = true +extra_args = CONF_FILE=prj_controller_4_0.conf +# Only run on nRF5x, the only supported radio +platform_whitelist = nrf52840_pca10056 nrf52_pca10040 nrf51_pca10028 arduino_101_ble [test_controller_dbg] tags = bluetooth build_only = true extra_args = CONF_FILE=prj_controller_dbg.conf # Only run on nRF5x, the only supported radio -platform_whitelist = nrf52_pca10040 nrf51_pca10028 96b_nitrogen +platform_whitelist = nrf52840_pca10056 nrf52_pca10040 nrf51_pca10028 arduino_101_ble 96b_nitrogen [test_h5] tags = bluetooth