1. 14 3月, 2015 1 次提交
    • M
      selftests: Introduce minimal shared logic for running tests · 5e29a910
      Michael Ellerman 提交于
      This adds a Make include file which most selftests can then include to
      get the run_tests logic.
      
      On its own this has the advantage of some reduction in repetition, and
      also means the pass/fail message is defined in fewer places.
      
      However the key advantage is it will allow us to implement install very
      simply in a subsequent patch.
      
      The default implementation just executes each program in $(TEST_PROGS).
      
      We use a variable to hold the default implementation of $(RUN_TESTS)
      because that gives us a clean way to override it if necessary, ie. using
      override. The mount, memory-hotplug and mqueue tests use that to provide
      a different implementation.
      
      Tests are not run via /bin/bash, so if they are scripts they must be
      executable, we add a+x to several.
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: NShuah Khan <shuahkh@osg.samsung.com>
      5e29a910
  2. 13 3月, 2015 18 次提交
  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. 23 1月, 2015 3 次提交
  8. 11 1月, 2015 5 次提交
  9. 09 1月, 2015 1 次提交
  10. 07 1月, 2015 3 次提交