about summary refs log tree commit homepage
path: root/t/nntpd.t
diff options
context:
space:
mode:
authore@80x24.org <e@80x24.org>2015-12-26 23:38:17 +0000
committerEric Wong <e@80x24.org>2015-12-26 23:46:08 +0000
commit83fedde4cde6539386c9d3ecf37fb99d74af8d93 (patch)
tree4b46738aba5f197916358879285ee5fa3affde4e /t/nntpd.t
parent938cf615b743c62f5359285c2fd7da7b9f0ba6b0 (diff)
downloadpublic-inbox-83fedde4cde6539386c9d3ecf37fb99d74af8d93.tar.gz
We should be able to run tests on bare bones systems more easily.
Diffstat (limited to 't/nntpd.t')
-rw-r--r--t/nntpd.t10
1 files changed, 6 insertions, 4 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index ecb876f9..f6f71a22 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -3,10 +3,12 @@
 use strict;
 use warnings;
 use Test::More;
-eval { require PublicInbox::SearchIdx };
-plan skip_all => "Xapian missing for nntpd" if $@;
-eval { require PublicInbox::Msgmap };
-plan skip_all => "DBD::SQLite missing for nntpd" if $@;
+foreach my $mod (qw(DBD::SQLite Search::Xapian Danga::Socket)) {
+        eval "require $mod";
+        plan skip_all => "$mod missing for nntpd.t" if $@;
+}
+require PublicInbox::SearchIdx;
+require PublicInbox::Msgmap;
 use Cwd;
 use Email::Simple;
 use IO::Socket;