From nobody Fri Apr 3 20:55:24 2026 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=1774281513; cv=none; d=zohomail.com; s=zohoarc; b=ggoUNyIeucHZvwbfUTB88AWh0h35hYlu04p81qD5ljDOPdq8/wo7kDBY4g8kl3MStClyq7uRoKTBHQzcfmjaAcjgt6C3cUwxr8Z4Jiy5eb81mNUNKpUjGIXB82OjTwwZAl3KzQKJbohm/XywJDrC9SFELDy6nAM+Rtc1fLSDHNM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1774281513; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=WDq7L8VxJbWEl+g0lwQ7GIiMPhaC6/ZfTXLocURTGgs=; b=f/pRU4C6vuEhBCN1QOMXIELO8ZWwOL/08g499wMkPycJje+AW88ffCnanrE8rJCfdyjvKX+RLeYqg2Cvv7lzRXR+tWcVfjL+sSgMGiE0t7oN0n/pQRGekHJarfcV3/klQjHFzJ9nOrJCeELWlLYgmpW4EftBrmCVRLZm8Jzxudk= 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 1774281513095761.8309708723916; Mon, 23 Mar 2026 08:58:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w4heP-0005La-51; Mon, 23 Mar 2026 11:57:09 -0400 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 1w4he2-0005Ed-QU for qemu-devel@nongnu.org; Mon, 23 Mar 2026 11:56:49 -0400 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1w4he0-0007t4-7N for qemu-devel@nongnu.org; Mon, 23 Mar 2026 11:56:46 -0400 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-b9841aecf72so335798366b.2 for ; Mon, 23 Mar 2026 08:56:40 -0700 (PDT) Received: from draig.lan ([185.124.0.237]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b983365a159sm502508766b.44.2026.03.23.08.56.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2026 08:56:38 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 00C875F7F5; Mon, 23 Mar 2026 15:56:38 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1774281399; x=1774886199; darn=nongnu.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=WDq7L8VxJbWEl+g0lwQ7GIiMPhaC6/ZfTXLocURTGgs=; b=RB82YbNuKrh4kibTdwGu7nBo3R2Czm8a519qwAVdhhxgIqglJSYEXNiqFFurRFNrXv Ff9wEivhoMHxOOLKQN4ZekBxACAi57gtMvsmiGS8/sp9f7Us0gSqBJ5Qn/0ph+dSEitZ RA6h1SkBX+x5LinjpyC9iJZw5UeRlhDZHLxsiVFwFszJ9/fq2o6kSM++V2r0GmMpxE5v b0kvE280kNnAbVGrgCz5NT+CFIwQQsoqVgImCuockH/XCekcjeYPoerUiR5Z6P41yDG2 vEmWmNvgyMPw81kBfScMYPzJXUH9lTvG9xvaXQdQ7CmJb6OHUsLZwkPlvHYQ2xyEPnss Et1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774281399; x=1774886199; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WDq7L8VxJbWEl+g0lwQ7GIiMPhaC6/ZfTXLocURTGgs=; b=JnJsGJ8gQKr8yjD0RWuyJ6iBkSz9JtaCDxNn92iaA4HRxwQ8w3/y2Dh6+CN0Dt6V2n bPyQXP4i7YNvXr7K1VLV5waT7eT0IrjNCS0P6HLTXdxm7gYMKXElAW8PpGJefeNnHGKG CRgu332gokshqHvI94K5N9S/yW6k9DeKdFW7K0Ns5ff2egVj27cwMDl1Z1HVJDzEOUxt +lyUWkGBjaws44nBWMYMiKw3X/DDsbogzXikW7iOAf32FYWuNGX7AvQ3VnNlPDVcK/0p kg/0FhHYonj29X2/km6MBTf+jg1TIgKLU1A7ALJbixr5NqNG2Oc5oUy0xwcNEgVEQoAk qn/w== X-Gm-Message-State: AOJu0YyrIx8mAkO0DrWJ2qsMDxC4JH61SpFTmxKrFYXhN/1BacqGw81s weXXOaJU7/jnK5tW8cHV4FKzpu7/ee8X2WVvX+GsQaYk56yOkiwD44F4cGOCJpC902o= X-Gm-Gg: ATEYQzwWbiZoAHv7K1dy5irbo6DiwTLPYaf8NJXFVDQY7GqCS5sDmv4gYG8iz7PIYPT OBsFYVT8HbX/ygXLaoxIbb1J/58AW6oEqWRUL3w0zWRKW/iz2/hwMwEMUOJ1TeWPtUFWhmlrTHx IttWgPQCw6sr3qH5EwmZaiM8EgXJP6ohI3suUEtlOtnm1Ys8AwMluy+cC8vtT1hFuWrt50Wr+dT ICDRcyfkjIV6GSYqTZ1wdFhPYmlxi3U4sc+uiblfbayq/ZvttbSiekKr1TxI3/LtidTwlpumage aIQiFN/aHq+C7oiG/8ZTANVc1gCe+VJTmi3uizDitoO73KWwV8WNf+tI6uk9G14NsYrh8ZaYdCm o3TuInfYhIteyTt3laSO1nMPUGPF62rJOjjvhOX+mKNcgtA9xACODVaMgiZpf44OKGTWDz9tK16 7udslOqAKE73Fsu6GKAFi7aDo= X-Received: by 2002:a17:906:6a22:b0:b98:4b50:ac3c with SMTP id a640c23a62f3a-b984b50ad49mr644273166b.27.1774281399386; Mon, 23 Mar 2026 08:56:39 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 1/8] tests/tcg: allow filtering of TCG tests Date: Mon, 23 Mar 2026 15:56:30 +0000 Message-ID: <20260323155637.145015-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260323155637.145015-1-alex.bennee@linaro.org> References: <20260323155637.145015-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::631; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x631.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: qemu development 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: 1774281514613154100 We have a lot of TCG tests now which can be fiddly if we just want to check one particular test type across the targets. Introduce TCG_TEST_FILTER to allow this: make check-tcg TCG_TEST_FILTER=3Dgdb to run all the gdb tests across the suites. Reviewed-by: Pierrick Bouvier Message-ID: <20260320155107.2143191-2-alex.bennee@linaro.org> Signed-off-by: Alex Benn=C3=A9e diff --git a/tests/Makefile.include b/tests/Makefile.include index 59b9a4b9220..f257288194d 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -16,9 +16,11 @@ check-help: @echo " $(MAKE) check-tracetool Run tracetool generator tes= ts" @echo " $(MAKE) check-block Run block tests" ifneq ($(filter $(all-check-targets), check-softfloat),) - @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-softfloat Run FPU emulation tests" - @echo " $(MAKE) run-tcg-tests-TARGET-softmmu Run TCG tests for a given t= arget" + @echo " $(MAKE) check-tcg Run TCG tests" + @echo " $(MAKE) run-tcg-tests-TARGET Run TCG tests for a given t= arget" + @echo + @echo "The variable TCG_TEST_FILTER will select the subset of matching te= sts." endif @echo @echo " $(MAKE) check-report.junit.xml Generates an aggregated XML= test report" @@ -64,7 +66,7 @@ $(TCG_TESTS_TARGETS:%=3Dbuild-tcg-tests-%): build-tcg-tes= ts-%: $(BUILD_DIR)/tests/ .PHONY: $(TCG_TESTS_TARGETS:%=3Drun-tcg-tests-%) $(TCG_TESTS_TARGETS:%=3Drun-tcg-tests-%): run-tcg-tests-%: build-tcg-tests= -% $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) SPEED=3D$(SPEED) ru= n, \ + $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) SPEED=3D$(SPEED) TC= G_TEST_FILTER=3D$(TCG_TEST_FILTER) run, \ "RUN", "$* guest-tests") =20 .PHONY: $(TCG_TESTS_TARGETS:%=3Dclean-tcg-tests-%) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index af72903f898..1b83824ff4e 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -254,8 +254,15 @@ endif gdb-%: % gdb --args $(QEMU) $(QEMU_OPTS) $< =20 +# Filter tests based on TCG_TEST_FILTER if set +ifdef TCG_TEST_FILTER +FILTERED_RUN_TESTS=3D$(foreach test,$(RUN_TESTS),$(if $(findstring $(TCG_T= EST_FILTER),$(test)),$(test))) +else +FILTERED_RUN_TESTS=3D$(RUN_TESTS) +endif + .PHONY: run -run: $(RUN_TESTS) +run: $(FILTERED_RUN_TESTS) =20 clean: rm -f $(TESTS) *.o $(CLEANFILES) @@ -269,3 +276,6 @@ help: @echo "Built with $(CC)" @echo "Available tests:" @$(foreach t,$(RUN_TESTS),echo " $t";) + @echo "" + @echo "Environment variables:" + @echo " TCG_TEST_FILTER=3D Filter tests matching pattern" --=20 2.47.3