tests: Bluetooth: Mesh: optimize mesh bsim compilation

Remove not used test suites from compilations for low latency
configuration.

Signed-off-by: Aleksandr Khromykh <aleksandr.khromykh@nordicsemi.no>
This commit is contained in:
Aleksandr Khromykh 2022-09-22 12:22:42 +02:00 committed by Carles Cufí
parent bab80595df
commit be18ed7a98
2 changed files with 19 additions and 0 deletions

View file

@ -23,6 +23,15 @@ if(CONFIG_SETTINGS)
src/test_persistence.c
src/test_replay_cache.c
)
elseif(CONFIG_BT_MESH_GATT_PROXY)
target_sources(app PRIVATE
src/test_advertiser.c
)
elseif(CONFIG_BT_CTLR_LOW_LAT)
target_sources(app PRIVATE
src/test_friendship.c
src/test_transport.c
)
else()
target_sources(app PRIVATE
src/test_transport.c

View file

@ -10,6 +10,11 @@
#if defined(CONFIG_SETTINGS)
extern struct bst_test_list *test_persistence_install(struct bst_test_list *tests);
extern struct bst_test_list *test_rpc_install(struct bst_test_list *tests);
#elif defined(CONFIG_BT_MESH_GATT_PROXY)
extern struct bst_test_list *test_adv_install(struct bst_test_list *test);
#elif defined(CONFIG_BT_CTLR_LOW_LAT)
extern struct bst_test_list *test_transport_install(struct bst_test_list *tests);
extern struct bst_test_list *test_friendship_install(struct bst_test_list *tests);
#else
extern struct bst_test_list *test_transport_install(struct bst_test_list *tests);
extern struct bst_test_list *test_friendship_install(struct bst_test_list *tests);
@ -26,6 +31,11 @@ bst_test_install_t test_installers[] = {
#if defined(CONFIG_SETTINGS)
test_persistence_install,
test_rpc_install,
#elif defined(CONFIG_BT_MESH_GATT_PROXY)
test_adv_install,
#elif defined(CONFIG_BT_CTLR_LOW_LAT)
test_transport_install,
test_friendship_install,
#else
test_transport_install,
test_friendship_install,