From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B7ED820380 for ; Thu, 23 May 2019 09:37:04 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 01/26] t/convert-compact: skip on missing xapian-compact(1) Date: Thu, 23 May 2019 09:36:39 +0000 Message-Id: <20190523093704.18367-2-e@80x24.org> In-Reply-To: <20190523093704.18367-1-e@80x24.org> References: <20190523093704.18367-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Can't run the test if the required Xapian tools are missing. --- t/convert-compact.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/convert-compact.t b/t/convert-compact.t index 491486d..b45a9b5 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); -- EW