Skip to content

Commit

Permalink
tests: net: socket: Add tests for tracing
Browse files Browse the repository at this point in the history
Make sure we at least build test the network socket tracing
support. The tracing tests do not enable networking so do the
socket tracing tests here.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
  • Loading branch information
jukkar authored and aescolar committed Jun 26, 2024
1 parent e3151de commit 4fefde2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/net/socket/tcp/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ tests:
extra_configs:
- CONFIG_NET_TC_THREAD_PREEMPTIVE=y
- CONFIG_NET_TCP_RANDOMIZED_RTO=n
net.socket.tcp.tracing:
platform_allow:
- native_sim
- native_sim/native/64
extra_configs:
- CONFIG_TRACING=y
- CONFIG_TRACING_CTF=y
- CONFIG_TRACING_BACKEND_POSIX=y
- CONFIG_TRACING_PACKET_MAX_SIZE=256
- CONFIG_TRACING_SYNC=y
10 changes: 10 additions & 0 deletions tests/net/socket/udp/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ tests:
- CONFIG_NET_STATISTICS_USER_API=y
- CONFIG_NET_MGMT_EVENT=y
- CONFIG_NET_MGMT=y
net.socket.udp.tracing:
platform_allow:
- native_sim
- native_sim/native/64
extra_configs:
- CONFIG_TRACING=y
- CONFIG_TRACING_CTF=y
- CONFIG_TRACING_BACKEND_POSIX=y
- CONFIG_TRACING_PACKET_MAX_SIZE=256
- CONFIG_TRACING_SYNC=y

0 comments on commit 4fefde2

Please sign in to comment.