[RFC PATCH] app/test: allow passing a parameter string to autotests
Stephen Hemminger
stephen at networkplumber.org
Tue Oct 8 02:29:55 CEST 2024
On Fri, 15 Dec 2023 13:06:56 +0000
Bruce Richardson <bruce.richardson at intel.com> wrote:
> Sometimes it can be nice to have autotests which can take a parameter,
> or can be tweaked in some ways, e.g. adjust the number of iterations, or
> the burst size used in the test. Currently there is no way to do so -
> all test parameters are hardcoded, which makes sense for a generic
> regression test to be run quickly, but is a bit lacking for those
> looking to use unit tests for investigations.
>
> To that end, we can all the commandline to accept an additional string
> parameter after each autotest name, and make that available via global
> variable. Any test which wishes to make use of this can do so, to allow
> overriding test defaults.
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
LGTM
Maybe add an example to an existing test
Acked-by: Stephen Hemminger <stephen at networkplumber.org>
More information about the dev
mailing list