diff options
author | Eric Wong <e@80x24.org> | 2019-05-22 02:14:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-22 02:14:30 +0000 |
commit | 5a14109dadc1e4d38402dc75cdf5af714864ba33 (patch) | |
tree | 9b6249d24c574f17ce2c41d1106788e9b3775577 | |
parent | 97b45ccc7ae2f721744bd7ee1f1cbaab9e6df790 (diff) | |
download | public-inbox-5a14109dadc1e4d38402dc75cdf5af714864ba33.tar.gz |
None of the Search::Xapian-dependent stuff works without DBI and DBD::SQLite. There are no plans to support Xapian w/o DBD::SQLite since SQLite is more common and less resource-intensive than Xapian.
-rw-r--r-- | t/search-thr-index.t | 7 | ||||
-rw-r--r-- | t/search.t | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/t/search-thr-index.t b/t/search-thr-index.t index 848dc564..1872af84 100644 --- a/t/search-thr-index.t +++ b/t/search-thr-index.t @@ -7,8 +7,11 @@ use Test::More; use File::Temp qw/tempdir/; use PublicInbox::MID qw(mids); use Email::MIME; -eval { require Search::Xapian }; -plan skip_all => "Search::Xapian missing for search" if $@; +my @mods = qw(DBI DBD::SQLite Search::Xapian); +foreach my $mod (@mods) { + eval "require $mod"; + plan skip_all => "missing $mod for $0" if $@; +} require PublicInbox::SearchIdx; my $tmpdir = tempdir('pi-search-thr-index.XXXXXX', TMPDIR => 1, CLEANUP => 1); my $git_dir = "$tmpdir/a.git"; @@ -3,8 +3,11 @@ use strict; use warnings; use Test::More; -eval { require Search::Xapian }; -plan skip_all => "Search::Xapian missing for search" if $@; +my @mods = qw(DBI DBD::SQLite Search::Xapian); +foreach my $mod (@mods) { + eval "require $mod"; + plan skip_all => "missing $mod for $0" if $@; +}; require PublicInbox::SearchIdx; use File::Temp qw/tempdir/; use Email::MIME; |