1. 02 6月, 2011 3 次提交
  2. 21 5月, 2011 2 次提交
    • S
      ktest: Allow options to be used by other options · 2a62512b
      Steven Rostedt 提交于
      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: NSteven Rostedt <rostedt@goodmis.org>
      2a62512b
    • S
      ktest: Create variables for the ktest config files · 77d942ce
      Steven Rostedt 提交于
      I found that I constantly reuse information for each test case.
      It would be nice to just define a variable to reuse.
      
      For example I may have:
      
      TEST_START
      [...]
      TEST = ssh root@mybox /path/to/my/script
      
      TEST_START
      [...]
      TEST = ssh root@mybox /path/to/my/script
      
      [etc]
      
      The issue is, I may wont to change that script or one of the other
      fields. Then I need to update each line individually.
      
      With the addition of config variables (variables only used during parsing
      the config) we can simplify the config files. These variables can
      also be defined multiple times and each time the new value will
      overwrite the old value.
      
      The convention to use a config variable over a ktest option is to use :=
      instead of =.
      
      Now we could do:
      
      USER := root
      TARGET := mybox
      TEST_SCRIPT := /path/to/my/script
      TEST_CASE := ${USER}@${TARGET} ${TEST_SCRIPT}
      
      TEST_START
      [...]
      TEST = ${TEST_CASE}
      
      TEST_START
      [...]
      TEST = ${TEST_CASE}
      
      [etc]
      
      Now we just need to update the variables at the top.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      77d942ce
  3. 20 5月, 2011 4 次提交
  4. 08 3月, 2011 9 次提交
  5. 09 2月, 2011 1 次提交
  6. 19 11月, 2010 21 次提交