Newer
Older
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Test::More tests => 1;
my $mandoc_present = 0;
for my $path (split(qr{:}, $ENV{PATH})) {
if (-x "${path}/mandoc") {
$mandoc_present = 1;
last;
}
}
if ( not $mandoc_present ) {
Birte Kristina Friesel
committed
diag('mandoc not installed, test skipped. This is NOT fatal.');
skip( 'mandoc not installed', 1 );
qx{mandoc -Tlint -Werror man/${file}.1};
is( $?, 0, "${file}.1: Valid mdoc syntax" );