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 "babblekit/testcase.h" 10 #include "bs_tracing.h" 11 #include "bstests.h" 12 13 extern void entrypoint_peer(void); 14 extern enum bst_result_t bst_result; 15 test_end_cb(void)16static void test_end_cb(void) 17 { 18 if (bst_result != Passed) { 19 TEST_PRINT("Test has not passed."); 20 } 21 } 22 23 static const struct bst_test_instance entrypoints[] = { 24 { 25 .test_id = "peer", 26 .test_delete_f = test_end_cb, 27 .test_main_f = entrypoint_peer, 28 }, 29 BSTEST_END_MARKER, 30 }; 31 install(struct bst_test_list * tests)32static struct bst_test_list *install(struct bst_test_list *tests) 33 { 34 return bst_add_tests(tests, entrypoints); 35 }; 36 37 bst_test_install_t test_installers[] = {install, NULL}; 38 main(void)39int main(void) 40 { 41 bst_main(); 42 43 return 0; 44 } 45