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. For other test environments the HTTP testing may need to be explicitly disabled with env__efi_helloworld_net_http_test_skip = True. We also default `WGET=y` in `ARCH_QEMU` configurations so that these HTTP tests are included automatically when using QEMU in CI. Adriano Cordova (3): CI testing: add http server to CI tests cmd/Kconfig: select CMD_WGET if ARCH_QEMU py/tests/test_efi_loader.py: execute HTTP testing .azure-pipelines.yml | 11 +++++++++++ .gitlab-ci.yml | 11 +++++++++++ cmd/Kconfig | 2 +- test/py/tests/test_efi_loader.py | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) -- 2.48.1