From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 97B924608B; Wed, 15 Jan 2025 15:20:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A3B1D4065C; Wed, 15 Jan 2025 15:19:44 +0100 (CET) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id 5F5BF4042F for ; Wed, 15 Jan 2025 15:19:40 +0100 (CET) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4E2AB12FC; Wed, 15 Jan 2025 06:20:08 -0800 (PST) Received: from localhost.localdomain (JR4XG4HTQC.cambridge.arm.com [10.1.39.16]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2C2523F63F; Wed, 15 Jan 2025 06:19:39 -0800 (PST) From: Luca Vizzarro To: dev@dpdk.org Cc: Nicholas Pratte , Luca Vizzarro , Paul Szczepanek , Patrick Robb Subject: [PATCH v3 7/7] dts: run all test suites by default Date: Wed, 15 Jan 2025 14:18:09 +0000 Message-ID: <20250115141809.3898708-8-luca.vizzarro@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250115141809.3898708-1-luca.vizzarro@arm.com> References: <20240705171341.23894-2-npratte@iol.unh.edu> <20250115141809.3898708-1-luca.vizzarro@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org The configuration requires the user to explicitly set the requested test suites in the files. Sometimes we want to run all the test suites and don't want to manually specify all of them. It is therefore reasonable to change the default behaviour to automatically run all the available test suites if none are specified. Bugzilla ID: 1360 Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/framework/config/test_run.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dts/framework/config/test_run.py b/dts/framework/config/test_run.py index f08e034e25..6ea05ceeba 100644 --- a/dts/framework/config/test_run.py +++ b/dts/framework/config/test_run.py @@ -259,6 +259,20 @@ def validate_names(self) -> Self: return self +def fetch_all_test_suites() -> list[TestSuiteConfig]: + """Returns all the available test suites as configuration objects. + + This function does not include the smoke tests. + """ + from framework.test_suite import AVAILABLE_TEST_SUITES + + return [ + TestSuiteConfig(test_suite=test_suite.name) + for test_suite in AVAILABLE_TEST_SUITES + if test_suite.name != "smoke_tests" + ] + + class TestRunConfiguration(FrozenModel): """The configuration of a test run. @@ -275,7 +289,7 @@ class TestRunConfiguration(FrozenModel): #: Whether to skip smoke tests. skip_smoke_tests: bool = False #: The names of test suites and/or test cases to execute. - test_suites: list[TestSuiteConfig] = Field(min_length=1) + test_suites: list[TestSuiteConfig] = Field(min_length=1, default_factory=fetch_all_test_suites) #: The SUT node name to use in this test run. system_under_test_node: str #: The TG node name to use in this test run. -- 2.43.0