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, T_SCC_BODY_TEXT_LINE 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 6A1001F487 for ; Wed, 13 Dec 2023 00:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1702428620; bh=OQmgj2byRGlGul4whDsfsFL7I9yCm3Ie4twlnIWyDhI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uhRfv6VFNwHkq7Ov7Ofj9eb5NMuEZ7Pn5jOTiupcBZAuvYV9S45C1dDjKaSpCECC3 KlxjcR+K+CXDYPmtJDRNGNV6WqIBq+afSvGhznmT0ZHCL/MJ7iipzTTrRDIiWP9W4p ZBiLRfPQohHlrhEFCyNHPm/YA0gmQdzdY5WDwCh0= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 03/14] t/cindex*: skip --join when join(1) is missing Date: Wed, 13 Dec 2023 00:50:08 +0000 Message-ID: <20231213005019.26912-4-e@80x24.org> In-Reply-To: <20231213005019.26912-1-e@80x24.org> References: <20231213005019.26912-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: While join(1) is POSIX, busybox on Alpine 3.19.0 does not provide its functionality. So just skip tests for now since it's too much trouble to provide a workaround for an otherwise common POSIX command. --- t/cindex-join.t | 1 + t/cindex.t | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/t/cindex-join.t b/t/cindex-join.t index c2e85332..22c67107 100644 --- a/t/cindex-join.t +++ b/t/cindex-join.t @@ -11,6 +11,7 @@ use PublicInbox::Config; use autodie; use File::Spec; $ENV{TEST_REMOTE_JOIN} or plan skip_all => 'TEST_REMOTE_JOIN unset'; +require_cmd 'join'; local $ENV{TAIL_ALL} = $ENV{TAIL_ALL} // 1; # while features are unstable require_mods(qw(json Xapian DBD::SQLite +SCM_RIGHTS)); my @code = qw(https://80x24.org/mwrap-perl.git diff --git a/t/cindex.t b/t/cindex.t index 15c860e1..ab4cde7c 100644 --- a/t/cindex.t +++ b/t/cindex.t @@ -247,11 +247,12 @@ SKIP: { ok(run_script([qw(-xcpdb --compact), "$tmp/ext"]), 'xcpdb compact'); }; -my $basic = create_inbox 'basic', indexlevel => 'basic', sub { - my ($im, $ibx) = @_; - $im->add(eml_load('t/plack-qp.eml')); -}; -{ +SKIP: { + require_cmd('join', 1); + my $basic = create_inbox 'basic', indexlevel => 'basic', sub { + my ($im, $ibx) = @_; + $im->add(eml_load('t/plack-qp.eml')); + }; my $env = { PI_CONFIG => "$tmp/pi_config" }; PublicInbox::IO::write_file '>', $env->{PI_CONFIG}, <