[yocto] [PATCHv2][ptest-runner] ptest-runner: Add support to report duration of each ptest
Richard Purdie
richard.purdie at linuxfoundation.org
Wed Jan 9 10:32:57 PST 2019
On Wed, 2019-01-09 at 12:00 -0600, Anibal Limon wrote:
>
>
> On Tue, 8 Jan 2019 at 14:00, <richard.purdie at linuxfoundation.org>
> wrote:
> > On Mon, 2019-01-07 at 15:18 -0600, Aníbal Limón wrote:
> > > In stdout reported as,
> > >
> > > ...
> > > BEGIN: ptest-dir
> > > ...
> > > DURATION: N
> > > END: ptest-dir
> > > ...
> > >
> > > In XML reported as,
> > >
> > > ...
> > > <testcase classname='test1' name='run-ptest'>
> > > <duration>N</duration>
> > > </testcase>
> > > ...
> > >
> > > Signed-off-by: Aníbal Limón <anibal.limon at linaro.org>
> > > ---
> > > tests/data/reference.xml | 2 ++
> > > tests/utils.c | 20 ++++++++++++--------
> > > utils.c | 19 ++++++++++++-------
> > > utils.h | 2 +-
> > > 4 files changed, 27 insertions(+), 16 deletions(-)
> >
> > I've not looked at the code detail but the above looks good to me
> > and
> > will significantly help ptest usage! :)
> >
> > Once this is in are you able to help update the recipe and pass
> > this
> > data through to the the oe-selftest json report?
>
> I will send the recipe upgrade, What is the selftest json report?,
> I'm not aware.
Sorry, its not from selftest, its from testimage running against an
image where ptests are present. It generates something like:
https://autobuilder.yocto.io/pub/releases/yocto-2.7_M1.rc1/testresults/qemux86-64-ptest/testresults.json
Cheers,
Richard
More information about the yocto
mailing list