On Tue, 2010-12-14 at 14:15 -0200, Lucas Meneghel Rodrigues wrote: > This patch series adds some basic TAP support to the Autotest client. > The reason behind it is to integrate Autotest into our internal testing > system which is based on TAP (Test Anything Protocol)[0] known from > Perl's CPAN. While doing that, my main goal was to be as less intrusive > as possible. Also, the TAP support is completely optional. > > Example of running the hackbench benchmark w/ TAP. > > client/bin/autotest --tap client/tests/hackbench/control > > That will give you some additional *.tap files (status.tap, keyval.tap) > # find client/results -iname "*tap" > client/results/default/hackbench/results/keyval.tap > client/results/default/hackbench/status.tap > client/results/default/hackbench/keyval.tap > client/results/default/status.tap > > Further, it creates a tar.gz containing all *.tap files and a meta.yml > catalog suitable for TAP::Archive [1] > > [0] http://en.wikipedia.org/wiki/Test_Anything_Protocol > http://szabgab.com/blog/2009/04/1239191451.html > [1] http://www.ietf.org/mail-archive/web/tap/current/msg00455.html > > Thanks a lot! > > Frank > > Changes from v1: > * Adjust of coding style (lmr) > * Fix an unintended code revert on the 5th patch (lmr)
Frank, I have fixed the problems I found on the 1st patchset, but we gotta fix the unittests to accomodate the new tap option. So I won't commit this until we have all the unittests sorted out. Please take the patches I reposted and work on the unittests and re-submit. Thanks for all your work on this, Lucas > > Frank Becker (5): > Added --tap option to client based test runs > add cls TAPReport() and make cls base_job() init tap reporting if > option is set > added optional TAP to write_keyvalue func > write TAP when cls job() exits > make cls test() handle TAP if --tap option is set > > client/bin/autotest | 5 + > client/bin/job.py | 18 +++-- > client/common_lib/base_job.py | 200 > ++++++++++++++++++++++++++++++++++++++++- > client/common_lib/test.py | 18 +++-- > client/common_lib/utils.py | 9 ++- > 5 files changed, 233 insertions(+), 17 deletions(-) > _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
