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 3C00845459; Wed, 19 Jun 2024 12:24:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B3AD840289; Wed, 19 Jun 2024 12:24:52 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mails.dpdk.org (Postfix) with ESMTP id D9D594026C for ; Wed, 19 Jun 2024 12:24:50 +0200 (CEST) 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 DEFFFDA7; Wed, 19 Jun 2024 03:25:14 -0700 (PDT) Received: from localhost.localdomain (FVFG51LCQ05N.cambridge.arm.com [10.1.35.45]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 770A03F64C; Wed, 19 Jun 2024 03:24:49 -0700 (PDT) From: Luca Vizzarro To: dev@dpdk.org Cc: Jeremy Spewock , =?UTF-8?q?Juraj=20Linke=C5=A1?= , Luca Vizzarro Subject: [PATCH v6 0/8] dts: add testpmd params Date: Wed, 19 Jun 2024 11:23:21 +0100 Message-Id: <20240619102329.250263-1-luca.vizzarro@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326190422.577028-1-luca.vizzarro@arm.com> References: <20240326190422.577028-1-luca.vizzarro@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 v6: - refactored InteractiveShell and DPDKShell constructors - fixed docstrings - removed some more module-wide imports v5: - fixed typo v4: - fixed up docstrings - made refactoring changes - removed params value only - rebased on top of show port info/stats v3: - refactored InteractiveShell methods - fixed docstrings v2: - refactored the params module - strengthened typing of the params module - moved the params module into its own package - refactored EalParams and TestPmdParams and moved under the params package - reworked interactions between nodes and shells - refactored imports leading to circular dependencies --- Depends-on: series-32112 ("dts: testpmd show port info/stats") --- Luca Vizzarro (8): dts: add params manipulation module dts: use Params for interactive shells dts: refactor EalParams dts: remove module-wide imports dts: add testpmd shell params dts: use testpmd params for scatter test suite dts: rework interactive shells dts: use Unpack for type checking and hinting dts/framework/params/__init__.py | 359 +++++++++++ dts/framework/params/eal.py | 50 ++ dts/framework/params/testpmd.py | 607 ++++++++++++++++++ dts/framework/params/types.py | 133 ++++ dts/framework/remote_session/__init__.py | 7 +- dts/framework/remote_session/dpdk_shell.py | 105 +++ .../remote_session/interactive_shell.py | 79 ++- dts/framework/remote_session/python_shell.py | 4 +- dts/framework/remote_session/testpmd_shell.py | 99 +-- dts/framework/runner.py | 4 +- dts/framework/test_suite.py | 9 +- dts/framework/testbed_model/__init__.py | 9 - dts/framework/testbed_model/node.py | 36 +- dts/framework/testbed_model/os_session.py | 38 +- dts/framework/testbed_model/sut_node.py | 194 +----- dts/framework/testbed_model/tg_node.py | 9 +- .../traffic_generator/__init__.py | 7 +- .../testbed_model/traffic_generator/scapy.py | 6 +- dts/tests/TestSuite_hello_world.py | 9 +- dts/tests/TestSuite_pmd_buffer_scatter.py | 21 +- dts/tests/TestSuite_smoke_tests.py | 4 +- 21 files changed, 1388 insertions(+), 401 deletions(-) create mode 100644 dts/framework/params/__init__.py create mode 100644 dts/framework/params/eal.py create mode 100644 dts/framework/params/testpmd.py create mode 100644 dts/framework/params/types.py create mode 100644 dts/framework/remote_session/dpdk_shell.py -- 2.34.1