With CONFIG_POSIX_API enabled, these samples now build under Zephyr with exactly the same source as e.g. Linux (or in general, other POSIX systems). However, building without CONFIG_POSIX_API (i.e. with CONFIG_NET_SOCKETS_POSIX_NAMES aux option) is retained for now. Add testcase definitions to build these samples with CONFIG_POSIX_API in CI. Fixes: #17353 Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
19 lines
501 B
YAML
19 lines
501 B
YAML
sample:
|
|
description: BSD Sockets API TCP echo server sample
|
|
using non-blocking sockets
|
|
name: socket_echo_async
|
|
common:
|
|
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
|
harness: net
|
|
platform_whitelist: qemu_x86
|
|
tags: net socket
|
|
tests:
|
|
sample.net.sockets.echo_async:
|
|
extra_configs:
|
|
- CONFIG_NET_SOCKETS_POSIX_NAMES=y
|
|
sample.net.sockets.echo_async.posix:
|
|
filter: and not CONFIG_NET_SOCKETS_OFFLOAD
|
|
extra_configs:
|
|
- CONFIG_NET_SOCKETS_POSIX_NAMES=n
|
|
- CONFIG_POSIX_API=y
|