From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C90991F404 for ; Wed, 18 Apr 2018 21:04:57 +0000 (UTC) From: "Eric Wong (Contractor, The Linux Foundation)" To: meta@public-inbox.org Subject: [PATCH] fix tests to run without Xapian installed Date: Wed, 18 Apr 2018 21:04:57 +0000 Message-Id: <20180418210457.19323-1-e@80x24.org> List-Id: We'll be ensuring we can run more of the HTTP and all of the NNTP interface with only SQLite (and not Xapian) installed in the future. --- t/over.t | 3 ++- t/v1-add-remove-add.t | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/t/over.t b/t/over.t index c0d9d5e..7a3c972 100644 --- a/t/over.t +++ b/t/over.t @@ -5,7 +5,8 @@ use warnings; use Test::More; use File::Temp qw/tempdir/; use Compress::Zlib qw(compress); -foreach my $mod (qw(DBD::SQLite)) { +# FIXME: allow using Over w/o Xapian +foreach my $mod (qw(DBD::SQLite Search::Xapian)) { eval "require $mod"; plan skip_all => "$mod missing for over.t" if $@; } diff --git a/t/v1-add-remove-add.t b/t/v1-add-remove-add.t index cd6e281..1e11c71 100644 --- a/t/v1-add-remove-add.t +++ b/t/v1-add-remove-add.t @@ -5,13 +5,13 @@ use warnings; use Test::More; use PublicInbox::MIME; use PublicInbox::Import; -use PublicInbox::SearchIdx; use File::Temp qw/tempdir/; foreach my $mod (qw(DBD::SQLite Search::Xapian)) { eval "require $mod"; plan skip_all => "$mod missing for v1-add-remove-add.t" if $@; } +require PublicInbox::SearchIdx; my $mainrepo = tempdir('pi-add-remove-add-XXXXXX', TMPDIR => 1, CLEANUP => 1); is(system(qw(git init --bare), $mainrepo), 0); my $ibx = { -- EW