From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: "John Warthog9 Hawley" <warthog9@kernel.org>, dhaval@gianis.ca
Subject: [PATCH 0/4] ktest.pl: Updates for 6.17
Date: Tue, 17 Jun 2025 11:43:03 -0400 [thread overview]
Message-ID: <20250617154303.952651744@goodmis.org> (raw)
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(-)
next reply other threads:[~2025-06-17 15:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-17 15:43 Steven Rostedt [this message]
2025-06-17 15:43 ` [PATCH 1/4] ktest.pl: Add -D option to override variables Steven Rostedt
2025-06-17 15:43 ` [PATCH 2/4] ktest.pl: Allow command option -D to override temp variables Steven Rostedt
2025-06-17 15:43 ` [PATCH 3/4] ktest.pl: Have -D option work without a space Steven Rostedt
2025-06-17 15:43 ` [PATCH 4/4] ktest.pl: Prevent recursion of default variable options Steven Rostedt
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=20250617154303.952651744@goodmis.org \
--to=rostedt@goodmis.org \
--cc=dhaval@gianis.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=warthog9@kernel.org \
/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
all inboxes | Powered by JetHome®