1 /*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include "bs_bt_utils.h"
8 #include "bstests.h"
9
10 void central(void);
11 void peripheral_unpair_in_sec_cb(void);
12 void peripheral_disconnect_in_sec_cb(void);
13
14 static const struct bst_test_instance test_to_add[] = {
15 {
16 .test_id = "central",
17 .test_pre_init_f = test_init,
18 .test_tick_f = test_tick,
19 .test_main_f = central,
20 },
21 {
22 .test_id = "peripheral_unpair_in_sec_cb",
23 .test_pre_init_f = test_init,
24 .test_tick_f = test_tick,
25 .test_main_f = peripheral_unpair_in_sec_cb,
26 },
27 {
28 .test_id = "peripheral_disconnect_in_sec_cb",
29 .test_pre_init_f = test_init,
30 .test_tick_f = test_tick,
31 .test_main_f = peripheral_disconnect_in_sec_cb,
32 },
33 BSTEST_END_MARKER,
34 };
35
install(struct bst_test_list * tests)36 static struct bst_test_list *install(struct bst_test_list *tests)
37 {
38 return bst_add_tests(tests, test_to_add);
39 };
40
41 bst_test_install_t test_installers[] = {install, NULL};
42
main(void)43 int main(void)
44 {
45 bst_main();
46 return 0;
47 }
48