From a613e2427a30e07da1683369726b9292f7ccd9d6 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Wed, 27 Mar 2024 11:10:48 +0200 Subject: [PATCH] samples: net: Disable native_sim net USB driver in samples The native_sim USB driver gives this error currently if one enables CONFIG_POSIX_API. drivers/usb/device/usb_dc_native_posix_adapt.c:22:10: \ fatal error: sys/un.h: No such file or directory 22 | #include | ^~~~~~~~~~ compilation terminated. Disable the netusb support from networking shells for native_sim board for now so that CI can pass. Signed-off-by: Jukka Rissanen --- samples/net/sockets/dumb_http_server/sample.yaml | 8 ++++++++ samples/net/sockets/echo_server/sample.yaml | 4 ++++ samples/net/zperf/sample.yaml | 12 ++++++++++++ 3 files changed, 24 insertions(+) diff --git a/samples/net/sockets/dumb_http_server/sample.yaml b/samples/net/sockets/dumb_http_server/sample.yaml index 55a8d9a9673050..1751f81169309a 100644 --- a/samples/net/sockets/dumb_http_server/sample.yaml +++ b/samples/net/sockets/dumb_http_server/sample.yaml @@ -19,8 +19,16 @@ tests: harness: net extra_args: OVERLAY_CONFIG="overlay-netusb.conf" tags: usb + # native_sim usb driver does not work with CONFIG_POSIX_API + platform_exclude: + - native_sim + - native_sim/native/64 sample.net.sockets.dumb_http_server.netusb_zeroconf: depends_on: usb_device harness: net extra_args: OVERLAY_CONFIG="overlay-netusb.conf;overlay-zeroconf.conf" tags: usb + # native_sim usb driver does not work with CONFIG_POSIX_API + platform_exclude: + - native_sim + - native_sim/native/64 diff --git a/samples/net/sockets/echo_server/sample.yaml b/samples/net/sockets/echo_server/sample.yaml index b3b990119227c5..a127175471fd29 100644 --- a/samples/net/sockets/echo_server/sample.yaml +++ b/samples/net/sockets/echo_server/sample.yaml @@ -86,6 +86,10 @@ tests: tags: - net - usb + # native_sim usb driver does not work with CONFIG_POSIX_API + platform_exclude: + - native_sim + - native_sim/native/64 sample.net.sockets.echo_server.nrf_openthread: extra_args: OVERLAY_CONFIG="overlay-ot.conf" slow: true diff --git a/samples/net/zperf/sample.yaml b/samples/net/zperf/sample.yaml index ece4f52cafbc21..5fb33f67348287 100644 --- a/samples/net/zperf/sample.yaml +++ b/samples/net/zperf/sample.yaml @@ -40,6 +40,10 @@ tests: - net - zperf depends_on: usb_device + # native_sim usb driver does not work with CONFIG_POSIX_API + platform_exclude: + - native_sim + - native_sim/native/64 sample.net.zperf.device_next_ecm: harness: net extra_args: OVERLAY_CONFIG="overlay-usbd_next_ecm.conf" @@ -58,6 +62,10 @@ tests: - net - zperf depends_on: usb_device + # native_sim usb driver does not work with CONFIG_POSIX_API + platform_exclude: + - native_sim + - native_sim/native/64 sample.net.zperf.netusb_rndis: harness: net extra_args: OVERLAY_CONFIG="overlay-netusb.conf" @@ -69,6 +77,10 @@ tests: - net - zperf depends_on: usb_device + # native_sim usb driver does not work with CONFIG_POSIX_API + platform_exclude: + - native_sim + - native_sim/native/64 sample.net.zperf.shield: harness: net platform_allow: reel_board