[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/10] tests/docker: add NOFETCH env variable for testing
From: |
Alex Bennée |
Subject: |
[PATCH 03/10] tests/docker: add NOFETCH env variable for testing |
Date: |
Wed, 25 Sep 2024 18:11:33 +0100 |
Testing non-auto built docker containers (i.e. custom built compilers)
is a bit fiddly as you couldn't continue a build with a previously
locally built container. While you can play games with REGISTRY its
simpler to allow a NOFETCH that will go through the cached build
process when you run the tests.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
tests/docker/Makefile.include | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 681feae744..fead7d3abe 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -92,10 +92,10 @@ endif
docker-image-alpine: NOUSER=1
debian-toolchain-run = \
- $(if $(NOCACHE), \
+ $(if $(NOCACHE)$(NOFETCH), \
$(call quiet-command, \
$(DOCKER_SCRIPT) build -t qemu/$1 -f $< \
- $(if $V,,--quiet) --no-cache \
+ $(if $V,,--quiet) $(if $(NOCACHE),--no-cache) \
--registry $(DOCKER_REGISTRY) --extra-files \
$(DOCKER_FILES_DIR)/$1.d/build-toolchain.sh, \
"BUILD", $1), \
@@ -177,6 +177,7 @@ docker:
@echo ' NETWORK=$$BACKEND Enable virtual network interface with
$$BACKEND.'
@echo ' NOUSER=1 Define to disable adding current user
to containers passwd.'
@echo ' NOCACHE=1 Ignore cache when build images.'
+ @echo ' NOFETCH=1 Do not fetch from the registry.'
@echo ' EXECUTABLE=<path> Include executable in image.'
@echo ' EXTRA_FILES="<path> [... <path>]"'
@echo ' Include extra files in image.'
--
2.39.5
- [PATCH 00/10] maintainer updates (testing, gdbstub), Alex Bennée, 2024/09/25
- [PATCH 03/10] tests/docker: add NOFETCH env variable for testing,
Alex Bennée <=
- [PATCH 04/10] MAINTAINERS: mention my testing/next tree, Alex Bennée, 2024/09/25
- [PATCH 01/10] testing: bump mips64el cross to bookworm and allow to fail, Alex Bennée, 2024/09/25
- [PATCH 08/10] MAINTAINERS: mention my gdbstub/next tree, Alex Bennée, 2024/09/25
- [PATCH 02/10] tests/docker: Fix microblaze atomics, Alex Bennée, 2024/09/25
- [PATCH 06/10] target/i386: fix build warning (gcc-12 -fsanitize=thread), Alex Bennée, 2024/09/25
- [PATCH 07/10] docs/devel: update tsan build documentation, Alex Bennée, 2024/09/25
- [PATCH 09/10] config/targets: update aarch64_be-linux-user gdb XML list, Alex Bennée, 2024/09/25
- [PATCH 10/10] tests/tcg: enable basic testing for aarch64_be-linux-user, Alex Bennée, 2024/09/25
- [PATCH 05/10] meson: hide tsan related warnings, Alex Bennée, 2024/09/25
- Re: [PATCH 00/10] maintainer updates (testing, gdbstub), Pierrick Bouvier, 2024/09/25