diff options
author | Eric Wong <e@80x24.org> | 2021-09-13 20:53:50 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-09-13 21:11:13 +0000 |
commit | 04657044bb3695d70298624eb25394fb864fb718 (patch) | |
tree | fce610c4e7c2b3a7287d9a3cbde42bfc2ff36bfa /t/v2mirror.t | |
parent | dc489bfd4b4c659b7ebb166ab540b4e767e51aaa (diff) | |
download | public-inbox-04657044bb3695d70298624eb25394fb864fb718.tar.gz |
t/v2mirror.t and t/lei-mirror.t are now skipped when curl is missing (instead of failing in appropriate places). A bunch of which() checks are updated to use require_cmd to avoid explicitly loading Spawn.
Diffstat (limited to 't/v2mirror.t')
-rw-r--r-- | t/v2mirror.t | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/t/v2mirror.t b/t/v2mirror.t index 2bb3238b..8bcffc29 100644 --- a/t/v2mirror.t +++ b/t/v2mirror.t @@ -1,19 +1,17 @@ # Copyright (C) 2018-2021 all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> use strict; -use warnings; -use Test::More; +use v5.10.1; use PublicInbox::TestCommon; use File::Path qw(remove_tree); use Cwd qw(abs_path); require_git(2.6); +require_cmd('curl'); local $ENV{HOME} = abs_path('t'); # Integration tests for HTTP cloning + mirroring require_mods(qw(Plack::Util Plack::Builder HTTP::Date HTTP::Status Search::Xapian DBD::SQLite)); -use IO::Socket; -use POSIX qw(dup2); use_ok 'PublicInbox::V2Writable'; use PublicInbox::InboxWritable; use PublicInbox::Eml; |