]> Sergey Matveev's repositories - public-inbox.git/commit
tests: make require_git and require_cmd easier-to-use
authorEric Wong <e@80x24.org>
Mon, 30 Jan 2023 22:50:07 +0000 (22:50 +0000)
committerEric Wong <e@80x24.org>
Tue, 31 Jan 2023 00:27:05 +0000 (00:27 +0000)
commit5dbb060037ce3e3a3ba0812baa90c80eeee762af
tree4c61aef7f5822ede45c8c352320ed8bc5b7492b8
parent155ee9cdaffd6232ef3c774d1a9f61d708fc8d6e
tests: make require_git and require_cmd easier-to-use

We'll rely on defined(wantarray) to implicitly skip subtests,
and memoize these to reduce syscalls, since tests should
be short-lived enough to not be affected by new installations or
removals of git/xapian-compact/curl/etc...
15 files changed:
lib/PublicInbox/TestCommon.pm
t/admin.t
t/config.t
t/convert-compact.t
t/git.t
t/imapd.t
t/import.t
t/index-git-times.t
t/init.t
t/nntpd.t
t/v2mirror.t
xt/git-http-backend.t
xt/httpd-async-stream.t
xt/imapd-mbsync-oimap.t
xt/pop3d-mpop.t