1 /*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7 #include <stddef.h>
8 #include <stdint.h>
9 #include <string.h>
10
11 #include <zephyr/kernel.h>
12
13 #include <zephyr/sys/printk.h>
14
15 #include "bstests.h"
16
17 #include <zephyr/logging/log.h>
18 LOG_MODULE_REGISTER(bt_bsim_privacy, LOG_LEVEL_INF);
19
20 extern void central_test_args_parse(int argc, char *argv[]);
21 extern void peripheral_test_args_parse(int argc, char *argv[]);
22
23 extern void test_central_main(void);
24 extern void test_peripheral(void);
25
26 static const struct bst_test_instance test_def[] = {
27 {
28 .test_id = "central",
29 .test_descr = "Central device",
30 .test_main_f = test_central_main,
31 .test_args_f = central_test_args_parse,
32 },
33 {
34 .test_id = "peripheral",
35 .test_descr = "Peripheral device",
36 .test_main_f = test_peripheral,
37 .test_args_f = peripheral_test_args_parse,
38 },
39 BSTEST_END_MARKER};
40
test_privacy_install(struct bst_test_list * tests)41 struct bst_test_list *test_privacy_install(struct bst_test_list *tests)
42 {
43 return bst_add_tests(tests, test_def);
44 }
45
46 bst_test_install_t test_installers[] = {test_privacy_install, NULL};
47
main(void)48 int main(void)
49 {
50 bst_main();
51 return 0;
52 }
53