[PATCH v4 0/2] test/py: enable HTTP testing
Adriano Cordova
adrianox at gmail.com
Fri May 16 10:52:54 CEST 2025
Enable HTTP server in CI to support HTTP tests in pytest
QEMU does not emulate an HTTP server, unlike other services like DHCP or TFTP.
To enable HTTP tests during CI runs, start a simple Python HTTP server
on port 80. This allows tests that require HTTP access to run.
The HTTP server is launched on the host. For QEMU environments launched
with '-netdev,user' this means that the HTTP server runs together with DHCP
at 10.0.2.2. HTTP testing needs to be explicitly enabled with
env__efi_helloworld_net_http_test_skip = False.
We also default `WGET=y` in `ARCH_QEMU` configurations so that these HTTP
tests are included automatically when using QEMU in CI.
changes in v2:
- patch 1/3: do not add any extra parameter to conftest.py informing of
the httpserver
changes in v3:
- patch 3/3: deleted. Do not default to
env__efi_helloworld_net_http_test_skip = False. Let the test be enabled
explicitly if wanted. Now the name of the series does not make much sense.
changes in v4:
- patch 2/2: remove comment in .gitlab-ci.yml that was preventing parsing
Adriano Cordova (2):
CI testing: add http server to CI tests
cmd/Kconfig: select CMD_WGET if ARCH_QEMU
.azure-pipelines.yml | 11 +++++++++++
.gitlab-ci.yml | 11 +++++++++++
cmd/Kconfig | 2 +-
3 files changed, 23 insertions(+), 1 deletion(-)
--
2.48.1
More information about the U-Boot
mailing list