From nobody Wed Oct 23 01:33:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1727284334736973.876760045334; Wed, 25 Sep 2024 10:12:14 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 37F0613A5; Wed, 25 Sep 2024 13:12:11 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 6ABBB1316; Wed, 25 Sep 2024 13:11:47 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 6ACCB1322; Wed, 25 Sep 2024 13:11:44 -0400 (EDT) Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 6EA161319 for ; Wed, 25 Sep 2024 13:11:43 -0400 (EDT) Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-42cb60aff1eso235695e9.0 for ; Wed, 25 Sep 2024 10:11:43 -0700 (PDT) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37cbc2a8a8fsm4443984f8f.15.2024.09.25.10.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Sep 2024 10:11:41 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 9DF1C5F94F; Wed, 25 Sep 2024 18:11:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED, SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727284302; x=1727889102; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LfxPswSzpy5PJY7wIfJ4Znven71oBCSA3p2JUb9OqOg=; b=xcVi9LdwHIR7sNgmomlPe4tZ7iZMK/PJjBaz1dgy2dapvVLeomt8nyAcych8n4Kp7i YoLkY1U69WXhIYihCqwhUKISQOByjIAktOPmSX+hJyu8QCQY4W7lg2M2A8eAklFjeL8r Zuqzn6YtoBMm7ivxS3gwgNRvKmpxYodsV7k3BRcygECm1R9FqqcuhpE90JjwORHpFirz IbpBdS/+tYDodsSns/MptysdsdJRGfV525d/aYIE+GaUO9kQGiiAcUvaAeGt/12HJkL3 +9uuX3hiX5pILv6Lu+qQW9Z8vAd8WcR0fGAjWdiW03Muzh0LS53rV3W0omAZEareLmvr zMiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727284302; x=1727889102; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LfxPswSzpy5PJY7wIfJ4Znven71oBCSA3p2JUb9OqOg=; b=i61CQd5iJycIRIXOyCJDuFIw7MXd4j5iMf9NQVMPhK75D1R7t5FFjMJmv3IyNgYfvA YQGwjv7O0R6i6xscx9KgZd1n5ftayQ19PSgj18Fq6bLETK6iGAYyaM/V3HAdpFUjq7dR WdWaDue2yitPzmv/ppRO8hxwHeZ/WSDokwYwnusO+F4fkb5DDEFB+h6+J71KADugVGvT 1sO3oaFulNuXFNP3iwXRuI99ktwL9EQMoP+Jdg/wRsYpjnxINnBUxNnuJj7lDKHHN195 rLcz2ua8qBLTyVgPnXbiecSTTZ+SddaV+Mmgp9uswYXGfF7HcsX+++UaA5w47t7cWY/N pk6g== X-Forwarded-Encrypted: i=1; AJvYcCUtMj1oo+5HuN3cIO7HtqZNeC+U9iXK0zx0o8gq0vMwcrpOHqa+we2l3cFv2+WOSsmt8KXXsw==@lists.libvirt.org X-Gm-Message-State: AOJu0YzjLaABTY44UderpWvJEi6P9dhZzaXDdcJC9qTamYLhwm+Z4my5 Q8PY9WI7wANTbxTva0ZjulGrZmmYKgyE7V/wSBwBhL9JHgw7DPap/1gW7XwT9rc= X-Google-Smtp-Source: AGHT+IHV5SzRp2SHf6HbaLc2hBK/7UiOfq+WQLl5ES6CuTB3Awe3uqUh07rnjOOYTKUVx2htHojcQw== X-Received: by 2002:a05:600c:3b18:b0:426:5fe1:ec7a with SMTP id 5b1f17b1804b1-42e96242e81mr22084905e9.31.1727284301933; Wed, 25 Sep 2024 10:11:41 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH 03/10] tests/docker: add NOFETCH env variable for testing Date: Wed, 25 Sep 2024 18:11:33 +0100 Message-Id: <20240925171140.1307033-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20240925171140.1307033-1-alex.bennee@linaro.org> References: <20240925171140.1307033-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: WDITK7NKU3OE4VJTCJU7NTIHUTXF3RQ2 X-Message-ID-Hash: WDITK7NKU3OE4VJTCJU7NTIHUTXF3RQ2 X-MailFrom: alex.bennee@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 CC: Zhao Liu , "Edgar E. Iglesias" , Marcel Apfelbaum , Alexandre Iooss , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Mahmoud Mandour , Richard Henderson , Paolo Bonzini , Eduardo Habkost , Pierrick Bouvier , Wainer dos Santos Moschetta , kvm@vger.kernel.org, Jiaxun Yang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-arm@nongnu.org, Peter Maydell , devel@lists.libvirt.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Marcelo Tosatti , Laurent Vivier , Yanan Wang , Thomas Huth , Beraldo Leal X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1727284335672116600 Content-Type: text/plain; charset="utf-8" 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=C3=A9e --- 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=3D1 =20 debian-toolchain-run =3D \ - $(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=3D$$BACKEND Enable virtual network interface with = $$BACKEND.' @echo ' NOUSER=3D1 Define to disable adding current user t= o containers passwd.' @echo ' NOCACHE=3D1 Ignore cache when build images.' + @echo ' NOFETCH=3D1 Do not fetch from the registry.' @echo ' EXECUTABLE=3D Include executable in image.' @echo ' EXTRA_FILES=3D" [... ]"' @echo ' Include extra files in image.' --=20 2.39.5