diff options
author | Eric Wong <e@80x24.org> | 2019-05-23 09:36:39 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-23 17:43:50 +0000 |
commit | 646c15c17c323aa80a9a25ca8755720926564ef8 (patch) | |
tree | 6d34f4dde3d725eafb59037680e44332114ef216 | |
parent | e36db4b8acdad26ef70a45d8912e8f3c5f2d9910 (diff) | |
download | public-inbox-646c15c17c323aa80a9a25ca8755720926564ef8.tar.gz |
Can't run the test if the required Xapian tools are missing.
-rw-r--r-- | t/convert-compact.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/t/convert-compact.t b/t/convert-compact.t index 491486d5..b45a9b51 100644 --- a/t/convert-compact.t +++ b/t/convert-compact.t @@ -5,6 +5,7 @@ use warnings; use Test::More; use File::Temp qw/tempdir/; use PublicInbox::MIME; +use PublicInbox::Spawn qw(which); require './t/common.perl'; require_git(2.6); my @mods = qw(DBD::SQLite Search::Xapian); @@ -12,6 +13,9 @@ foreach my $mod (@mods) { eval "require $mod"; plan skip_all => "$mod missing for convert-compact.t" if $@; } +which('xapian-compact') or + plan skip_all => 'xapian-compact missing for '.__FILE__; + use_ok 'PublicInbox::V2Writable'; use PublicInbox::Import; my $tmpdir = tempdir('convert-compact-XXXXXX', TMPDIR => 1, CLEANUP => 1); |