nuttx-apps/testing/nettest/Kconfig
wenquan1 11124141cb testing/nettest: add SO_TIMESTAMPING cmocka test
Add cmocka-based test program for SO_TIMESTAMPING socket option
under testing/nettest/timestamp/. Covers all five test scenarios
from the SO_TIMESTAMPING PR (apache/nuttx#20161):

1. SO_TIMESTAMPING setsockopt/getsockopt
2. SO_TIMESTAMP/SO_TIMESTAMPNS backward compatibility
3. TX timestamping + MSG_ERRQUEUE delivery
4. RX timestamp via SO_TIMESTAMP
5. TX timestamping with poll(POLLPRI) notification

Enable with CONFIG_TESTING_NET_TIMESTAMP=y (requires
CONFIG_NET_TIMESTAMP, CONFIG_NET_PKT, CONFIG_TESTING_CMOCKA).

Tested on sim:dynconns — all 5 tests pass.

Signed-off-by: wenquan1 <wenquan1@xiaomi.com>
2026-09-21 16:26:06 +08:00

52 lines
1,016 B
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config TESTING_NET_TEST
tristate "vela cmocka net test"
default n
depends on TESTING_CMOCKA
depends on NET
---help---
Enable the cmocka net test
if TESTING_NET_TEST
config TESTING_NET_TEST_PRIORITY
int "Task priority"
default 100
config TESTING_NET_TEST_STACKSIZE
int "Stack size"
default DEFAULT_TASK_STACKSIZE
config TESTING_NET_TCP
bool "Enable cmocka net tcp test"
depends on NET_TCP && NET_TCPBACKLOG
depends on NET_IPv4 || NET_IPv6
default y
if TESTING_NET_TCP
config TESTING_NET_TCP_PORT
int "TCP port of test server"
default 5471
endif
config TESTING_NET_LOCAL
bool "Enable cmocka net local test"
depends on NET_LOCAL && NET_LOCAL_SCM
default y
config TESTING_NET_OTHERS
bool "Enable cmocka net other test"
default y
config TESTING_NET_TIMESTAMP
bool "Enable cmocka net timestamp test"
depends on NET_TIMESTAMP && NET_PKT
default n
endif