ktest: Let IF keyword take comparisons
authorSteven Rostedt <srostedt@redhat.com>
Sat, 1 Oct 2011 00:24:07 +0000 (20:24 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 17 Oct 2011 15:54:11 +0000 (11:54 -0400)
commitab7a3f52cef5ff1c784de7adfbda3421b10754a4
tree4ea41c74795c4b58abf838ef1f9aeb3cec86240d
parent45d73a5d8a98dbabcdf37e2da5ef5b0412244643
ktest: Let IF keyword take comparisons

Allow ==, !=, <=, >=, <, and > to be used in IF statements
to compare if a section should be processed or not.

For example:

BITS := 32

DEFAULTS IF ${BITS} == 32
MIN_CONFIG = ${CONFIG_DIR}/config-32
ELSE
MIN_CONFIG = ${CONFIG_DIR}/config-64

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
tools/testing/ktest/ktest.pl
tools/testing/ktest/sample.conf