user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] fix tests to run without Xapian installed
@ 2018-04-18 21:04 Eric Wong (Contractor, The Linux Foundation)
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong (Contractor, The Linux Foundation) @ 2018-04-18 21:04 UTC (permalink / raw)
  To: meta

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] fix tests to run without Xapian installed
@ 2018-04-19 19:23 Eric Wong (Contractor, The Linux Foundation)
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong (Contractor, The Linux Foundation) @ 2018-04-19 19:23 UTC (permalink / raw)
  To: meta

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-04-19 19:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-19 19:23 [PATCH] fix tests to run without Xapian installed Eric Wong (Contractor, The Linux Foundation)
  -- strict thread matches above, loose matches on Subject: below --
2018-04-18 21:04 Eric Wong (Contractor, The Linux Foundation)

Code repositories for project(s) associated with this public inbox

	https://80x24.org/public-inbox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).