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
489 B
YAML
19 lines
489 B
YAML
sample:
|
|
description: BSD Sockets API dumb HTTP server example
|
|
name: socket_dumb_http_server
|
|
common:
|
|
filter: TOOLCHAIN_HAS_NEWLIB == 1
|
|
harness: net
|
|
min_ram: 32
|
|
min_flash: 96
|
|
tags: net socket
|
|
tests:
|
|
sample.net.sockets.dumb_http_server:
|
|
extra_configs:
|
|
- CONFIG_NET_SOCKETS_POSIX_NAMES=y
|
|
sample.net.sockets.dumb_http_server.posix:
|
|
filter: and not CONFIG_NET_SOCKETS_OFFLOAD
|
|
extra_configs:
|
|
- CONFIG_NET_SOCKETS_POSIX_NAMES=n
|
|
- CONFIG_POSIX_API=y
|