aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/ktest/sample.conf
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-05-20 15:48:59 -0400
committerSteven Rostedt <rostedt@goodmis.org>2011-05-20 15:48:59 -0400
commit2a62512bceb44ad45f78aa7ca0e9cfaee9eae46f (patch)
tree53790abb9948f7ad3f1269f74bd59b553130e67b /tools/testing/ktest/sample.conf
parent77d942ceacbad02d8498ac72ed8d634634057aec (diff)
ktest: Allow options to be used by other options
There are cases where one ktest option may be used within another ktest option. Allow them to be reused just like config variables but there are evaluated at time of test not config processing time. Thus having something like: MAKE_CMD = make ARCH=${ARCH} TEST_START ARCH = powerpc TEST_START ARCH = arm Will have the arch defined for each test iteration. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'tools/testing/ktest/sample.conf')
-rw-r--r--tools/testing/ktest/sample.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/testing/ktest/sample.conf b/tools/testing/ktest/sample.conf
index 761079edde65..48cbcc80602a 100644
--- a/tools/testing/ktest/sample.conf
+++ b/tools/testing/ktest/sample.conf
@@ -133,6 +133,36 @@
133# the MAKE_CMD option will be evaluated by the shell when 133# the MAKE_CMD option will be evaluated by the shell when
134# the MAKE_CMD option is passed into shell processing. 134# the MAKE_CMD option is passed into shell processing.
135 135
136#### Using options in other options ####
137#
138# Options that are defined in the config file may also be used
139# by other options. All options are evaulated at time of
140# use (except that config variables are evaluated at config
141# processing time).
142#
143# If an ktest option is used within another option, instead of
144# typing it again in that option you can simply use the option
145# just like you can config variables.
146#
147# MACHINE = mybox
148#
149# TEST = ssh root@${MACHINE} /path/to/test
150#
151# The option will be used per test case. Thus:
152#
153# TEST_TYPE = test
154# TEST = ssh root@{MACHINE}
155#
156# TEST_START
157# MACHINE = box1
158#
159# TEST_START
160# MACHINE = box2
161#
162# For both test cases, MACHINE will be evaluated at the time
163# of the test case. The first test will run ssh root@box1
164# and the second will run ssh root@box2.
165
136#### Mandatory Default Options #### 166#### Mandatory Default Options ####
137 167
138# These options must be in the default section, although most 168# These options must be in the default section, although most