Added --tap option to client based test runs
commit87abe32ff46c951ea0edd21dadc37b453392c2f8
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Thu, 6 Jan 2011 15:29:17 +0000 (6 15:29 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Thu, 6 Jan 2011 15:29:17 +0000 (6 15:29 +0000)
tree9657a987716bc4070f23a9711babe7e2ee44212b
parentd82a11ff8ed3c7f95c4544f20e7bc750f5f07853
Added --tap option to client based test runs

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.

I'd like to collect some feedback on what might be required to get the
TAP support committed to Autotest.

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

Signed-off-by: Frank Becker <Frank.Becker@amd.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5068 592f7852-d20e-0410-864c-8624ca9c26a4
client/bin/autotest