diff options
author | Eric Wong <e@80x24.org> | 2023-12-13 00:50:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-12-13 09:01:47 +0000 |
commit | 68c2233c74cd47bd37fb554a4f4bf54667334ea3 (patch) | |
tree | 717e02adf2dc382e91dd764dc1d7273523cf5de5 /t | |
parent | 1f70373f1fe951959eadf1f311152b0131d07303 (diff) | |
download | public-inbox-68c2233c74cd47bd37fb554a4f4bf54667334ea3.tar.gz |
Alpine Linux ships git-http-backend in the `git-daemon' package separately from `git', so we must test for its existence before attempting to test functionality which depends on it.
Diffstat (limited to 't')
-rw-r--r-- | t/clone-coderepo.t | 1 | ||||
-rw-r--r-- | t/httpd.t | 1 | ||||
-rw-r--r-- | t/lei-mirror.t | 1 | ||||
-rw-r--r-- | t/www_listing.t | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/t/clone-coderepo.t b/t/clone-coderepo.t index 0e6b4ac7..c0951941 100644 --- a/t/clone-coderepo.t +++ b/t/clone-coderepo.t @@ -8,6 +8,7 @@ use File::Temp; use File::Path qw(remove_tree); use PublicInbox::SHA qw(sha1_hex); require_mods(qw(json Plack::Builder HTTP::Date HTTP::Status)); +require_git_http_backend; require_git '1.8.5'; require_cmd 'curl'; require_ok 'PublicInbox::LeiMirror'; @@ -7,6 +7,7 @@ use PublicInbox::TestCommon; use PublicInbox::Eml; use Socket qw(IPPROTO_TCP SOL_SOCKET); require_mods(qw(Plack::Util Plack::Builder HTTP::Date HTTP::Status)); +require_git_http_backend; # FIXME: too much setup my ($tmpdir, $for_destroy) = tmpdir(); diff --git a/t/lei-mirror.t b/t/lei-mirror.t index 37c9751b..76041b73 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -5,6 +5,7 @@ use v5.12; use PublicInbox::TestCommon; use PublicInbox::Inbox; require_mods(qw(-httpd lei DBD::SQLite)); require_cmd('curl'); +require_git_http_backend; use PublicInbox::Spawn qw(which); require PublicInbox::Msgmap; my $sock = tcp_server(); diff --git a/t/www_listing.t b/t/www_listing.t index 709dbd05..0a4c79e8 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -77,6 +77,7 @@ sub tiny_test { my $td; SKIP: { + require_git_http_backend 1; my $err = "$tmpdir/stderr.log"; my $out = "$tmpdir/stdout.log"; my $alt = "$tmpdir/alt.git"; |