From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 961DF1F560 for ; Sat, 9 Sep 2023 01:48:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1694224118; bh=Aizd3YmSTvyqqB31SeqSi/fGXgUv/CB6M2NuWvBKI7Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=E/1asHxgOtCF8MCjlH4Gizpi3WuItB1fxDD5RpoDybHgsBJ6G9oldG5e7feHegv1X 86kbgdGAjPK3AAoEcS9tM/sVL4SxDIBvIWuF88Pw2Msxo9YtBj9ia+5V7vlvNSNN+2 ElrM+a0AYK56FVbQlZrapyVRUuC9WZ27MKWW5LMk= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/3] fix some tests when `curl' is missing Date: Sat, 9 Sep 2023 01:48:36 +0000 Message-Id: <20230909014838.1608889-2-e@80x24.org> In-Reply-To: <20230909014838.1608889-1-e@80x24.org> References: <20230909014838.1608889-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Debian-based distros allow uninstalling the `curl' CLI tool independently of libcurl* packages which git depends on. --- t/clone-coderepo.t | 1 + t/www_listing.t | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/t/clone-coderepo.t b/t/clone-coderepo.t index e28041e9..bce4ecd9 100644 --- a/t/clone-coderepo.t +++ b/t/clone-coderepo.t @@ -9,6 +9,7 @@ use File::Path qw(remove_tree); use PublicInbox::SHA qw(sha1_hex); require_mods(qw(json Plack::Builder HTTP::Date HTTP::Status)); require_git '1.8.5'; +require_cmd 'curl'; require_ok 'PublicInbox::LeiMirror'; my ($tmpdir, $for_destroy) = tmpdir(); my $pa = "$tmpdir/src/a.git"; diff --git a/t/www_listing.t b/t/www_listing.t index 4784c39d..709dbd05 100644 --- a/t/www_listing.t +++ b/t/www_listing.t @@ -2,10 +2,11 @@ # Copyright (C) all contributors # License: AGPL-3.0+ # manifest.js.gz generation and grok-pull integration test -use strict; use v5.10.1; use PublicInbox::TestCommon; +use v5.12; use PublicInbox::TestCommon; use PublicInbox::Import; use IO::Uncompress::Gunzip qw(gunzip); require_mods(qw(json URI::Escape Plack::Builder HTTP::Tiny)); +require_cmd 'curl'; require PublicInbox::WwwListing; require PublicInbox::ManifestJsGz; use PublicInbox::Config;