<commit_before>#!/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");
	}
}
<commit_msg>test/mandoc.t: Print note that a missing mandoc does NOT mean test failure<commit_after>#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;

use Test::More tests => 3;

SKIP: {
	qx{mandoc -V};

	if ($? != 0) {
		diag('mandoc not installed, test skipped. This is NOT fatal.');
		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");
	}
}

{'fraction_non_alphanumeric': 0.21019108280254778, 'fraction_numerical': 0.025477707006369428, 'mean_word_length': 3.5964912280701755, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6666675', 'n_tokens_mistral': 350, 'n_tokens_neox': 324, 'n_words': 92}