forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for the DHCPv6 library. The tests verify that: * message format is valid for the outgoing messages * incoming messages are only processed in respective states * processing through standard DHCPv6 transactions is correct (Solicit/Confirm/Renew/Rebind) Signed-off-by: Robert Lubos <[email protected]>
- Loading branch information
1 parent
6fb19bc
commit d9f4c1c
Showing
4 changed files
with
1,307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
cmake_minimum_required(VERSION 3.20.0) | ||
|
||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) | ||
project(dhcpv6) | ||
|
||
target_include_directories(app PRIVATE ${ZEPHYR_BASE}/subsys/net/ip) | ||
target_sources(app PRIVATE src/main.c) | ||
|
||
zephyr_compile_definitions(CONFIG_NET_DHCPV6) | ||
zephyr_compile_definitions(CONFIG_NET_DHCPV6_LOG_LEVEL=LOG_LEVEL_ERR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
CONFIG_NET_TEST=y | ||
CONFIG_ZTEST=y | ||
CONFIG_ZTEST_NEW_API=y | ||
|
||
CONFIG_ENTROPY_GENERATOR=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_L2_DUMMY=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_IPV6_ND=n | ||
CONFIG_NET_IPV6_DAD=n | ||
CONFIG_NET_IPV6_MLD=n | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TC_TX_COUNT=1 | ||
|
||
CONFIG_NET_MGMT=y | ||
CONFIG_NET_MGMT_EVENT=y | ||
CONFIG_NET_MGMT_EVENT_INFO=y |
Oops, something went wrong.