aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-12-07 21:29:44 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-12-08 23:23:05 -0500
commit88a51b4f2e65ca4378a81ff0925fad076e82e177 (patch)
tree9ddfade2a4ce5a7ac23b5c09b1e1549e1f834583 /tools/testing/ktest/sample.conf
parentkest.pl: Fix grub2 menu handling for rebooting (diff)
downloadwireguard-linux-88a51b4f2e65ca4378a81ff0925fad076e82e177.tar.xz
wireguard-linux-88a51b4f2e65ca4378a81ff0925fad076e82e177.zip
ktest.pl: Add shell commands to variables
Allow variables to execute shell commands. Note, these are processed when they are first seen while parsing the config file. This is useful if you have the same config file used for multiple hosts (as they may be in a git repository). HOSTNAME := ${shell hostname} DEFAULTS IF "${HOSTNAME}" == "frodo" Link: https://lkml.kernel.org/r/20221207212944.277ee850@gandalf.local.home Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r--tools/testing/ktest/sample.conf8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index 5e7d1d729752..2d0fe15a096d 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -259,6 +259,14 @@
# If PATH is not a config variable, then the ${PATH} in
# the MAKE_CMD option will be evaluated by the shell when
# the MAKE_CMD option is passed into shell processing.
+#
+# Shell commands can also be inserted with the ${shell <command>}
+# expression. Note, this is case sensitive, thus ${SHELL <command>}
+# will not work.
+#
+# HOSTNAME := ${shell hostname}
+# DEFAULTS IF "${HOSTNAME}" == "frodo"
+#
#### Using options in other options ####
#