samples: big_http_download: Add automated-CI friendly sanitycheck config

This application was initially intended to be a manual, interactive
sample, run by a user. However, it's also a useful real-world
integration test, to be run in automated CI systems. So, provide
a config suitable for such a usage: use local host machine as a
server (to not depend on availability and characteristics of an
Internet connection), and have a concrete completion criteria
(by limiting number of iterations; given that performance of TCP
is not to be not too high, limit it to just 1 for now).

Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
This commit is contained in:
Paul Sokolovsky 2020-04-06 15:51:05 +03:00 committed by Jukka Rissanen
commit 8eac618cba
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# CI-friendly config, using local host machine as
# a server and finite number of iterations.
CONFIG_SAMPLE_BIG_HTTP_DL_URL="http://192.0.2.2:8980/static/vmlinuz"
CONFIG_SAMPLE_BIG_HTTP_DL_NUM_ITER=1

View file

@ -16,3 +16,5 @@ tests:
extra_configs: extra_configs:
- CONFIG_NET_SOCKETS_POSIX_NAMES=n - CONFIG_NET_SOCKETS_POSIX_NAMES=n
- CONFIG_POSIX_API=y - CONFIG_POSIX_API=y
sample.net.sockets.big_http_download.ci:
extra_args: OVERLAY_CONFIG=overlay-ci.conf