1. 08 3月, 2017 1 次提交
  2. 08 2月, 2017 5 次提交
  3. 04 2月, 2015 1 次提交
  4. 02 2月, 2015 4 次提交
  5. 29 1月, 2015 2 次提交
  6. 28 1月, 2015 2 次提交
    • J
      ktest: Restore tty settings after closing console · 98842782
      Josh Poimboeuf 提交于
      When ktest runs the console program as a child process, the parent and
      child share the same tty for stdin and stderr.  This is problematic when
      using a libvirt target.  The "virsh console" program makes a lot of
      changes to the tty settings, making ktest's output hard to read
      (carriage returns don't work).  After ktest exits, the terminal is
      unusable (CRs broken, stdin isn't echoed).
      
      I think the best way to fix this issue would be to create a
      pseudoterminal (pty pair) so the child process would have a dedicated
      tty, and then use pipes to connect the two ttys.  I'm not sure if that's
      overkill, but it's far beyond my current Perl abilities.
      
      This patch is a much easier way to (partially) fix this issue.  It saves
      the tty settings before opening the console and restores them after
      closing it.  There are still a few places where ktest prints mangled
      output while the console is open, but the output is much more legible
      overall, and the terminal works just fine after ktest exits.
      
      Link: http://lkml.kernel.org/r/1bb89abc0025cf1d6da657c7ba58bbeb4381a515.1422382008.git.jpoimboe@redhat.comSigned-off-by: NJosh Poimboeuf <jpoimboe@redhat.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      98842782
    • S
      ktest: Add timings for commands · b53486e0
      Steven Rostedt (Red Hat) 提交于
      I find that I usually like to see how long a make or other command takes,
      and adding a start and end time and reporting how long each command runs
      (in seconds) is helpful.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      b53486e0
  7. 24 11月, 2014 1 次提交
  8. 22 11月, 2014 4 次提交
    • S
      ktest: Add name to running title · 18656c70
      Steven Rostedt (Red Hat) 提交于
      Instead of just showing the test type of test in the start of the
      test, like this:
      
        RUNNING TEST 1 of 26 with option build defconfig
      
      Add the name (if it is defined) as well, like this:
      
        RUNNING TEST 1 of 26 (arm64 aarch64-linux) with option build defconfig
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      18656c70
    • S
      ktest: Allow tests to undefine default options · 22c37a9a
      Steven Rostedt (Red Hat) 提交于
      Tests can set options that override the default ones. But if a test
      tries to undefine a default option, it is simply ignored and the
      default option stays as is.
      
      For example, if you want to have a test that defines no MIN_CONFIG
      then the test should be able to do that with:
      
         TEST_START
         MIN_CONFIG =
      
      Which should make MIN_CONFIG not defined for that test. But the way
      the code currently works, undefined options in tests are dropped.
      This is because the NULL options are evaluated during the reading of
      the config file and since one can disable default options in the default
      section with this method, it is evaluated there (the option turns to a
      undef). But undef options in the test section mean to use the default
      option.
      
      To fix this, keep the empty string in the option during the reading
      of the config file, and then evaluate it when running the test. This
      will allow tests to null out default options.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      22c37a9a
    • S
      ktest: Fix make_min_config to handle new assign_configs call · 9972fc0b
      Steven Rostedt (Red Hat) 提交于
      Commit 6071c22e "ktest: Rewrite the config-bisect to actually work"
      fixed the config-bisect to work nicely but in doing so it broke
      make_min_config by changing the way assign_configs works.
      
      The assign_configs function now adds the config to the hash even if
      it is disabled, but changes the hash value to be that of the
      line "# CONFIG_FOO is not set". Unfortunately, the make_min_config
      test only checks to see if the config is removed. It now needs to
      check if the config is in the hash and not set to be disabled.
      
      Cc: stable@vger.kernel.org # 3.17+
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      9972fc0b
    • M
      ktest: Use make -s kernelrelease · 52d21580
      Michal Marek 提交于
      The previous tail -1 broke with commit 7ff52571 ("kbuild: fake the
      "Entering directory ..." message more simply")
      
      Link: http://lkml.kernel.org/r/20141022194408.GA20989@pobox.suse.czReported-by: NSteven Rostedt <rostedt@goodmis.org>
      Signed-off-by: NMichal Marek <mmarek@suse.cz>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      52d21580
  9. 08 10月, 2014 2 次提交
  10. 20 9月, 2014 2 次提交
  11. 24 4月, 2014 6 次提交
  12. 19 1月, 2014 1 次提交
    • S
      ktest: Add BISECT_TRIES to bisect test · 961d9cac
      Steven Rostedt (Red Hat) 提交于
      For those cases that it takes several tries to hit a bug, it would be
      useful for ktest.pl to try a test multiple times before it considers
      the test as a pass. To accomplish this, BISECT_TRIES ktest config
      option has been added. It is default to one, as most of the time a
      bisect only needs to try a test once. But the user can now up this
      to make ktest run a given test multiple times. The first failure
      that is detected will set a bisect bad. It only repeats on success.
      
      Note, as with all race bugs, there's no guarantee that if it succeeds,
      it is really a good bisect. But it helps in case the bug is somewhat
      reliable.
      
      You can set BISECT_TRIES to zero, and all tests will be considered
      good, unless you also set BISECT_MANUAL.
      Suggested-by: N"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      961d9cac
  13. 12 12月, 2013 2 次提交
    • S
      ktest: Add eval '=~' command to modify variables in config file · c75d22d9
      Steven Rostedt (Red Hat) 提交于
      With the added variable ${KERNEL_VERSION}, it is useful to be
      able to use parts of it for other variables.
      
      For example, if you want to create a warnings file for each major
      kernel version to test sub versions against you can create
      your warnings file with like this:
      
        WARNINGS_FILE = warnings-file-${KERNEL_VERSION}
      
      But this may add 3.8.12 or something, and we want all 3.8.* to
      use the same file, and 3.10.* to use another file, and so on.
      With the eval command we can, by adding:
      
        WARNINGS_FILE =~ s/(-file-\d+\.\d+).*/$1/
      
      Which will chop off the extra characters after the 3.8.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      c75d22d9
    • S
      ktest: Add special variable ${KERNEL_VERSION} · 8e80bf05
      Steven Rostedt (Red Hat) 提交于
      Add a special variable that can be used in other variables called
      ${KERNEL_VERSION}. This will embed the current kernel version into
      the variable. For example:
      
      WARNINGS_FILE = ${OUTPUT_DIR}/warnings-${KERNEL_VERSION}
      
      If the current version is v3.8 then the WARNINGS_FILE will become
      
        ${OUTPUT_DIR}/warnings-v3.8
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      8e80bf05
  14. 04 12月, 2013 1 次提交
  15. 28 5月, 2013 1 次提交
  16. 25 4月, 2013 1 次提交
  17. 08 3月, 2013 1 次提交
    • S
      ktest: Allow tests to use different GRUB_MENUs · 752d9665
      Steven Rostedt (Red Hat) 提交于
      To save connecting and searching for a given grub menu for each test,
      ktest.pl will cache the grub number it found. The problem is that
      different tests might use a different grub menu, but ktest.pl will
      ignore it.
      
      Instead, have ktest.pl check if the grub menu it used to cache the
      content is the same as when it grabbed the menu. If not, grab it again,
      otherwise just return the cached value.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      752d9665
  18. 18 2月, 2013 1 次提交
  19. 05 2月, 2013 2 次提交
    • S
      ktest: Ignore warnings during reboot · 4c0b67a2
      Steven Rostedt (Red Hat) 提交于
      The reboot just wants to get to the next kernel. But if a warning (Call
      Trace) appears, the monitor will report an error, and the reboot will
      think something went wrong and power cycle the box, even though we
      successfully made it to the next kernel.
      
      Ignore warnings during the reboot until we get to the next kernel. It
      will still timeout if we never get to the next kernel and then a power
      cycle will happen. That's what we want it to do.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      4c0b67a2
    • S
      ktest: Search for linux banner for successful reboot · d6845536
      Steven Rostedt (Red Hat) 提交于
      Sometimes when a test kernel passed fine, but on reboot it crashed,
      ktest could get stuck and not proceed. This would be frustrating if you
      let a test run overnight to find out the next morning that it was stuck
      on the first test.
      
      To fix this, I made reboot check for the REBOOT_SUCCESS_LINE. If the
      line was not detected, then it would power cycle the box.
      
      What it didn't cover was if the REBOOT_SUCCESS_LINE wasn't defined or if
      a 'good' kernel did not display the line. Instead have it search for the
      Linux banner "Linux version". The reboot just needs to get to the start
      of the next kernel, it does not need to test if the next kernel makes it
      to a boot prompt.
      
      After we find the next kernel has booted, then we just wait for either
      the REBOOT_SUCCESS_LINE to appear or the timeout.
      Signed-off-by: NSteven Rostedt <rostedt@goodmis.org>
      d6845536