about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-22 02:14:01 +0000
committerEric Wong <e@80x24.org>2019-05-22 02:14:30 +0000
commit5a14109dadc1e4d38402dc75cdf5af714864ba33 (patch)
tree9b6249d24c574f17ce2c41d1106788e9b3775577 /t
parent97b45ccc7ae2f721744bd7ee1f1cbaab9e6df790 (diff)
downloadpublic-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.
Diffstat (limited to 't')
-rw-r--r--t/search-thr-index.t7
-rw-r--r--t/search.t7
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";
diff --git a/t/search.t b/t/search.t
index a9d0c920..c063620c 100644
--- a/t/search.t
+++ b/t/search.t
@@ -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;