about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-12-13 00:50:08 +0000
committerEric Wong <e@80x24.org>2023-12-13 09:01:48 +0000
commit0f833a25eb64607386bc93c9d7b004c84acb54e0 (patch)
tree0c47e709ce1b1fc374ecce5e59b7235f23497492
parent68c2233c74cd47bd37fb554a4f4bf54667334ea3 (diff)
downloadpublic-inbox-0f833a25eb64607386bc93c9d7b004c84acb54e0.tar.gz
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.
-rw-r--r--t/cindex-join.t1
-rw-r--r--t/cindex.t11
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}, <<EOM;
 [publicinbox "basictest"]