1. 22 3月, 2018 3 次提交
  2. 21 3月, 2018 2 次提交
  3. 08 3月, 2017 2 次提交
  4. 08 2月, 2017 5 次提交
  5. 15 12月, 2016 1 次提交
  6. 04 2月, 2015 1 次提交
  7. 02 2月, 2015 4 次提交
  8. 29 1月, 2015 2 次提交
  9. 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
  10. 24 11月, 2014 1 次提交
  11. 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
  12. 08 10月, 2014 2 次提交
  13. 20 9月, 2014 2 次提交
  14. 24 4月, 2014 6 次提交
  15. 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
  16. 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