Skip to content
Permalink
Browse files

tests: net: socket: mgmt: Add tests for get|setsockopt()

Test AF_NET_MGMT API getsockopt() and setsockopt() functions that
they work properly when called from kernel or from userspace.

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar authored and andrewboie committed Jun 19, 2019
1 parent 7c65db4 commit 3b3844a921938ffcd1e4698d8d5279d61ec5e2b7
Showing with 365 additions and 4 deletions.
  1. +3 −1 tests/net/socket/net_mgmt/prj.conf
  2. +362 −3 tests/net/socket/net_mgmt/src/main.c
@@ -5,13 +5,15 @@ CONFIG_NET_LOG=y
# Networking config
CONFIG_NETWORKING=y
CONFIG_NET_TEST=y
CONFIG_NET_LOOPBACK=y
CONFIG_NET_IPV4=y
CONFIG_NET_IPV6=y
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_NET_MGMT=y
CONFIG_NET_MGMT=y
CONFIG_NET_MGMT_EVENT=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_NET_L2_ETHERNET_MGMT=y

# Network driver config
CONFIG_TEST_RANDOM_GENERATOR=y

0 comments on commit 3b3844a

Please sign in to comment.
You can’t perform that action at this time.