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 3/3] test_common: only print $@ for Gcf2 failure
  2021-09-12  8:42  5% [PATCH 0/3] test dependency fixes for minimal installs Eric Wong
@ 2021-09-12  8:42  7% ` Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-09-12  8:42 UTC (permalink / raw)
  To: meta

Other missing dependencies are more straightforward, but
Gcf2 requires a combination of libgit2-dev, pkg-config,
Inline::C, and proper setup.

This significantly reduces noise in tests with a minimal
set of dependencies installed.
---
 lib/PublicInbox/TestCommon.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index d28b32b0..628beaf1 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -144,7 +144,7 @@ sub require_mods {
 			eval "require $mod";
 		}
 		if ($@) {
-			diag "require $mod: $@";
+			diag "require $mod: $@" if $mod =~ /Gcf2/;
 			push @need, $mod;
 		} elsif ($mod eq 'IO::Socket::SSL' &&
 			# old versions of IO::Socket::SSL aren't supported

^ permalink raw reply related	[relevance 7%]

* [PATCH 0/3] test dependency fixes for minimal installs
@ 2021-09-12  8:42  5% Eric Wong
  2021-09-12  8:42  7% ` [PATCH 3/3] test_common: only print $@ for Gcf2 failure Eric Wong
  0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-09-12  8:42 UTC (permalink / raw)
  To: meta

Everything that worked in 2014 when this project started
should still work today without new dependencies.

Eric Wong (3):
  t/lei-*.t: guard setup_public_inboxes with test_lei
  lei sucks: allow it to work without SQLite
  test_common: only print $@ for Gcf2 failure

 lib/PublicInbox/LeiSucks.pm   |  4 ++--
 lib/PublicInbox/TestCommon.pm | 14 ++++++++------
 t/lei-auto-watch.t            |  3 +--
 t/lei-up.t                    |  2 +-
 t/lei.t                       |  4 ++++
 5 files changed, 16 insertions(+), 11 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 --
2021-09-12  8:42  5% [PATCH 0/3] test dependency fixes for minimal installs Eric Wong
2021-09-12  8:42  7% ` [PATCH 3/3] test_common: only print $@ for Gcf2 failure 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).