[tap-l] Outputting TAP from the shell
Patrick LeBoutillier
patrick.leboutillier at gmail.com
Thu Mar 20 19:57:50 UTC 2008
Hi all,
A while back I ported libtap to Java (I called it JTap:
http://testanything.org/wiki/index.php/JTap).
I was looking at it earlier today after following this thread and was
thinking I might try to port it to bash (it would really just be a
batch of functions with a few globals, nothing too fancy).
Would anyone be interested?
Patrick
On Wed, Mar 19, 2008 at 12:34 PM, Jeremiah C. Foster
<jeremiah.foster at ericsson.com> wrote:
> 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
>
>
>
> _______________________________________________
> tap-l mailing list
> tap-l at testanything.org
> http://testanything.org/mailman/listinfo/tap-l
>
--
=====================
Patrick LeBoutillier
Laval, Québec, Canada
More information about the tap-l
mailing list