aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-12-11 21:16:59 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-12-11 21:16:59 -0500
commitc75d22d9c675c4c77d87ff36de6e5023f14724ef (patch)
tree24b0ac7a13f09f406d22691454e7223b86f5d96c /tools/testing/ktest/sample.conf
parentktest: Add special variable ${KERNEL_VERSION} (diff)
downloadlinux-dev-c75d22d9c675c4c77d87ff36de6e5023f14724ef.tar.xz
linux-dev-c75d22d9c675c4c77d87ff36de6e5023f14724ef.zip
ktest: Add eval '=~' command to modify variables in config file
With the added variable ${KERNEL_VERSION}, it is useful to be able to use parts of it for other variables. For example, if you want to create a warnings file for each major kernel version to test sub versions against you can create your warnings file with like this: WARNINGS_FILE = warnings-file-${KERNEL_VERSION} But this may add 3.8.12 or something, and we want all 3.8.* to use the same file, and 3.10.* to use another file, and so on. With the eval command we can, by adding: WARNINGS_FILE =~ s/(-file-\d+\.\d+).*/$1/ Which will chop off the extra characters after the 3.8. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
0 files changed, 0 insertions, 0 deletions