Commit cf0d014
committed
runtimetest: Make TAP output more granular
Granular TAP output makes it easier to see what's being tested (and
what's going wrong). You could feed this into any TAP harness you
like, but I've chosen prove (it seems popular). You need a TAP
harness looking for test failures, because runtimetest now returns
zero when it successfully runs the tests (regardless of whether the
tests all pass).
With this commit, runtimetest will exit zero when it can successfully
*run the tests* (regardless of whether all the tests pass). A TAP
harness like prove should be used to consume the output TAP to decide
if validation succeeded or not. To avoid confusing the TAP consumer,
all of the non-TAP logging goes to stderr (and not stdout).
Signed-off-by: W. Trevor King <wking@tremily.us>1 parent 7d409aa commit cf0d014
3 files changed
+206
-247
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
0 commit comments