testlib: pimp out test_plan
commitae44ced8e07112660b6662db14c74a7ba6a3f3cb
authorKyle J. McKay <mackyle@gmail.com>
Tue, 13 Jun 2017 23:36:18 +0000 (13 16:36 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 13 Jun 2017 23:36:18 +0000 (13 16:36 -0700)
tree333fdb5c29823b1525c5b279caca192dd1f3aa49
parentcdc8cc50a0ef644c703350f4c3a3dbed42a96743
testlib: pimp out test_plan

Strongly encourage use of the `test_plan` function to output a TAP
test plan line in advance rather than relying on `test_done` to do it.

Emit a request to do so if `test_plan` was not called before `test_done`
(unless the entire test was skipped courtesy of TESTLIB_SKIP_TESTS).

Also use all the arguments after the first to form the skip message with
a plan count of 0 instead of just the second one.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
t/README-TESTLIB
t/t0002-testlib-basic.sh
t/test-lib-main.sh