* [PATCH 1/4] t/psgi_scan_all: reduce use_ok statements
2023-08-26 6:13 5% [PATCH 0/4] minor cindex-related build stuff Eric Wong
@ 2023-08-26 6:13 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2023-08-26 6:13 UTC (permalink / raw)
To: meta
This can save a handful of cycles to avoid testing things which
are already implicit from other tests.
---
t/psgi_scan_all.t | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/t/psgi_scan_all.t b/t/psgi_scan_all.t
index 09e8eaf9..20b93b78 100644
--- a/t/psgi_scan_all.t
+++ b/t/psgi_scan_all.t
@@ -1,16 +1,14 @@
#!perl -w
-# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org>
+# Copyright (C) all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
-use strict;
-use v5.10.1;
+use v5.12;
use PublicInbox::TestCommon;
use PublicInbox::Eml;
-use PublicInbox::Config;
-my @mods = qw(HTTP::Request::Common Plack::Test URI::Escape DBD::SQLite);
-require_git 2.6;
-require_mods(@mods);
-use_ok 'PublicInbox::WWW';
-foreach my $mod (@mods) { use_ok $mod; }
+my @use = qw(HTTP::Request::Common Plack::Test);
+my @req = qw(URI::Escape DBD::SQLite);
+require_git v2.6;
+require_mods(@use, @req, qw(PublicInbox::WWW PublicInbox::Config));
+$_->import for @use;
my $cfg = '';
foreach my $i (1..2) {
my $ibx = create_inbox "test-$i", version => 2, indexlevel => 'basic',
^ permalink raw reply related [relevance 7%]
* [PATCH 0/4] minor cindex-related build stuff
@ 2023-08-26 6:13 5% Eric Wong
2023-08-26 6:13 7% ` [PATCH 1/4] t/psgi_scan_all: reduce use_ok statements Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2023-08-26 6:13 UTC (permalink / raw)
To: meta
The first one is a minor test improvement I had lying around
on a VM I nearly forgot about. The rest are small improvements
related to -cindex. Allowing stuff to work on non-Linux
w/o Inline::C nor Socket::MsgHdr still needs doing...
Eric Wong (4):
t/psgi_scan_all: reduce use_ok statements
makefile: add targets for ASan and valgrind
cindex: document pipelines created for prune
xap_helper: fix C++-specific warnings
Makefile.PL | 9 +++++++++
lib/PublicInbox/CodeSearchIdx.pm | 9 ++++++++-
lib/PublicInbox/xap_helper.h | 12 +++++++-----
t/psgi_scan_all.t | 16 +++++++---------
4 files changed, 31 insertions(+), 15 deletions(-)
^ permalink raw reply [relevance 5%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2023-08-26 6:13 5% [PATCH 0/4] minor cindex-related build stuff Eric Wong
2023-08-26 6:13 7% ` [PATCH 1/4] t/psgi_scan_all: reduce use_ok statements 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).