net: tests: Unit tests for user space socket API
Change-Id: Ifd149e4f4313abde4cead135f7533f26dec6bdf7 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
c0e4781346
commit
498f9e04de
6 changed files with 1272 additions and 0 deletions
6
tests/net/context/Makefile
Normal file
6
tests/net/context/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
BOARD ?= qemu_x86
|
||||
MDEF_FILE = prj.mdef
|
||||
KERNEL_TYPE ?= nano
|
||||
CONF_FILE = prj.conf
|
||||
|
||||
include $(ZEPHYR_BASE)/Makefile.inc
|
24
tests/net/context/prj.conf
Normal file
24
tests/net/context/prj.conf
Normal file
|
@ -0,0 +1,24 @@
|
|||
CONFIG_NETWORKING=y
|
||||
CONFIG_NET_YAIP=y
|
||||
CONFIG_NET_IPV6=y
|
||||
CONFIG_NET_UDP=y
|
||||
CONFIG_NET_TCP=n
|
||||
CONFIG_NET_IPV4=y
|
||||
CONFIG_NET_MAX_CONTEXTS=10
|
||||
CONFIG_NET_CONTEXT_CHECK=y
|
||||
CONFIG_NET_CONTEXT_SYNC_RECV=y
|
||||
CONFIG_NET_L2_DUMMY=y
|
||||
CONFIG_NET_LOG=y
|
||||
CONFIG_SYS_LOG_SHOW_COLOR=y
|
||||
CONFIG_TEST_RANDOM_GENERATOR=y
|
||||
CONFIG_NET_IPV6_ND=n
|
||||
CONFIG_NET_IPV6_DAD=n
|
||||
CONFIG_NET_NBUF_TX_COUNT=10
|
||||
CONFIG_NET_NBUF_RX_COUNT=5
|
||||
CONFIG_NET_NBUF_DATA_COUNT=10
|
||||
#CONFIG_NETWORK_IP_STACK_DEBUG_CONTEXT=y
|
||||
#CONFIG_NETWORK_IP_STACK_DEBUG_CORE=y
|
||||
#CONFIG_NETWORK_IP_STACK_DEBUG_IF=y
|
||||
#CONFIG_NETWORK_IP_STACK_DEBUG_UTILS=y
|
||||
#CONFIG_NETWORK_IP_STACK_DEBUG_NET_BUF=y
|
||||
#CONFIG_NETWORK_IP_STACK_DEBUG_CONN=y
|
5
tests/net/context/prj.mdef
Normal file
5
tests/net/context/prj.mdef
Normal file
|
@ -0,0 +1,5 @@
|
|||
% Application : Buffer test
|
||||
|
||||
% TASK NAME PRIO ENTRY STACK GROUPS
|
||||
% ===================================================
|
||||
TASK MAIN 7 main 2048 [EXE]
|
3
tests/net/context/src/Makefile
Normal file
3
tests/net/context/src/Makefile
Normal file
|
@ -0,0 +1,3 @@
|
|||
obj-y = main.o
|
||||
ccflags-y += -I${ZEPHYR_BASE}/tests/include
|
||||
ccflags-y += -I${ZEPHYR_BASE}/net/yaip
|
1228
tests/net/context/src/main.c
Normal file
1228
tests/net/context/src/main.c
Normal file
File diff suppressed because it is too large
Load diff
6
tests/net/context/testcase.ini
Normal file
6
tests/net/context/testcase.ini
Normal file
|
@ -0,0 +1,6 @@
|
|||
[test]
|
||||
tags = net-context
|
||||
build_only = true
|
||||
arch_whitelist = x86
|
||||
# Doesn't work for ia32_pci
|
||||
filter = CONFIG_SOC : "ia32"
|
Loading…
Add table
Add a link
Reference in a new issue