user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [PATCH 4/5] tests: add use/require statements for TEST_RUN_MODE=0
  2020-07-01 21:06  6% [PATCH 0/5] some random minor fixes Eric Wong
@ 2020-07-01 21:06  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-07-01 21:06 UTC (permalink / raw)
  To: meta

The default (and fast) TEST_RUN_MODE=2 preloads most modules,
but TEST_RUN_MODE=0 is more realistic and can catch some
problems which may show up in real-world use.
---
 lib/PublicInbox/InboxWritable.pm | 1 +
 t/init.t                         | 1 +
 t/nntpd.t                        | 1 +
 3 files changed, 3 insertions(+)

diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm
index 9bdf8637e6e..875dcce20b7 100644
--- a/lib/PublicInbox/InboxWritable.pm
+++ b/lib/PublicInbox/InboxWritable.pm
@@ -44,6 +44,7 @@ sub init_inbox {
 		PublicInbox::Import::init_bare($dir);
 		if (defined($self->{indexlevel}) || defined($skip_artnum)) {
 			require PublicInbox::SearchIdx;
+			require PublicInbox::Msgmap;
 			my $sidx = PublicInbox::SearchIdx->new($self, 1); # just create
 			$sidx->begin_txn_lazy;
 			$self->with_umask(sub {
diff --git a/t/init.t b/t/init.t
index f4ebc2f67e6..5c021be729b 100644
--- a/t/init.t
+++ b/t/init.t
@@ -53,6 +53,7 @@ sub quiet_fail {
 SKIP: {
 	require_mods(qw(DBD::SQLite Search::Xapian::WritableDatabase), 2);
 	require_git(2.6, 1) or skip "git 2.6+ required", 2;
+	use_ok 'PublicInbox::Msgmap';
 	local $ENV{PI_DIR} = "$tmpdir/.public-inbox/";
 	my $cfgfile = "$ENV{PI_DIR}/config";
 	my $cmd = [ '-init', '-V2', 'v2list', "$tmpdir/v2list",
diff --git a/t/nntpd.t b/t/nntpd.t
index d72d6a1ce7e..28008ec15f7 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -396,6 +396,7 @@ sub test_watch {
 	my ($tmpdir, $sock, $group) = @_;
 	use_ok 'PublicInbox::WatchMaildir';
 	use_ok 'PublicInbox::InboxIdle';
+	use_ok 'PublicInbox::Config';
 	require_git('1.8.5', 1) or skip('git 1.8.5+ needed for --urlmatch', 4);
 	my $old_env = { HOME => $ENV{HOME} };
 	my $home = "$tmpdir/watch_home";

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/5] some random minor fixes
@ 2020-07-01 21:06  6% Eric Wong
  2020-07-01 21:06  7% ` [PATCH 4/5] tests: add use/require statements for TEST_RUN_MODE=0 Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2020-07-01 21:06 UTC (permalink / raw)
  To: meta

Bigger changes are brewing in other branches...

Eric Wong (5):
  spawn: make @RLIMITS a shared list
  spawn: modernize with parent.pm, drop warnings.pm
  watch: retry signals to kill IDLE and polling processes
  tests: add use/require statements for TEST_RUN_MODE=0
  overidx: document why we don't use SQLite WAL

 lib/PublicInbox/InboxWritable.pm |  1 +
 lib/PublicInbox/OverIdx.pm       |  2 ++
 lib/PublicInbox/Qspawn.pm        |  4 ++--
 lib/PublicInbox/Spawn.pm         |  7 +++----
 lib/PublicInbox/WatchMaildir.pm  | 27 ++++++++++++++++++---------
 t/init.t                         |  1 +
 t/nntpd.t                        |  1 +
 7 files changed, 28 insertions(+), 15 deletions(-)

^ permalink raw reply	[relevance 6%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-07-01 21:06  6% [PATCH 0/5] some random minor fixes Eric Wong
2020-07-01 21:06  7% ` [PATCH 4/5] tests: add use/require statements for TEST_RUN_MODE=0 Eric Wong

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).