From nobody Tue Feb 10 20:48:58 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 152909483390144.5897094995081; Fri, 15 Jun 2018 13:33:53 -0700 (PDT) Received: from localhost ([::1]:49241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTvPt-0004wD-6f for importer@patchew.org; Fri, 15 Jun 2018 16:33:53 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fTuyB-0000Yn-Qr for qemu-devel@nongnu.org; Fri, 15 Jun 2018 16:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fTuyA-0007iM-I1 for qemu-devel@nongnu.org; Fri, 15 Jun 2018 16:05:15 -0400 Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:36765) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fTuyA-0007hf-3k for qemu-devel@nongnu.org; Fri, 15 Jun 2018 16:05:14 -0400 Received: by mail-wr0-x22f.google.com with SMTP id f16-v6so11022476wrm.3 for ; Fri, 15 Jun 2018 13:05:13 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id y8-v6sm11066922wrq.35.2018.06.15.13.05.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 13:05:10 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id DA1F73E1058; Fri, 15 Jun 2018 20:47:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bSAB/pZYyx+rDoBfi2/5llk1/I1vzy+OOyIbDcC2TEQ=; b=OqnqopOuFJy1l0P3F3m7jjN9dy8UWDj0Wtj5wWmcxwfUjCjG+tJ4COmWUzVkBLM8r/ q/ur+b9+4IirYBgdk4rMf8R6X33oJFyk+cBXGLhkQDUOmAYm9LeYxYnl4Dn4AU/G6ePk pk+cvF6OaKkDjg7L39KMBR7gK1OQHFLpyxu3w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bSAB/pZYyx+rDoBfi2/5llk1/I1vzy+OOyIbDcC2TEQ=; b=KvYuVBGRQ/huhPhjwz1PXy8GapvTMiMcdjOWtmTeZhT8FwEE/4zrDfKbmXS1xcsM56 WKHhci136QNeErHEzdLQqBAowypLRhEyl7A9Jyl2zceeCJek0+jyMfqK4xE63lTYXqbU k19e/zT2m8zZoIwoSAUYAN4EhV29iGns0R2bPazdtwBCaQxZfZxMjvTeWmH1Bgc/7GNl mHCZqbftQ4kmy3Uqa/rdil6XrVCRMJ4F6hz3/qjxDlqXdQfWsT3KuYUvxaUwHj0w7pz9 kUmY5MltjG/u2z6GU5BiPOemqKz3LgnEPBzKor9WR/Io6SOrlCInL/z0tWO56ixKyCiq VXlw== X-Gm-Message-State: APt69E0Gs8v/bKyNge7y3I4Fao9OkEGk45qwF/9SZFZivlNolyjhpFuU bWBEPZFjVy6hPeLSoWiZCIU2Pg== X-Google-Smtp-Source: ADUXVKI+IwJchcXGM/EhpcershXNrRL36RuRlUqh2b+9FSirTLhIOud3N6hKcGWmN0i6ob0K4PJzMA== X-Received: by 2002:adf:e392:: with SMTP id e18-v6mr2884244wrm.94.1529093113004; Fri, 15 Jun 2018 13:05:13 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: cota@braap.org, famz@redhat.com, berrange@redhat.com, f4bug@amsat.org, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de, peter.maydell@linaro.org Date: Fri, 15 Jun 2018 20:47:02 +0100 Message-Id: <20180615194705.28019-52-alex.bennee@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180615194705.28019-1-alex.bennee@linaro.org> References: <20180615194705.28019-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f Subject: [Qemu-devel] [PATCH v7 51/54] tests/Makefile: call sub-makes with SKIP_DOCKER_BUILD=1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 As we now ensure all the images we are going to use are built in the top level make file lets not over complicate things by running the full script again. We do run the check script just in case someone deletes the docker image while we are running. Signed-off-by: Alex Benn=C3=A9e --- tests/Makefile.include | 8 ++++++-- tests/docker/Makefile.include | 13 ++++++++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 2dd0700a88..dad20e1b9b 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -947,10 +947,14 @@ $(foreach PROBE_TARGET,$(TARGET_LIST), \ $(eval build-tcg-tests-$(PROBE_TARGET): $(DOCKER_PREREQ)))) =20 build-tcg-tests-%: - $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V=3D"$(V)" TARGET_= DIR=3D"$*/" guest-tests,) + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V=3D"$(V)" \ + SKIP_DOCKER_BUILD=3D1 TARGET_DIR=3D"$*/" guest-tests, \ + "BUILD", "TCG tests for $*") =20 run-tcg-tests-%: build-tcg-tests-% - $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V=3D"$(V)" TARGET_= DIR=3D"$*/" run-guest-tests,) + $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V=3D"$(V)" \ + SKIP_DOCKER_BUILD=3D1 TARGET_DIR=3D"$*/" run-guest-tests, \ + "RUN", "TCG tests for $*") =20 clean-tcg-tests-%: $(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) -C $* V=3D"$(V)" TARGET_= DIR=3D"$*/" clean-guest-tests,) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 87f449264f..c0f09505bb 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -34,7 +34,15 @@ docker-qemu-src: $(DOCKER_SRC_COPY) =20 docker-image: ${DOCKER_TARGETS} =20 -# General rule for building docker images +# General rule for building docker images. If we are a sub-make +# invoked with SKIP_DOCKER_BUILD we still check the image is upto date +# though +ifdef SKIP_DOCKER_BUILD +docker-image-%: $(DOCKER_FILES_DIR)/%.docker + $(call quiet-command, \ + $(DOCKER_SCRIPT) check --quiet qemu:$* $<, \ + "CHECK", "$*") +else docker-image-%: $(DOCKER_FILES_DIR)/%.docker @if test "$@" =3D docker-image-debian-bootstrap -a -z "$(EXECUTABLE)"; th= en \ echo WARNING: EXECUTABLE is not set, debootstrap may fail. 2>&1 ; \ @@ -46,6 +54,7 @@ docker-image-%: $(DOCKER_FILES_DIR)/%.docker $(if $(EXTRA_FILES),--extra-files $(EXTRA_FILES))\ $(if $(EXECUTABLE),--include-executable=3D$(EXECUTABLE)),\ "BUILD","$*") +endif =20 # Enforce dependencies for composite images docker-image-debian: docker-image-debian9 @@ -65,7 +74,9 @@ docker-image-debian-win64-cross: docker-image-debian8-mxe # Debian SID images - we are tracking a rolling distro so we want to # force a re-build of the base image if we ever need to build one of # its children. +ifndef SKIP_DOCKER_BUILD docker-image-debian-sid: NOCACHE=3D1 +endif =20 docker-image-debian-alpha-cross: docker-image-debian-sid docker-image-debian-hppa-cross: docker-image-debian-sid --=20 2.17.1