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 tester_procedure(void);
11 void dut_procedure(void);
12 
13 static const struct bst_test_instance test_to_add[] = {
14 	{
15 		.test_id = "central",
16 		.test_pre_init_f = test_init,
17 		.test_tick_f = test_tick,
18 		.test_main_f = tester_procedure,
19 	},
20 	{
21 		.test_id = "peripheral",
22 		.test_pre_init_f = test_init,
23 		.test_tick_f = test_tick,
24 		.test_main_f = dut_procedure,
25 	},
26 	BSTEST_END_MARKER,
27 };
28 
install(struct bst_test_list * tests)29 static struct bst_test_list *install(struct bst_test_list *tests)
30 {
31 	return bst_add_tests(tests, test_to_add);
32 };
33 
34 bst_test_install_t test_installers[] = {install, NULL};
35 
main(void)36 int main(void)
37 {
38 	bst_main();
39 	return 0;
40 }
41