[yocto] [PATCHv2][ptest-runner] ptest-runner: Add support to report duration of each ptest
richard.purdie at linuxfoundation.org
richard.purdie at linuxfoundation.org
Tue Jan 8 11:59:54 PST 2019
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?
Cheers,
Richard
More information about the yocto
mailing list