Move net ipv6 tests to use new ztest API 1. Add rm_neighbor/rm_max_neighbors 2. Add a setup function including: add ifaddr_record to record ifaddr for teardown use add neighbor operations 3. Add a teardown fuction including: remove neighbor operations remove maddr set ifaddr_record to not used 4. add k_yield after rs message, so that ra_message can start receive 5. add leave_group, to restore to the original state after join_group 6. restore the mac address to original in test_change_ll_addr() 7. remove the addr/maddr to restore original in necessary test cases Signed-off-by: Hu Zhenyu <zhenyu.hu@intel.com>
32 lines
766 B
Plaintext
32 lines
766 B
Plaintext
CONFIG_ZTEST=y
|
|
CONFIG_ZTEST_NEW_API=y
|
|
#CONFIG_ZTEST_STACK_SIZE=4096
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TEST=y
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_UDP=y
|
|
CONFIG_NET_TCP=n
|
|
CONFIG_NET_IPV4=n
|
|
CONFIG_NET_L2_ETHERNET=y
|
|
CONFIG_ETH_DRIVER=n
|
|
CONFIG_NET_L2_DUMMY=y
|
|
CONFIG_NET_IF_MAX_IPV6_COUNT=2
|
|
CONFIG_NET_DEFAULT_IF_ETHERNET=y
|
|
CONFIG_NET_LOG=y
|
|
CONFIG_ENTROPY_GENERATOR=y
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
CONFIG_NET_IPV6_ND=y
|
|
CONFIG_NET_IPV6_DAD=y
|
|
CONFIG_NET_PKT_TX_COUNT=20
|
|
CONFIG_NET_PKT_RX_COUNT=20
|
|
CONFIG_NET_BUF_RX_COUNT=20
|
|
CONFIG_NET_BUF_TX_COUNT=20
|
|
CONFIG_NET_6LO=y
|
|
CONFIG_NET_6LO_CONTEXT=y
|
|
CONFIG_NET_MAX_ROUTERS=2
|
|
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=9
|
|
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=7
|
|
CONFIG_NET_IF_IPV6_PREFIX_COUNT=3
|
|
CONFIG_NET_UDP_CHECKSUM=n
|