From 23eab6127c62d0228a0cfcec78a267fe5e7011c7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 14 Sep 2020 06:29:26 +0000 Subject: tests: consistently check for xapian-compact We may need to test against development versions of Xapian, which may rely on setting `XAPIAN_COMPACT=xapian-compact-1.5'. Ensure it's possible to do that. And add a missing check in t/xcpdb-reshard.t, too. --- t/nntpd.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/nntpd.t') diff --git a/t/nntpd.t b/t/nntpd.t index 14db1a93..c7a7ee6b 100644 --- a/t/nntpd.t +++ b/t/nntpd.t @@ -349,7 +349,7 @@ Date: Fri, 02 Oct 1993 00:00:00 +0000 # -compact requires Xapian SKIP: { require_mods('Search::Xapian', 2); - which('xapian-compact') or skip 'xapian-compact missing', 2; + have_xapian_compact or skip 'xapian-compact missing', 2; is(xsys(qw(git config), "--file=$home/.public-inbox/config", "publicinbox.$group.indexlevel", 'medium'), 0, 'upgraded indexlevel'); -- cgit v1.2.3-24-ge0c7