[tap-l] Outputting TAP from the shell

Jeremiah C. Foster jeremiah.foster at ericsson.com
Wed Mar 19 16:34:06 UTC 2008


Hello!

	I have read a bit on the TAP wiki about various ways to output TAP. In
particular I would like to output TAP so that I can read it with
TAP::Parser::Aggregator. I have a set of scripts written in Tcl (i.e.
expect), perl and shell script. I would like to emit TAP from the shell
scripts.

	I looked at the git project's test scripts, and stole some code to
print out ok and fail, but I see no way to present to the
TAP::Parser::Aggregator module information about the number of tests
passed. Is there an example of this somewhere written in shell? Lacking
an example, what do I have to pass to TAP::Parser::Aggregator so that I
can get an aggregate of passed and failed tests?

	Here is a sample of my output:

080319 2008 007.02.sh:    ok 1 - linux-logtest.x86_64.rpm on 192.168.0.5
080319 2008 007.02.sh:    ok 2 - linux-logtest.x86_64.rpm to 192.168.0.5
080319 2008 007.02.sh:    FAIL 3 - linux-logtest.x86_64.rpm not moved!
080319 2008 007.02.sh:    ok 4 - linux-logtest.x86_64.rpm on 192.168.0.5
Passed: 0
Failed: 0


As you can see, I can output fail and ok, but it does not get
aggregated. Any pointers welcome!

	Thanks,

	Jeremiah





More information about the tap-l mailing list