Debian Codegraph @

check_rbl/src/t/02_codespell.t

raw
1 #!/usr/bin/env perl
2
3 use strict;
4 use warnings;
5 use Test::More;
6
7 # Ensure codespell is available
8 my $codespell = `which codespell`;
9 if (!$codespell) {
10 plan skip_all => 'codespell is not installed';
11 exit;
12 }
13
14 # Run codespell
15 my $output = `codespell 2>&1`;
16 if ($? == 0) {
17 pass('No spelling errors found by codespell');
18 } else {
19 fail('Spelling errors found by codespell');
20 diag($output);
21 }
22
23 done_testing();