From nobody Mon Feb 9 11:44:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.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 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1644423868940447.8164175007264; Wed, 9 Feb 2022 08:24:28 -0800 (PST) Received: from localhost ([::1]:45142 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHplb-0003PQ-43 for importer@patchew.org; Wed, 09 Feb 2022 11:24:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57534) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHoRH-0001m8-Q9 for qemu-devel@nongnu.org; Wed, 09 Feb 2022 09:59:24 -0500 Received: from [2a00:1450:4864:20::529] (port=41807 helo=mail-ed1-x529.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHoRE-0004Ci-KZ for qemu-devel@nongnu.org; Wed, 09 Feb 2022 09:59:22 -0500 Received: by mail-ed1-x529.google.com with SMTP id cz16so5602229edb.8 for ; Wed, 09 Feb 2022 06:59:17 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id i17sm6785147edv.40.2022.02.09.06.59.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 06:59:14 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id DF1BC1FFB7; Wed, 9 Feb 2022 14:59:13 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=95VUsInsBJkWydqDjFNp5aZcy3HHZ58V16PSGr8vvHk=; b=n9cCdKCa+Y1dHVx9nOsop7rdkw2tFHm82VIRtxm6C6BelZCdRsgd+YjpnppmQNlW/7 kX0+QeJPOynk8bazEZjTsu0td6/5m0f4IEqGLB0o+pZ3PurPjM45jVyen+p+lxagKX7X 6aJU07fAOtf8yTtMWSnUYfuf4VTVR4JFxzsQdVOgQvGa87OzLDJ3QjjmkUkDw8RNNMfY 79UjZXfF9NPFrkeuRyKTwaHGV35sn8wsJlJDJU84vCK8RhOMZRTwVHbR45P76kMvEeGR EOTdmbpI3MWNguKFvkSx4/OmV+YwEIwqHywQ+Q94BYRPo1SxHGoE96qcxwfjUlFCDdHY Fcow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=95VUsInsBJkWydqDjFNp5aZcy3HHZ58V16PSGr8vvHk=; b=uBRd/w5V36wwFJMqfAU3h6ZEK8Wy542Tu8PG3Etywa/luaArQ8xWnwbwcWiR15dCDg P1nyFJus0W+7aqCuZr52opSoVkt8QIV47xw6D5KQVZkjrMRuljYdu4VcGgZwiqRkLNpw EDeEyD8M1Vr4rwUEjJwwKnoaheWYZETVOa+mYL0RUNGRdyOso4S6yPggT6REWuptQrSx jBagmtM3bGr2lEp/5NYWWcngd++6w1NCG2RdocgBq0KHaJ06XlKBW3iXtYVY3eHnVSa7 lDEjy0ZTsU+4btSlD+KGNVHxvOcomPcDuE8fG0SXuM1TzKn3IGMmX3g39h5fqdJLk4T0 d/Vw== X-Gm-Message-State: AOAM531nCZMec4F8sgdEAWO/mKiW/dht3B0A40a3l6GRRcrqJ0XOab+r 6ovdE8uG1Zc/pOsRYA+NBhOQlA== X-Google-Smtp-Source: ABdhPJziiCnnI330ahkIuKKMxBLMfI81H/bQNQvp7TeTnFu18p9hIL5c7TPCt1JHAEmOjRQ32LE6bw== X-Received: by 2002:a05:6402:4305:: with SMTP id m5mr2933292edc.342.1644418755659; Wed, 09 Feb 2022 06:59:15 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [RFC PATCH] tests/docker: restore TESTS/IMAGES filtering Date: Wed, 9 Feb 2022 14:59:08 +0000 Message-Id: <20220209145908.3432580-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::529 (failed) Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x529.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Beraldo Leal , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Alex Williamson , =?UTF-8?q?Alex=20Benn=C3=A9e?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1644423870225100001 This was broken in the re-factor: e86c9a64f4 ("tests/docker/Makefile.include: add a generic docker-run targ= et") Rather than unwind the changes just apply the filters to the total set of available images and tests. That way we don't inadvertently build images only not to use them later. Signed-off-by: Alex Benn=C3=A9e Reported-by: Alex Williamson --- tests/docker/Makefile.include | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index f1a0c5db7a..0ec59b2193 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -8,13 +8,19 @@ COMMA :=3D , =20 HOST_ARCH =3D $(if $(ARCH),$(ARCH),$(shell uname -m)) =20 +# These variables can be set by the user to limit the set of docker +# images and tests to a more restricted subset +TESTS ?=3D % +IMAGES ?=3D % + DOCKER_SUFFIX :=3D .docker DOCKER_FILES_DIR :=3D $(SRC_PATH)/tests/docker/dockerfiles # we don't run tests on intermediate images (used as base by another image) DOCKER_PARTIAL_IMAGES :=3D debian10 debian11 # we don't directly build virtual images (they are used to build other ima= ges) DOCKER_VIRTUAL_IMAGES :=3D debian-bootstrap debian-toolchain empty -DOCKER_IMAGES :=3D $(sort $(filter-out $(DOCKER_VIRTUAL_IMAGES), $(notdir = $(basename $(wildcard $(DOCKER_FILES_DIR)/*.docker))))) +__IMAGES :=3D $(sort $(filter-out $(DOCKER_VIRTUAL_IMAGES), $(notdir $(bas= ename $(wildcard $(DOCKER_FILES_DIR)/*.docker))))) +DOCKER_IMAGES :=3D $(if $(IMAGES), $(filter $(IMAGES), $(__IMAGES)), $(__I= MAGES)) DOCKER_TARGETS :=3D $(patsubst %,docker-image-%,$(DOCKER_IMAGES)) # Use a global constant ccache directory to speed up repetitive builds DOCKER_CCACHE_DIR :=3D $$HOME/.cache/qemu-docker-ccache @@ -23,16 +29,14 @@ DOCKER_DEFAULT_REGISTRY :=3D registry.gitlab.com/qemu-p= roject/qemu endif DOCKER_REGISTRY :=3D $(if $(REGISTRY),$(REGISTRY),$(DOCKER_DEFAULT_REGISTR= Y)) =20 -DOCKER_TESTS :=3D $(notdir $(shell \ - find $(SRC_PATH)/tests/docker/ -name 'test-*' -type f)) +__TESTS :=3D $(notdir $(shell \ + find $(SRC_PATH)/tests/docker/ -name 'test-*' -type f)) +DOCKER_TESTS :=3D $(if $(TESTS), $(filter $(TESTS), $(__TESTS)), $(__TESTS= )) =20 ENGINE :=3D auto =20 DOCKER_SCRIPT=3D$(SRC_PATH)/tests/docker/docker.py --engine $(ENGINE) =20 -TESTS ?=3D % -IMAGES ?=3D % - CUR_TIME :=3D $(shell date +%Y-%m-%d-%H.%M.%S.$$$$) DOCKER_SRC_COPY :=3D $(BUILD_DIR)/docker-src.$(CUR_TIME) =20 @@ -274,8 +278,8 @@ endif @echo ' TARGET_LIST=3Da,b,c Override target list in builds.' @echo ' EXTRA_CONFIGURE_OPTS=3D"..."' @echo ' Extra configure options.' - @echo ' IMAGES=3D"a b c ..": Filters which images to build or run.' - @echo ' TESTS=3D"x y z .." Filters which tests to run (for docker-= test).' + @echo ' IMAGES=3D"a b c ..": Restrict available images to subset.' + @echo ' TESTS=3D"x y z .." Restrict available tests to subset.' @echo ' J=3D[0..9]* Overrides the -jN parameter for make co= mmands' @echo ' (default is 1)' @echo ' DEBUG=3D1 Stop and drop to shell in the created c= ontainer' --=20 2.30.2