Release 1.22.6
[dpkg.git] / t / pod-spell.t
blob5edaa64197b61122a7d2c0fff415311c06475bcf
1 #!/usr/bin/perl
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program. If not, see <https://www.gnu.org/licenses/>.
16 use strict;
17 use warnings;
19 use Test::More;
20 use Test::Dpkg qw(:needs);
22 test_needs_author();
23 test_needs_module('Test::Spelling');
24 test_needs_command('aspell');
26 if (qx(aspell dicts) !~ m/en_US/) {
27 plan skip_all => 'aspell en_US dictionary required for spell checking POD';
30 test_needs_srcdir_switch();
32 my @files = Test::Dpkg::all_perl_files();
34 plan tests => scalar @files;
36 my @aspell_opts = qw(--encoding UTF-8 --lang en_US --personal /dev/null);
37 set_spell_cmd("aspell list @aspell_opts");
38 add_stopwords(<DATA>);
40 for my $file (@files) {
41 pod_file_spelling_ok($file);
44 __DATA__
45 CVS
46 Devuan
47 DSC
48 Dpkg
49 IPC
50 ORed
51 OpenPGP
52 RCS
53 XDG
54 archqual
55 backport
56 buildinfo
57 bzip2
58 bzr
59 canonicalized
60 checksum
61 checksums
62 cmdline
63 debian
64 decompressor
65 dep
66 deps
67 dir
68 dpkg
69 dpkg-buildapi
70 dpkg-buildflags
71 dpkg-buildpackage
72 dpkg-checkbuilddeps
73 dpkg-dev
74 dpkg-genbuildinfo
75 dpkg-genchanges
76 dpkg-gencontrol
77 dpkg-parsechangelog
78 dpkg-mergechangelog
79 dsc
80 dselect
81 dup'ed
82 env
83 envvar
84 fieldnames
85 forceplugin
87 getters
88 gettext
89 hurd
90 keyrings
92 libdir
93 lzma
94 modelines
95 multiarch
96 nocheck
97 objdump
99 quiesced
100 reportfile
101 rfc822
103 substvar
104 substvars
105 unparsed
106 update-buildflags