Skip to content

ktest.pl: Updates for 6.17

Steven Rostedt lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ktest.pl: Add -D option to override variablestools/testing/ktest/ktest.pl+44 -10 replies
2/4ktest.pl: Allow command option -D to override temp variablestools/testing/ktest/ktest.pl+20 -20 replies
3/4ktest.pl: Have -D option work without a spacetools/testing/ktest/ktest.pl+9 -00 replies
4/4ktest.pl: Prevent recursion of default variable optionstools/testing/ktest/ktest.pl+4 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ktest.pl: Updates for 6.17

ktest.pl updates:

- Add a "-D" flag to allow overriding the content in the config file.

Instead of having to tweak a config file for minor changes to run a ktest.pl execution, allow for config options to be overridden by the command line:

ktest.pl -D ADD_CONFIG=/tmp/temp_config machine.conf

The above will make ADD_CONFIG default to /tmp/temp_config

To have it work for a specific test, add "[<test #>]" to the option:

ktest.pl '-DBUILD_TYPE[2]=allyesconfig' machine.conf

The above will change the BUILD_TYPE to "allyesconfig" for test 2.

This works for temp variables as well (using ":=" instead of "=")

ktest.pl -D 'ARCH:=arm' machine.conf

The first "ARCH" variable will be overwritten as "arm". Note if there are more than one "ARCH" variables, it will not override the later ones.

- Check for recursion in processing default variables

If a default variable has itself, then do not continue with it.

  ADD_CONFIG = temp_config ${ADD_CONFIG}

Expects there to be a: ADD_CONFIG := other_config

But if that temp variable "ADD_CONFIG" does not exist, it will use itself. Do not allow that.

Steven Rostedt (4):
ktest.pl: Add -D option to override variables ktest.pl: Allow command option -D to override temp variables ktest.pl: Have -D option work without a space ktest.pl: Prevent recursion of default variable options

----

 tools/testing/ktest/ktest.pl | 79 ++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 76 insertions(+), 3 deletions(-)