test-lib-main.sh: add test_plan function
commitc6afff1b0b37444508dedd5f62ab9f02694b1eef
authorKyle J. McKay <mackyle@gmail.com>
Sun, 12 Feb 2017 09:10:19 +0000 (12 01:10 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 12 Feb 2017 09:10:19 +0000 (12 01:10 -0800)
tree50a46f3d85818da3bb9dc76ce3d8eb792ff41bf2
parent1069edafa4739fcea0aa8371c5f719e94f5c1bc9
test-lib-main.sh: add test_plan function

It's nice to be able to output a fixed test plan count in advance
so TAP harnesses can provide a nice progress display.

Make that possible by adding a new test_plan function.

As a bonus it also provides an easier way to pass a skip message
when outputting a "1..0 # SKIP" plan line.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/t0000-itworks.sh
t/test-lib-main.sh