[ci] Update macos jobs
[xapian.git] / xapian-bindings / perl / run-perl-test
blobf329a88ca30809fe4760a440d4b544e4270938cf
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
5 # App::Prove is a Perl core module so it's unlikely to be missing, but if it
6 # isn't found we exit with status 77 which causes the testharness to treat the
7 # tests as skipped.
8 eval { require App::Prove };
9 $@ and exit 77;
11 my $app = App::Prove->new;
12 unshift @ARGV, "-I$ENV{srcdir}" if exists $ENV{srcdir};
13 unshift @ARGV, '-I.';
14 $app->process_args(@ARGV);
15 exit($app->run ? 0 : 1);