Skip to content
Snippets Groups Projects
Commit eb8e62b3 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Only run mandoc test if mandoc is available

parent 801e1274
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,6 @@ all:
@${MAKE} -C src
test: all
@mandoc -Tlint man/*
@PACKAGE=${PACKAGE} VERSION=${VERSION} prove test
install: install-man install-doc install-bin install-font install-img
......
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Test::More tests => 3;
SKIP: {
qx{mandoc -V};
if ($? != 0) {
skip('mandoc not installed', 3);
}
for my $file ('feh', 'feh-cam', 'gen-cam-menu') {
qx{mandoc -Tlint man/${file}.1};
is($?, 0, "${file}.1: Valid mdoc syntax");
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment