1 /*
2  * Copyright (c) 2024 Nordic Semiconductor ASA
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include <zephyr/kernel.h>
8 
9 #include "bs_tracing.h"
10 #include "bstests.h"
11 #include "babblekit/testcase.h"
12 
13 extern void entrypoint_peer(void);
14 extern enum bst_result_t bst_result;
15 
16 
test_end_cb(void)17 static void test_end_cb(void)
18 {
19 	if (bst_result != Passed) {
20 		TEST_PRINT("Test has not passed.");
21 	}
22 }
23 
24 static const struct bst_test_instance entrypoints[] = {
25 	{
26 		.test_id = "peer",
27 		.test_delete_f = test_end_cb,
28 		.test_main_f = entrypoint_peer,
29 	},
30 	BSTEST_END_MARKER,
31 };
32 
install(struct bst_test_list * tests)33 static struct bst_test_list *install(struct bst_test_list *tests)
34 {
35 	return bst_add_tests(tests, entrypoints);
36 };
37 
38 bst_test_install_t test_installers[] = {install, NULL};
39 
main(void)40 int main(void)
41 {
42 	bst_main();
43 
44 	return 0;
45 }
46