]> rtime.felk.cvut.cz Git - wvtest.git/commit
Replaced wvtesthelper/meter/colour scripts with an all-new wvtestrunner.pl.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 1 May 2009 01:02:00 +0000 (21:02 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 1 May 2009 01:14:57 +0000 (21:14 -0400)
commita46a9d72d6fe2b0f2c9e65584586318affa98bc1
tree4725b6d4911f6af3ec1ce62a450e190050ab1d68
parenta41879c52d12f886546558c68675d00d917befb5
Replaced wvtesthelper/meter/colour scripts with an all-new wvtestrunner.pl.

This one is much smarter than previous versions: by default, it prints out
only the headers from "Testing blah blah:" lines and then prints just a "."
for each "! whatever  ok" line.  But, if a test does fail, it prints out
*all* the stdout/stderr that was produced by the test from the "Testing blah
blah" line all the way to the failing test.

It also auto-colours ok/FAILED lines, but only if stdout is a tty, so you
don't need to decide whether you want it coloured or not.

Finally, its output is actually compatible with itself: you can run a
top-level wvtestrunner and it'll further summarize the output of inner
wvtestrunners, because the complete output of a given testrunner is in a
single "Testing blah blah:" section.  But if a failure occurs, you'll still
get the more detailed results.

(cherry picked from commit 49efbe24c148d69873ca78c05e9c5825d50ef49d)
wvtestrunner.pl [new file with mode: 0755]