57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
# General config
|
|
CONFIG_REQUIRES_FULL_LIBC=y
|
|
|
|
# Networking config
|
|
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TEST=y
|
|
CONFIG_NET_DRIVERS=y
|
|
CONFIG_NET_LOOPBACK=y
|
|
CONFIG_NET_IPV4=y
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_UDP=y
|
|
CONFIG_NET_TCP=y
|
|
CONFIG_NET_SOCKETS=y
|
|
CONFIG_NET_SOCKETS_POSIX_NAMES=y
|
|
CONFIG_NET_L2_DUMMY=y
|
|
CONFIG_NET_IPV6_DAD=n
|
|
CONFIG_NET_IPV6_MLD=n
|
|
CONFIG_NET_IPV6_ND=n
|
|
CONFIG_NET_ARP=n
|
|
|
|
CONFIG_NET_PKT_RX_COUNT=16
|
|
CONFIG_NET_PKT_TX_COUNT=16
|
|
CONFIG_NET_BUF_RX_COUNT=64
|
|
CONFIG_NET_BUF_TX_COUNT=64
|
|
|
|
CONFIG_NET_CONTEXT_REUSEADDR=y
|
|
CONFIG_NET_CONTEXT_REUSEPORT=y
|
|
|
|
CONFIG_NET_HOSTNAME_ENABLE=y
|
|
CONFIG_NET_HOSTNAME="ztest_hostname"
|
|
|
|
CONFIG_POSIX_MAX_FDS=8
|
|
CONFIG_NET_MAX_CONN=10
|
|
CONFIG_NET_MAX_CONTEXTS=10
|
|
|
|
# Network driver config
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
|
|
# Reduce the retry count, so the close always finishes within a second
|
|
CONFIG_NET_TCP_RETRY_COUNT=3
|
|
CONFIG_NET_TCP_INIT_RETRANSMISSION_TIMEOUT=120
|
|
CONFIG_NET_TCP_TIME_WAIT_DELAY=200
|
|
|
|
CONFIG_MAIN_STACK_SIZE=2048
|
|
CONFIG_ZTEST=y
|
|
CONFIG_ZTEST_STACK_SIZE=4096
|
|
|
|
# User mode requirements
|
|
CONFIG_TEST_USERSPACE=y
|
|
CONFIG_HEAP_MEM_POOL_SIZE=8192
|
|
|
|
# If you want to debug the tests, you can get logging using these statements
|
|
# CONFIG_LOG=y
|
|
# CONFIG_LOG_MODE_DEFERRED=y
|
|
# CONFIG_NET_LOG=y
|
|
# CONFIG_NET_TCP_LOG_LEVEL_DBG=y
|