All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] log per test?
@ 2018-01-25 17:27 Dan Rue
  2018-01-26 11:07 ` Cyril Hrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Rue @ 2018-01-25 17:27 UTC (permalink / raw)
  To: ltp

Hey all,

I'm looking at how we run LTP at Linaro and currently we redirect all
output to a file. When a test fails, someone has to read through the log
to find the test failure. Not difficult, but in terms of automation,
we'd like to be able to post just the log of the test that failed
directly. We're starting to work on parsing it, but that too can be a
little tricky.

I noticed runltp -K to capture dmesg output per test - very useful!

Is there anything similar for capturing stdout and stderr per test? I
saw some facilities in ltp-pan but I didn't see anything in runltp
(though I may have missed it). I'm not sure if what I'm asking for
already exists, or if I'd have to write a new i.e. reporttype.

Thanks!
Dan

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [LTP] log per test?
  2018-01-25 17:27 [LTP] log per test? Dan Rue
@ 2018-01-26 11:07 ` Cyril Hrubis
  0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2018-01-26 11:07 UTC (permalink / raw)
  To: ltp

Hi!
> I'm looking at how we run LTP at Linaro and currently we redirect all
> output to a file. When a test fails, someone has to read through the log
> to find the test failure. Not difficult, but in terms of automation,
> we'd like to be able to post just the log of the test that failed
> directly. We're starting to work on parsing it, but that too can be a
> little tricky.
> 
> I noticed runltp -K to capture dmesg output per test - very useful!
> 
> Is there anything similar for capturing stdout and stderr per test? I
> saw some facilities in ltp-pan but I didn't see anything in runltp
> (though I may have missed it). I'm not sure if what I'm asking for
> already exists, or if I'd have to write a new i.e. reporttype.

As far as I know there is none. And the code that runs the testcases is
quite dated and was in maintenance mode for quite some time.

Which is the reason why I started to work on a replacement recently with
more modular approach in mind so that it can run open posix testcases as
well and also export results in various formats so that it can be
plugged into automation frameworks with minimal effort. It's not
finished yet, but it kind of works at this point, you can have a look at
it at:

https://github.com/metan-ucw/ltp/tree/master/tools/runltp-ng

And as usual comments and patches are welcomed :-).

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-26 11:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-25 17:27 [LTP] log per test? Dan Rue
2018-01-26 11:07 ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.