1. 23 12月, 2011 1 次提交
  2. 24 11月, 2011 1 次提交
    • S
      ktest: When creating new config, allow the use of ${THIS_DIR} · 0e7a22de
      Steven Rostedt 提交于
      Typing in a full path when you know that the path exists within
      the directory your are running is tedious and unnecessary.
      
      Allow the user to use ${PWD} if they want a dynamic path name
      which will be the path that ktest.pl is executed from
      or use ${THIS_DIR} which is a variable assigned `pwd` and
      the the variable will exist within the config, allowing the user
      to change it and affect all other paths using this variable as well
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      0e7a22de
  3. 22 11月, 2011 1 次提交
    • S
      ktest: Add default for ssh-user, build-target and target-image · 600bbf0a
      Steven Rostedt 提交于
      When a user runs ktest without an argument, or the argument given
      is not a config file that exists, ktest will ask the user a few
      questions to create a simple ktest config file.
      
      A few of the questions should have a default value set, that if anything
      it will make it easier for the user to know what is suppose to
      be in that value.
      
      These new values are:
      
        SSH_USER, BUILD_TARGET and TARGET_IMAGE
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      600bbf0a
  4. 19 11月, 2011 3 次提交
  5. 28 10月, 2011 1 次提交
  6. 22 10月, 2011 2 次提交
  7. 20 10月, 2011 1 次提交
    • S
      ktest: Do not opencode reboot in grub setting · c54367f9
      Steven Rostedt 提交于
      When setting the next kernel to boot to with grub, do not opencode
      the reboot operation.  The normal reboot operation can be modified by
      config options (namely POWERCYCLE_AFTER_REBOOT). This needs to affect
      all reboots. Remove the opencoded reboot to make sure that any changes
      to the reboot code also affect all reboots.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      c54367f9
  8. 17 10月, 2011 17 次提交
  9. 16 7月, 2011 5 次提交
    • S
      ktest: Fix bug when ADD_CONFIG is set but MIN_CONFIG is not · 250bae8b
      Steven Rostedt 提交于
      The MIN_CONFIG is a single config that is considered to have all the
      configs that are required to boot the box.
      
      ADD_CONFIG is a list of configs that we add that may contain configs
      known to be broken (set off) or just configs that we want every box to
      have and this can include shared configs.
      
      If a config has no MIN_CONFIG defined, but has multiple files defined
      for the ADD_CONFIG, the test will die, because the MIN_CONFIG will
      default to ADD_CONFIG. The problem is the code to open MIN_CONFIG
      expects a string of one file, not multiple, and the open will fail.
      
      Since the real minconfig that is used is a concatination of MIN_CONFIG
      and ADD_CONFIG files, we change the code to open that instead of
      whatever MIN_CONFIG defaults to.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      250bae8b
    • S
      ktest: Keep fonud configs separate from default configs · 43d1b651
      Steven Rostedt 提交于
      The IGNORE_CONFIG file holds the configs that we don't want to change
      (with their proper settings). But on start up, the make noconfig is
      executed, and the configs that are on are also put into the ignore
      config category. But these are configs that were forced on by the
      kconfig scripts and not something that we found must be enabled to boot
      our machine. By keeping the configs that are forced on by default,
      separate from the configs we found that are required to boot the box, we
      can get a much more interesting IGNORE_CONFIG. In fact, the
      IGNORE_CONFIG can usually end up being the must have configs to boot,
      and only have 6 or 7 configs set.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      43d1b651
    • 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
  10. 15 6月, 2011 6 次提交
  11. 13 6月, 2011 2 次提交