tests: Add new TAP APIs
authorColin Walters <walters@verbum.org>
Fri, 10 Sep 2021 21:07:42 +0000 (17:07 -0400)
committerColin Walters <walters@verbum.org>
Fri, 10 Sep 2021 21:07:42 +0000 (17:07 -0400)
commitbc30806c6edc005de9fe32dd645ed9a13469796f
tree43ce6c497c80377405e03e0558acfd843fa2ffb7
parent213b8608ea579b6cd0fb4140e9689fc814f36c26
tests: Add new TAP APIs

Having to touch a global test counter when adding tests is
a recipe for conflicts between PRs.

The TAP protocol allows *ending* with the expected number of
tests, so the best way to do this is to have an explicit
API like our `tap_ok` which bumps a counter, then end with `tap_end`.

I ported one test as a demo.
tests/kolainst/libtest-core.sh
tests/test-admin-deploy-etcmerge-cornercases.sh