diff options
author | Steven Rostedt <srostedt@redhat.com> | 2011-10-17 11:36:44 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2011-10-17 11:58:18 -0400 |
commit | 8d735212e441af855afd28ccc402fcaf12999f8d (patch) | |
tree | 8a9c7213cb8684b25ad07299fe383f2030eb3fe9 /tools/testing/ktest/sample.conf | |
parent | a9f84424be8d12e8a84b9eac112cd1152587d437 (diff) |
ktest: Add processing of complex conditionals
The IF statements for DEFAULTS and TEST_START sections now handle
complex statements (&&,||)
Example:
TEST_START IF (DEFINED ALL_TESTS || ${MYTEST} == boottest) && ${MACHINE} == gandalf
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r-- | tools/testing/ktest/sample.conf | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf index 7b49f07b6423..dbedfa196727 100644 --- a/tools/testing/ktest/sample.conf +++ b/tools/testing/ktest/sample.conf | |||
@@ -154,6 +154,16 @@ | |||
154 | # MAKE_CMD := make ARCH=x86 | 154 | # MAKE_CMD := make ARCH=x86 |
155 | # | 155 | # |
156 | # | 156 | # |
157 | # And/or ops (&&,||) may also be used to make complex conditionals. | ||
158 | # | ||
159 | # TEST_START IF (DEFINED ALL_TESTS || ${MYTEST} == boottest) && ${MACHINE} == gandalf | ||
160 | # | ||
161 | # Notice the use of paranthesis. Without any paranthesis the above would be | ||
162 | # processed the same as: | ||
163 | # | ||
164 | # TEST_START IF DEFINED ALL_TESTS || (${MYTEST} == boottest && ${MACHINE} == gandalf) | ||
165 | # | ||
166 | # | ||
157 | # | 167 | # |
158 | # INCLUDE file | 168 | # INCLUDE file |
159 | # | 169 | # |