From 0c4e669cd7f5633c70580972ec7e10771843d0bc Mon Sep 17 00:00:00 2001 From: Robert Lubos Date: Wed, 16 Nov 2022 16:44:15 +0100 Subject: [PATCH] tests: net: Enable CONFIG_NET_BUF_VARIABLE_DATA_SIZE in some tests CONFIG_NET_BUF_VARIABLE_DATA_SIZE option had not test coverage at all, making in vulnerable for regressions. There is no dedicated test suite to verify this option, but at least we can enable it in a few test suites to make sure the configuration is functional. Signed-off-by: Robert Lubos --- tests/net/6lo/testcase.yaml | 4 ++++ tests/net/ipv6/testcase.yaml | 11 +++++++++-- tests/net/tcp/testcase.yaml | 4 ++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/tests/net/6lo/testcase.yaml b/tests/net/6lo/testcase.yaml index 552f31c38e6..e1310707049 100644 --- a/tests/net/6lo/testcase.yaml +++ b/tests/net/6lo/testcase.yaml @@ -9,3 +9,7 @@ tests: net.6lo.preempt: extra_configs: - CONFIG_NET_TC_THREAD_PREEMPTIVE=y + net.6lo.variable_buf_size: + extra_configs: + - CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y + - CONFIG_NET_BUF_DATA_POOL_SIZE=4096 diff --git a/tests/net/ipv6/testcase.yaml b/tests/net/ipv6/testcase.yaml index e92430af229..804ec02fb8e 100644 --- a/tests/net/ipv6/testcase.yaml +++ b/tests/net/ipv6/testcase.yaml @@ -1,4 +1,11 @@ +common: + tags: net ipv6 + depends_on: netif tests: net.ipv6: - tags: net ipv6 - depends_on: netif + extra_configs: + - CONFIG_NET_BUF_FIXED_DATA_SIZE=y + net.ipv6.variable_buf_size: + extra_configs: + - CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y + - CONFIG_NET_BUF_DATA_POOL_SIZE=4096 diff --git a/tests/net/tcp/testcase.yaml b/tests/net/tcp/testcase.yaml index c2df1ca45fd..7d5ccbb8fb7 100644 --- a/tests/net/tcp/testcase.yaml +++ b/tests/net/tcp/testcase.yaml @@ -8,3 +8,7 @@ tests: net.tcp.no_recv_queue: extra_configs: - CONFIG_NET_TCP_RECV_QUEUE_TIMEOUT=0 + net.tcp.variable_buf_size: + extra_configs: + - CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y + - CONFIG_NET_BUF_DATA_POOL_SIZE=4096