1. 01 5月, 2012 1 次提交
  2. 21 3月, 2012 5 次提交
    • S
      ktest: Allow a test to override REBOOT_ON_SUCCESS · 648a182c
      Steven Rostedt 提交于
      The option REBOOT_ON_SUCCESS is global, and will have the machine reboot
      the the box if all tests are successful. But a test may not want the
      machine to reboot, and perhaps have the kernel it loaded be used to
      install the next kernel. Or the last test may set up a kernel that the
      user may want to look at. In this case, the user could have the global
      option REBOOT_ON_SUCCESS be true, but if a test is defined to run at the
      end, that test can override the global option and keep the kernel it
      installed for the user to log in with.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      648a182c
    • S
      ktest: Fix SWITCH_TO_GOOD to also reboot the machine · 769df641
      Steven Rostedt 提交于
      When the option SWITCH_TO_GOOD is set, it will be called when the system
      needs to reboot to the good server. But currently, this keeps the reboot
      from happening. The SWITCH_TO_GOOD is just a way to get to a new kernel,
      it may not mean to not reboot.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      769df641
    • S
      ktest: Add SCP_TO_TARGET_INSTALL option · 02ad2617
      Steven Rostedt 提交于
      Currently the option used to scp both the modules to the target as well
      as the kernel image are the same (SCP_TO_TARGET). But some embedded
      boards may require them to be different. The modules may need to be put
      directly on the board, but the kernel image may need to go to a
      tftpserver.
      
      Add the option SCP_TO_TARGET_INSTALL that will allow the user to change
      the config so that they may have the modules and image got to different
      machines.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      02ad2617
    • S
      ktest: Add warning when bugs are ignored · 6ca996cc
      Steven Rostedt 提交于
      When IGNORE_ERRORS is set, ktest will not fail a test if a backtrace
      is detected. But this can be an issue if the user added it in the
      config but forgot to remove it. They may be left wondering why their
      test did not fail, or even worse, why their bisect gave the wrong
      commit.
      
      Add a warning in the output if IGNORE_WARNINGS is set, and ktest detects
      a kernel error.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      6ca996cc
    • S
      ktest: Add INSTALL_MOD_STRIP=1 when installing modules · 627977d8
      Steven Rostedt 提交于
      To keep the modules from bloating the target's filesystem
      strip them during the install.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      627977d8
  3. 28 2月, 2012 1 次提交
    • S
      ktest: Fix make_min_config test when build fails · bf1c95ab
      Steven Rostedt 提交于
      The make_min_config does not take into account when the build fails,
      resulting in a invalid MIN_CONFIG .config file. When the build fails,
      it is ignored and the boot test is executed, using the previous built
      kernel. The configs that should be tested are not tested and they may
      be added or removed depending on the result of the last kernel that
      succeeded to be built.
      
      If the build fails, mark the current config as a failure and the
      configs that were disabled may still be needed.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      bf1c95ab
  4. 21 2月, 2012 1 次提交
  5. 05 1月, 2012 2 次提交
    • S
      ktest: Add INGORE_ERRORS to ignore warnings in boot up · be405f95
      Steven Rostedt 提交于
      When testing a kernel that has warnings, ktest.pl will fail the test
      when it sees the warning. If you need to test the the kernel and want
      to ignore the errors that are produced, the option IGNORE_ERRORS has
      been added. When IGNORE_ERRORS is set to something other than 0, it will
      ignore call traces due to WARN_ON().
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      be405f95
    • S
      ktest: Still do reboot even for REBOOT_TYPE = script · 96f6a0df
      Steven Rostedt 提交于
      The REBOOT_TYPE may be either grub or script, if it is script
      it is expected that a REBOOT_SCRIPT is defined.
      
      With the SWITCH_TO_TEST which is the complement of SWITCH_TO_GOOD,
      which does basically the same thing as REBOOT_SCRIPT and but for
      both grub and script, the REBOOT_SCRIPT does not need to be mandatory
      anymore.
      
      Do not require the REBOOT_SCRIPT and always run the reboot code
      for both grub and script.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      96f6a0df
  6. 02 1月, 2012 1 次提交
  7. 23 12月, 2011 13 次提交
  8. 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
  9. 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
  10. 19 11月, 2011 3 次提交
  11. 28 10月, 2011 1 次提交
  12. 22 10月, 2011 2 次提交
  13. 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
  14. 17 10月, 2011 7 次提交