Skip to content

Commit ee3d089

Browse files
alxelaxcarlescufi
authored andcommitted
tests: Bluetooth: Mesh: remove nrf51dk* and microbit for mesh tests
nrf51 has been discontinued. There is no reason to support ble mesh tests for nrf51 DK platform. As alternative support of nrf52840 has been added if there wasn't before. Also, microbit lacks significant amount of RAM (about 800 bytes) to build mesh test. Signed-off-by: Aleksandr Khromykh <[email protected]>
1 parent 9c8c905 commit ee3d089

File tree

9 files changed

+10
-303
lines changed

9 files changed

+10
-303
lines changed

tests/bluetooth/mesh/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,3 @@ project(mesh)
66

77
zephyr_library_include_directories(${ZEPHYR_BASE}/samples/bluetooth)
88
target_sources(app PRIVATE src/main.c)
9-
if(CONFIG_BOARD_BBC_MICROBIT)
10-
target_sources(app PRIVATE src/microbit.c)
11-
endif()

tests/bluetooth/mesh/microbit.conf

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/bluetooth/mesh/microbit_gatt.conf

Lines changed: 0 additions & 57 deletions
This file was deleted.

tests/bluetooth/mesh/nrf51-16k.conf

Lines changed: 0 additions & 37 deletions
This file was deleted.

tests/bluetooth/mesh/src/board.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

tests/bluetooth/mesh/src/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include <zephyr/bluetooth/bluetooth.h>
1212
#include <zephyr/bluetooth/mesh.h>
1313

14-
#include "board.h"
15-
1614
#define MAX_FAULT 24
1715

1816
static bool has_reg_fault = true;
@@ -139,8 +137,6 @@ static int output_number(bt_mesh_output_action_t action, uint32_t number)
139137

140138
static void prov_complete(uint16_t net_idx, uint16_t addr)
141139
{
142-
board_prov_complete();
143-
144140
if (IS_ENABLED(CONFIG_BT_MESH_IV_UPDATE_TEST)) {
145141
bt_mesh_iv_update_test(true);
146142
}
@@ -173,8 +169,6 @@ static void bt_ready(int err)
173169

174170
printk("Bluetooth initialized\n");
175171

176-
board_init();
177-
178172
err = bt_mesh_init(&prov, &comp);
179173
if (err) {
180174
printk("Initializing mesh failed (err %d)\n", err);

tests/bluetooth/mesh/src/microbit.c

Lines changed: 0 additions & 100 deletions
This file was deleted.

tests/bluetooth/mesh/testcase.yaml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,63 @@
11
tests:
22
bluetooth.mesh.main:
33
build_only: true
4-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
4+
platform_allow: qemu_x86 nrf52840dk_nrf52840
55
integration_platforms:
66
- qemu_x86
77
tags: bluetooth mesh
88
bluetooth.mesh.dbg:
99
build_only: true
1010
extra_args: CONF_FILE=dbg.conf
11-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
11+
platform_allow: qemu_x86 nrf52840dk_nrf52840
1212
integration_platforms:
1313
- qemu_x86
1414
tags: bluetooth mesh
1515
bluetooth.mesh.friend:
1616
build_only: true
1717
extra_args: CONF_FILE=friend.conf
18-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
18+
platform_allow: qemu_x86 nrf52840dk_nrf52840
1919
integration_platforms:
2020
- qemu_x86
2121
tags: bluetooth mesh
2222
bluetooth.mesh.gatt:
2323
build_only: true
2424
extra_args: CONF_FILE=gatt.conf
25-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
25+
platform_allow: qemu_x86 nrf52840dk_nrf52840
2626
integration_platforms:
2727
- qemu_x86
2828
tags: bluetooth mesh
2929
bluetooth.mesh.lpn:
3030
build_only: true
3131
extra_args: CONF_FILE=lpn.conf
32-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
32+
platform_allow: qemu_x86 nrf52840dk_nrf52840
3333
integration_platforms:
3434
- qemu_x86
3535
tags: bluetooth mesh
36-
bluetooth.mesh.main.microbit:
37-
build_only: true
38-
extra_args: CONF_FILE=microbit.conf
39-
platform_allow: bbc_microbit
40-
tags: bluetooth mesh
4136
bluetooth.mesh.pb_gatt:
4237
build_only: true
4338
extra_args: CONF_FILE=pb_gatt.conf
44-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
39+
platform_allow: qemu_x86 nrf52840dk_nrf52840
4540
integration_platforms:
4641
- qemu_x86
4742
tags: bluetooth mesh
4843
bluetooth.mesh.proxy:
4944
build_only: true
5045
extra_args: CONF_FILE=proxy.conf
51-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
46+
platform_allow: qemu_x86 nrf52840dk_nrf52840
5247
integration_platforms:
5348
- qemu_x86
5449
tags: bluetooth mesh
5550
bluetooth.mesh.ext_adv:
5651
build_only: true
5752
extra_args: CONF_FILE=ext_adv.conf
58-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
53+
platform_allow: qemu_x86 nrf52840dk_nrf52840
5954
integration_platforms:
6055
- qemu_x86
6156
tags: bluetooth mesh
6257
bluetooth.mesh.multi_ext_adv:
6358
build_only: true
6459
extra_args: CONF_FILE=multi_ext_adv.conf
65-
platform_allow: qemu_x86 nrf51dk_nrf51422 nrf52840dk_nrf52840
60+
platform_allow: qemu_x86 nrf52840dk_nrf52840
6661
integration_platforms:
6762
- qemu_x86
6863
tags: bluetooth mesh

0 commit comments

Comments
 (0)