Rework tests

Split along multiple files, produce TAP output, rely on Perl's prove for
running them. Improves clarity and hopefully makes it easier to add new
tests in the future.
This commit is contained in:
Lucas 2021-02-12 22:58:09 +00:00
parent 3093486c9f
commit 2fe090286d
7 changed files with 138 additions and 123 deletions

View file

@ -30,8 +30,8 @@ all: otpcli
clean:
rm -f otpcli ${OBJ} ${P}-${V}.tgz
test: all run-tests.sh
sh ./run-tests.sh
test: all
prove
dist: clean
pax -w -s ',^,$P-$V/,' ${DIST} | gzip >$P-$V.tgz