From nobody Fri Dec 19 06:30:54 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1669111130; cv=none; d=zohomail.com; s=zohoarc; b=LSwVJrPCDXAfqGto55HvMmKrY4wdDSg/psQoRv/XZkr62YB7+hxU9M1qFPHCk4M7de4KptPk5jU21yA3otIpMZR8ycYQPO7uD9ZbH6F4WUj1aZDvZ8eaf1RWbbQ95/EehrYZ0DuSm/9bgyBU+PkplVjOIxjFWXgIXoeT9eK8Siw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669111130; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=lGgDp1psLL587PH6+QgHDpl09CcymDIyo6aN/D9+3S8=; b=nsEhCWbAbJmtRsDi4tGw6W3fWmXxZzHKyig59sxrLpcZKKG5oVgPlQbVs6c9bhiH61/5cu9rVZfM7dwEpG38JXxg7UdeQ0+jKX9r+abSPpLHB6xDrKfY3UDM0HRyTbnuYEIwe/mAZEUeqfSM8eWDt/kEtOo4sV1Dam46W3h6Nm0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1669111130908738.3664374139875; Tue, 22 Nov 2022 01:58:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxQ0t-0002W8-8k; Tue, 22 Nov 2022 04:56:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxQ0n-0002I5-5Y for qemu-devel@nongnu.org; Tue, 22 Nov 2022 04:56:17 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxQ0k-0003eJ-4s for qemu-devel@nongnu.org; Tue, 22 Nov 2022 04:56:16 -0500 Received: by mail-wr1-x432.google.com with SMTP id z4so9282208wrr.3 for ; Tue, 22 Nov 2022 01:56:13 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id y10-20020a5d620a000000b002366dd0e030sm13604043wru.68.2022.11.22.01.56.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 01:56:11 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id CFC111FFBB; Tue, 22 Nov 2022 09:56:10 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=lGgDp1psLL587PH6+QgHDpl09CcymDIyo6aN/D9+3S8=; b=dmh7C+xyEKzTZj7NErSxo7obQw/CRuM86tg2tnJ9sGrPQe+HQIlxxLIUv1Y2tlSgKQ XJ3PZWsmRNkPozkV9tI4xJrq9PO1N3YFZ00us32SnhLR51Jz0RcJ5NrVaiyevR3VMnjl 8jENZI6CZGaMQRDR3+Nu1k06WqJmEw7Zzk2Sv7e9zqHdYpP6HlzJ5J+BGFAnl5zpzUvU i7weE4SsSqYrn1rZBrPuEImMGjYYq3wNtiIprWoEOxouOMrJmZr1SPqKyC9v+8C3lx9J R9X7pB7R4fD0pjLebI9O+YXSp7SPBMMWAwepMkUMl8FoTwZc27SkKONCtCXjpp9aTapD QTow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=lGgDp1psLL587PH6+QgHDpl09CcymDIyo6aN/D9+3S8=; b=rhSZjfW4oXkgXALx3PJHwAjLv/lEmpXmfkLxVnMmZPuXvs5+lHbUFFTwIHzI999bME WPStyenClYQfIlvOhcQF8lKjSz+w2JL6746sQzr+/Yy+7c/Gh2n9QnxNqNFTj8KxTfa4 pKihaHFuzzYPVxI7WeCpwSzsxI5v5sE/mf0EyULMg7sIZdfW/XB5SDOcBSNiNYDJcNZl G7BPs1M6oAO51a35P37RzXvLxuyaU6i7zu3rTmLHdnrpvmJXqnJK0CxDXf5Q7OzgQzHO O4/cs0XgzHMUf1dKzlTqI9CVZEY+81u4Stxprlh8hducvZ1W+UpkT8rUYVUyd7lIJvmz 7H7Q== X-Gm-Message-State: ANoB5pmbTlVzjAfrYHfiVXBgd+HC6F/wjvCms4hosmdWL8wqZdfRWFGz xc4kv9Eqx8N5hQFxOX/RWXgUTdzfYLJVpw== X-Google-Smtp-Source: AA0mqf6IPF/ilYUSmV0RQY6XirIdc40qHpgVRfDbkAHYaoLMSBnrcvVpRLtEx/RG6sTYqE3vBdNJxw== X-Received: by 2002:a5d:5144:0:b0:22d:d4c:e99c with SMTP id u4-20020a5d5144000000b0022d0d4ce99cmr13363285wrt.582.1669110972658; Tue, 22 Nov 2022 01:56:12 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: stefanha@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL v2 03/11] tests/docker: allow user to override check target Date: Tue, 22 Nov 2022 09:56:02 +0000 Message-Id: <20221122095610.3343175-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221122095610.3343175-1-alex.bennee@linaro.org> References: <20221122095610.3343175-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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::432; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x432.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1669111131513100003 This is useful when trying to bisect a particular failing test behind a docker run. For example: make docker-test-clang@fedora \ TARGET_LIST=3Darm-softmmu \ TEST_COMMAND=3D"meson test qtest-arm/qos-test" \ J=3D9 V=3D1 Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20221117172532.538149-4-alex.bennee@linaro.org> diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index c87f14477a..fc7a3b7e71 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.include @@ -184,6 +184,7 @@ docker: @echo ' TARGET_LIST=3Da,b,c Override target list in builds.' @echo ' EXTRA_CONFIGURE_OPTS=3D"..."' @echo ' Extra configure options.' + @echo ' TEST_COMMAND=3D"..." Override the default `make check` targe= t.' @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' @@ -230,6 +231,7 @@ docker-run: docker-qemu-src $(if $(NETWORK),$(if $(subst $(NETWORK),,1),--net=3D$(NETWORK)),--net= =3Dnone) \ -e TARGET_LIST=3D$(subst $(SPACE),$(COMMA),$(TARGET_LIST)) \ -e EXTRA_CONFIGURE_OPTS=3D"$(EXTRA_CONFIGURE_OPTS)" \ + -e TEST_COMMAND=3D"$(TEST_COMMAND)" \ -e V=3D$V -e J=3D$J -e DEBUG=3D$(DEBUG) \ -e SHOW_ENV=3D$(SHOW_ENV) \ $(if $(NOUSER),, \ diff --git a/tests/docker/common.rc b/tests/docker/common.rc index e6f8cee0d6..9a33df2832 100755 --- a/tests/docker/common.rc +++ b/tests/docker/common.rc @@ -63,12 +63,12 @@ check_qemu() { # default to make check unless the caller specifies if [ $# =3D 0 ]; then - INVOCATION=3D"check" + INVOCATION=3D"${TEST_COMMAND:-make $MAKEFLAGS check}" else - INVOCATION=3D"$@" + INVOCATION=3D"make $MAKEFLAGS $@" fi =20 - make $MAKEFLAGS $INVOCATION + $INVOCATION } =20 test_fail() --=20 2.34.1