linux-hardened/tools/testing/ktest
Steven Rostedt (Red Hat) c75d22d9c6 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>
2013-12-11 21:16:59 -05:00
..
examples ktest: Add make_warnings_file and process full warnings 2013-01-31 10:24:56 -05:00
compare-ktest-sample.pl ktest: Fix compare script to test if options are not documented 2011-12-22 22:06:59 -05:00
ktest.pl ktest: Add eval '=~' command to modify variables in config file 2013-12-11 21:16:59 -05:00
sample.conf ktest: Add documentation of CLOSE_CONSOLE_SIGNAL 2013-12-03 12:02:36 -05:00