[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CH3PR11MB841445E7B1064EE4CE961CF6E3BAA@CH3PR11MB8414.namprd11.prod.outlook.com>
Date: Wed, 22 Nov 2023 16:53:35 +0000
From: "Michalik, Michal" <michal.michalik@...el.com>
To: Simon Horman <horms@...nel.org>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"vadim.fedorenko@...ux.dev" <vadim.fedorenko@...ux.dev>, "Kubalewski,
Arkadiusz" <arkadiusz.kubalewski@...el.com>, "jonathan.lemon@...il.com"
<jonathan.lemon@...il.com>, "pabeni@...hat.com" <pabeni@...hat.com>, poros
<poros@...hat.com>, "Olech, Milena" <milena.olech@...el.com>, mschmidt
<mschmidt@...hat.com>, "linux-clk@...r.kernel.org"
<linux-clk@...r.kernel.org>, "bvanassche@....org" <bvanassche@....org>,
"kuba@...nel.org" <kuba@...nel.org>, "davem@...emloft.net"
<davem@...emloft.net>, "edumazet@...gle.com" <edumazet@...gle.com>
Subject: RE: [PATCH RFC net-next v3 2/2] selftests/dpll: add DPLL system
integration selftests
On 20 November 2023 6:17 PM CET, Simon Horman wrote:
>
> On Fri, Nov 17, 2023 at 08:05:05PM +0100, Michal Michalik wrote:
>> The tests are written in Python3 (3.7+) and pytest testing framework.
>> Framework is basing on the ynl library available in the kernel tree
>> at: tools/net/ynl
>>
>> High level flow of DPLL subsystem integration selftests:
>> (after running run_dpll_tests.sh or 'make -C tools/testing/selftests')
>> 1) check if Python in correct version is installed,
>> 2) create temporary Python virtual environment,
>> 3) install all the required libraries,
>> 4) run the tests,
>> 5) do cleanup.
>>
>> The DPLL system integration tests are meant to be part of selftests, so
>> they can be build and run using command:
>> make -C tools/testing/selftests
>>
>> Alternatively, they can be run using single command [1]:
>> make kselftest
>>
>> If we want to run only DPLL tests, we should set the TARGETS variable:
>> make -C tools/testing/selftests TARGETS=drivers/net/netdevsim/dpll
>>
>> They can also be run standalone using starter script:
>> ./run_dpll_tests.sh
>>
>> There is a possibliy to set optional PYTEST_PARAMS environment variable
>> to set the pytest options, like tests filtering ("-k <filter>") or
>> verbose output ("-v").
>>
>> [1] https://www.kernel.org/doc/html/v5.0/dev-tools/kselftest.html
>>
>> Signed-off-by: Michal Michalik <michal.michalik@...el.com>
>
> ...
>
>> diff --git a/tools/testing/selftests/drivers/net/netdevsim/dpll/run_dpll_tests.sh b/tools/testing/selftests/drivers/net/netdevsim/dpll/run_dpll_tests.sh
>> new file mode 100755
>> index 0000000..3bed221
>> --- /dev/null
>> +++ b/tools/testing/selftests/drivers/net/netdevsim/dpll/run_dpll_tests.sh
>> @@ -0,0 +1,75 @@
>> +#!/usr/bin/bash
>> +# SPDX-License-Identifier: GPL-2.0
>> +#
>> +# Wraper script for running the DPLL system integration tests.
>
> nit: Wrapper
>
> Also elsewhere in this patch.
>
> ...
Ohh - thanks, will fix this spelling error.
Powered by blists - more mailing lists