]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
t/cindex*: skip --join when join(1) is missing
authorEric Wong <e@80x24.org>
Wed, 13 Dec 2023 00:50:08 +0000 (00:50 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Dec 2023 09:01:48 +0000 (09:01 +0000)
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
t/cindex.t

index c2e85332446ad94b5469fcc757b45fd61b46a712..22c671072c747478799186a49e5ba72834fe9021 100644 (file)
@@ -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
index 15c860e13e9fa896c9e92151330019051ef9babc..ab4cde7c0809a043e05a05e27fcc2fcb7d3ae030 100644 (file)
@@ -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}, <<EOM;
 [publicinbox "basictest"]