[PATCH v2 1/1] dts: add EAL confidence check suite
Patrick Robb
probb at iol.unh.edu
Mon Dec 23 19:50:23 CET 2024
Hey Dean,
I would retain the hello world name if I were you, in place of "eal" as you
use here. I don't want to give off the impression that we are testing EAL
in some intentional way, as opposed to providing a reference testsuite.
On Mon, Dec 23, 2024 at 12:56 PM Dean Marx <dmarx at iol.unh.edu> wrote:
> Add a test suite to replace hello_world which simply
> starts and stops a testpmd session. The user can use
> this as a confidence check to verify their configuration.
>
> Signed-off-by: Dean Marx <dmarx at iol.unh.edu>
> Reviewed-by: Paul Szczepanek <paul.szczepanek at arm.com>
> ---
> dts/tests/TestSuite_eal.py | 27 +++++++++++++++++++++++++++
> 1 file changed, 27 insertions(+)
> create mode 100644 dts/tests/TestSuite_eal.py
>
> diff --git a/dts/tests/TestSuite_eal.py b/dts/tests/TestSuite_eal.py
> new file mode 100644
> index 0000000000..7cf96e61cd
> --- /dev/null
> +++ b/dts/tests/TestSuite_eal.py
> @@ -0,0 +1,27 @@
> +# SPDX-License-Identifier: BSD-3-Clause
> +# Copyright(c) 2024 University of New Hampshire
> +
> +"""DPDK EAL confidence check suite.
> +
> +Starts and stops a testpmd session to verify EAL parameters
> +are properly configured.
> +"""
> +
> +from framework.remote_session.testpmd_shell import TestPmdShell
> +from framework.test_suite import TestSuite, func_test
> +
> +
> +class TestEal(TestSuite):
> + """EAL test suite. One test case, which starts and stops a testpmd
> session."""
> +
> + @func_test
> + def test_verify_eal(self) -> None:
> + """EAL confidence test.
> +
> + Steps:
> + Start testpmd session and check status.
> + Verify:
> + The testpmd session is alive after starting.
> + """
> + with TestPmdShell(node=self.sut_node) as testpmd:
> + testpmd.start()
> --
> 2.44.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20241223/617adad3/attachment.htm>
More information about the dev
mailing list