DPDK patches and discussions
 help / color / mirror / Atom feed
From: Patrick Robb <probb@iol.unh.edu>
To: Paul Szczepanek <paul.szczepanek@arm.com>
Cc: dev@dpdk.org, Luca Vizzarro <luca.vizzarro@arm.com>
Subject: Re: [PATCH v1 1/2] dts: add packet handling and test utilities to API
Date: Thu, 16 Oct 2025 07:36:38 -0400	[thread overview]
Message-ID: <CAJvnSUAQGDn3RJ5=JKmeU6maJiB1Fu4-9CgpTB89OZg_cdorbA@mail.gmail.com> (raw)
In-Reply-To: <20250923103758.3192015-2-paul.szczepanek@arm.com>

[-- Attachment #1: Type: text/plain, Size: 1889 bytes --]

On Tue, Sep 23, 2025 at 6:38 AM Paul Szczepanek <paul.szczepanek@arm.com>
wrote:

> Split TestSuite methods between test run methods
> and packet related methods.
>
> Depends-on: series-36111 ("Split DTS framework and public API")
>
> Signed-off-by: Paul Szczepanek <paul.szczepanek@arm.com>
> Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
> ---
>  doc/api/dts/api.packet.rst  |   8 +
>  doc/api/dts/api.rst         |   4 +-
>  doc/api/dts/api.test.rst    |   8 +
>  doc/guides/tools/dts.rst    |   2 +-
>  dts/api/packet.py           | 311 ++++++++++++++++++++++++++++++++++++
>  dts/api/test.py             | 126 +++++++++++++++
>  dts/framework/test_suite.py | 305 +----------------------------------
>  7 files changed, 460 insertions(+), 304 deletions(-)
>  create mode 100644 doc/api/dts/api.packet.rst
>  create mode 100644 doc/api/dts/api.test.rst
>  create mode 100644 dts/api/packet.py
>  create mode 100644 dts/api/test.py
>
> diff --git a/dts/api/packet.py b/dts/api/packet.py
> new file mode 100644
> index 0000000000..bf6f3e1be8
> --- /dev/null
> +++ b/dts/api/packet.py
> @@ -0,0 +1,311 @@
> +# SPDX-License-Identifier: BSD-3-Clause
> +# Copyright(c) 2025 Arm Limited
> +
> +"""Features common to all test suites.
> +
> +The module defines the :class:`TestSuite` class which doesn't contain any
> test cases, and as such
> +must be extended by subclasses which add test cases. The
> :class:`TestSuite` contains the basics
> +needed by subclasses:
> +
> +    * Testbed (SUT, TG) configuration,
> +    * Packet sending and verification,
> +    * Test case verification.
> +"""
>

It looks like this docstring is taken directly from the old test_suite.py
and needs to be updated.


> +
>
>
Looks good overall, I think we can merge when the docstring update is sent.

Reviewed-by: Patrick Robb <probb@iol.unh.edu>

[-- Attachment #2: Type: text/html, Size: 2770 bytes --]

  reply	other threads:[~2025-10-16 11:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-23 10:37 [PATCH v1 0/2] Move TestSuite methods to API modules Paul Szczepanek
2025-09-23 10:37 ` [PATCH v1 1/2] dts: add packet handling and test utilities to API Paul Szczepanek
2025-10-16 11:36   ` Patrick Robb [this message]
2025-09-23 10:37 ` [PATCH v1 2/2] dts: adjust all tests to use the new API calls Paul Szczepanek
2025-10-16 11:44   ` Patrick Robb
2025-10-21 13:52 ` [PATCH v1 0/2] Move TestSuite methods to API modules Luca Vizzarro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJvnSUAQGDn3RJ5=JKmeU6maJiB1Fu4-9CgpTB89OZg_cdorbA@mail.gmail.com' \
    --to=probb@iol.unh.edu \
    --cc=dev@dpdk.org \
    --cc=luca.vizzarro@arm.com \
    --cc=paul.szczepanek@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).