Skip to content

Commit

Permalink
samples: net: Disable native_sim net USB driver in samples
Browse files Browse the repository at this point in the history
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 <sys/un.h>
      |          ^~~~~~~~~~
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 <[email protected]>
  • Loading branch information
jukkar authored and dleach02 committed Mar 27, 2024
1 parent d7c9d67 commit a613e24
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions samples/net/sockets/dumb_http_server/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions samples/net/sockets/echo_server/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions samples/net/zperf/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit a613e24

Please sign in to comment.