1. 02 1月, 2012 1 次提交
  2. 17 10月, 2011 9 次提交
  3. 16 7月, 2011 3 次提交
    • S
      ktest: Add prompt to use OUTPUT_MIN_CONFIG · 35ce5952
      Steven Rostedt 提交于
      If the defined OUTPUT_MIN_CONFIG in the make_min_config test exists,
      then give a prompt to ask the user if they want to use that config
      instead, as it is very often the case, especially when the test has been
      interrupted. The OUTPUT_MIN_CONFIG is usually the config that one wants
      to use to continue the test where they left off.
      
      But if START_MIN_CONFIG is defined (thus the MIN_CONFIG is not the
      default), then do not prompt, as it will be annoying if the user has
      this as one of many tests, and the test pauses waiting for input, while
      the user is sleeping.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      35ce5952
    • S
      ktest: Use Kconfig dependencies to shorten time to make min_config · b9066f6c
      Steven Rostedt 提交于
      To save time, the test does not just grab any option and test
      it. The Kconfig files are examined to determine the dependencies
      of the configs. If a config is chosen that depends on another
      config, that config will be checked first. By checking the
      parents first, we can eliminate whole groups of configs that
      may have been enabled.
      
      For example, if a USB device config is chosen and depends on
      CONFIG_USB, the CONFIG_USB will be tested before the device.
      If CONFIG_USB is found not to be needed, it, as well as all
      configs that depend on it, will be disabled and removed from
      the current min_config.
      
      Note, the code from streamline_config (make localmodconfig)
      was copied and used to find the dependencies in the Kconfig file.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      b9066f6c
    • S
      ktest: Add test type make_min_config · 4c4ab120
      Steven Rostedt 提交于
      After doing a make localyesconfig, your kernel configuration may
      not be the most useful minimum configuration. Having a true minimum
      config that you can use against other configs is very useful if
      someone else has a config that breaks on your code. By only forcing
      those configurations that are truly required to boot your machine
      will give you less of a chance that one of your set configurations
      will make the bug go away. This will give you a better chance to
      be able to reproduce the reported bug matching the broken config.
      
      Note, this does take some time, and may require you to run the
      test over night, or perhaps over the weekend. But it also allows
      you to interrupt it, and gives you the current minimum config
      that was found till that time.
      
      Note, this test automatically assumes a BUILD_TYPE of oldconfig
      and its test type acts like boot.
      
      TODO: add a test version that makes the config do more than just
            boot, like having network access.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      4c4ab120
  4. 15 6月, 2011 3 次提交
  5. 13 6月, 2011 3 次提交
    • S
      ktest: Add TEST_NAME option · 9064af52
      Steven Rostedt 提交于
      Searching through several tests, it gets confusing which test result
      is for which test. By adding the TEST_NAME option, the user can tell
      which test result belongs to which test.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      9064af52
    • S
      ktest: Add CONFIG_BISECT_GOOD option · 30f75da5
      Steven Rostedt 提交于
      Currently the config_bisect compares the min config with the
      CONFIG_BISECT config. There may be another config that we know
      is good that we want to ignore configs on. By passing in this
      config it will ignore the options that are set in the good config.
      
      Note: This only ignores the config, it does not (yet) handle
      options that are different between the two configs. If the good
      config has "SLAB" set and the bad config has "SLUB" it will not
      find the bug if the bug had to do with changing these two options.
      
      This is something that I intend to implement in the future.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      30f75da5
    • S
      ktest: Add detection of triple faults · f1a5b962
      Steven Rostedt 提交于
      When a triple fault happens in a test, no call trace nor panic
      is displayed. Instead, the system reboots to the good kernel.
      Since the good kernel may display a boot prompt that matches the
      success string, ktest may think that the test succeeded, when it
      did not.
      
      Detecting triple faults is tricky because it is hard to generalize
      what a reboot looks like. The best that we can come up with for now
      is to examine the Linux banner. If we detect that the Linux banner
      matches the test we want to test, then look to see if we hit another
      Linux banner with a different kernel is booted. This can be assumed
      to be a triple fault.
      
      We can't just check for two Linux banners because things like
      early printk may cause the Linux banner to be displayed twice. Checking
      for different kernel versions should be the safe bet.
      
      If this for some reason detects a false triple boot. A new ktest
      config option is also created:
      
       DETECT_TRIPLE_FAULT
      
      This can be set to 0 to disable this checking.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      f1a5b962
  6. 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
  7. 20 5月, 2011 1 次提交
    • S
      ktest: Reboot after each patchcheck run · 27d934b2
      Steven Rostedt 提交于
      The patches being checked may not leave the kernel in a state
      that the next run will allow the new kernel to be copied to the
      machine. Reboot to a known good kernel before continuing to the
      next kernel to test.
      
      Added option PATCHCHECK_SLEEP_TIME for the max time to sleep between
      patchcheck reboots.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      27d934b2
  8. 08 3月, 2011 4 次提交
  9. 19 11月, 2010 7 次提交