1. 30 Jul, 2012 2 commits
  2. 21 Jul, 2012 1 commit
  3. 19 Jul, 2012 7 commits
    • Steven Rostedt's avatar
      ktest: Add check for bug or panic during reboot · 8a80c727
      Steven Rostedt authored
      Usually the target is booted into a dependable kernel when a test
      starts. The test will install the test kernel and reboot the box. But
      there may be a time that the kernel is running an unreliable kernel and
      the reboot may crash.
      
      Have ktest detect crashes on a reboot and force a power-cycle instead.
      
      This can usually happen if a test kernel was installed to run manual
      tests, but the user forgot to reboot to the known good kernel.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      8a80c727
    • Steven Rostedt's avatar
      ktest: Add MAX_MONITOR_WAIT option · 407b95b7
      Steven Rostedt authored
      If the console is constantly outputting content, this can cause ktest
      to get stuck waiting on the monitor to settle down.
      
      The option MAX_MONITOR_WAIT is the maximum time (in seconds) for ktest
      to wait for the console to flush.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      407b95b7
    • Steven Rostedt's avatar
      ktest: Fix config bisect with how make oldnoconfig works · cf79fab6
      Steven Rostedt authored
      With a name like 'oldnoconfig' one may think that the config generated
      would disable all configs that were not defined (selecting "no" for all
      options). But this is not the case. It selects the default. If a config
      has a 'default y', then it is added if not specified.
      
      This broke the config bisect, because options not specified by a config
      will just use the default, where it expected to turn off. This caused an
      option to be enabled that disabled an option that would break the build.
      The end result was that we never found the bad config at the end of the
      test.
      
      Instead of using 'make oldnoconfig', ktest now builds the options it
      expects enabled and disabled. When it turns off an option, it will no
      longer remove it, but actually set it to:
      
       # CONFIG_FOO is not set.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      cf79fab6
    • Steven Rostedt's avatar
      ktest: Add CONFIG_BISECT_CHECK option · b0918612
      Steven Rostedt authored
      The config-bisect can take a bad config and bisect it down to find out
      what config actually breaks the config. But as all tests will apply a
      minconfig (defined by a user) to apply before booting, it is possible
      that the minconfig could actually make the bad config work (minconfigs
      can disable configs). The end result is that the config bisect test will
      not find a config that breaks. This can be rather frustrating to the
      user.
      
      The CONFIG_BISECT_CHECK option, when set to 1, will make sure that the
      bad config (with the minconfig applied) still fails before trying to
      bisect.
      
      And yes, I did get burned by this.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      b0918612
    • Steven Rostedt's avatar
      ktest: Add PRE_INSTALL option · e5c2ec11
      Steven Rostedt authored
      Add the PRE_INSTALL option that will allow a user to specify a shell
      command to be executed before the install operation executes.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      e5c2ec11
    • Steven Rostedt's avatar
      ktest: Add PRE/POST_KTEST and TEST options · 921ed4c7
      Steven Rostedt authored
      In order to let the user add commands before and after ktest runs, the
      PRE_KTEST and POST_KTEST options are defined. They hold shell commands
      that will execute befor ktest runs its first test, as well as when it
      completed its last test.
      
      The PRE_TEST and POST_TEST will be run befor and after (respectively)
      for a given test. They can either be global (done for all tests) or
      defined by a single test.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      921ed4c7
    • Steven Rostedt's avatar
      ktest: Remove commented exit · 958d8435
      Steven Rostedt authored
      A debug 'exit' was left in ktest.pl. Remove it.
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      958d8435
  4. 14 Jul, 2012 11 commits
  5. 13 Jul, 2012 19 commits