1 /* Copyright (c) 2023 Nordic Semiconductor ASA
2  * SPDX-License-Identifier: Apache-2.0
3  */
4 
5 #include "bstests.h"
6 
7 #include <zephyr/logging/log.h>
8 LOG_MODULE_REGISTER(bt_bsim_ead_sample_data, CONFIG_BT_EAD_LOG_LEVEL);
9 
10 extern void test_central(void);
11 extern void test_peripheral(void);
12 extern void test_args_parse(int argc, char *argv[]);
13 
14 static const struct bst_test_instance test_def[] = {
15 	{
16 		.test_id = "central",
17 		.test_descr = "Central device",
18 		.test_main_f = test_central,
19 		.test_args_f = test_args_parse,
20 	},
21 	{
22 		.test_id = "peripheral",
23 		.test_descr = "Peripheral device",
24 		.test_main_f = test_peripheral,
25 		.test_args_f = test_args_parse,
26 	},
27 	BSTEST_END_MARKER};
28 
test_encrypted_ad_data_install(struct bst_test_list * tests)29 struct bst_test_list *test_encrypted_ad_data_install(struct bst_test_list *tests)
30 {
31 	return bst_add_tests(tests, test_def);
32 }
33 
34 bst_test_install_t test_installers[] = {test_encrypted_ad_data_install, NULL};
35 
main(void)36 int main(void)
37 {
38 	bst_main();
39 	return 0;
40 }
41