| /* main.c - Application main entry point */ |
| |
| /* We are just testing that this program compiles ok with all possible |
| * network related Kconfig options enabled. |
| */ |
| |
| /* |
| * Copyright (c) 2017 Intel Corporation |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| |
| #include <zephyr/logging/log.h> |
| LOG_MODULE_REGISTER(net_test, LOG_LEVEL_DBG); |
| |
| #include <zephyr/ztest.h> |
| |
| #include <zephyr/net/net_if.h> |
| #include <zephyr/net/net_pkt.h> |
| #include <zephyr/net/dummy.h> |
| |
| static struct offload_context { |
| void *none; |
| } offload_context_data = { |
| .none = NULL |
| }; |
| |
| static struct dummy_api offload_if_api = { |
| .iface_api.init = NULL, |
| .send = NULL, |
| }; |
| |
| NET_DEVICE_OFFLOAD_INIT(net_offload, "net_offload", |
| NULL, NULL, |
| &offload_context_data, NULL, |
| CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, |
| &offload_if_api, 0); |
| |
| ZTEST(net_compile_all_test, test_ok) |
| { |
| zassert_true(true, "This test should never fail"); |
| } |
| |
| ZTEST_SUITE(net_compile_all_test, NULL, NULL, NULL, NULL, NULL); |