pod-spell.t 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #!/usr/bin/perl
  2. #
  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.
  7. #
  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.
  12. #
  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/>.
  15. use strict;
  16. use warnings;
  17. use Test::More;
  18. use Test::Dpkg qw(:needs);
  19. test_needs_author();
  20. test_needs_module('Test::Spelling');
  21. test_needs_command('aspell');
  22. if (qx(aspell dicts) !~ m/en_US/) {
  23. plan skip_all => 'aspell en_US dictionary required for spell checking POD';
  24. }
  25. test_needs_srcdir_switch();
  26. my @files = Test::Dpkg::all_perl_files();
  27. plan tests => scalar @files;
  28. set_spell_cmd('aspell list --encoding UTF-8 -l en_US -p /dev/null');
  29. add_stopwords(<DATA>);
  30. for my $file (@files) {
  31. pod_file_spelling_ok($file);
  32. }
  33. __DATA__
  34. CVS
  35. DSC
  36. Dpkg
  37. IPC
  38. ORed
  39. OpenPGP
  40. XDG
  41. archqual
  42. bzip2
  43. canonicalized
  44. checksum
  45. checksums
  46. cmdline
  47. debian
  48. decompressor
  49. dep
  50. deps
  51. dpkg
  52. dpkg-buildflags
  53. dpkg-checkbuilddeps
  54. dpkg-dev
  55. dpkg-gencontrol
  56. dpkg-parsechangelog
  57. dsc
  58. dup'ed
  59. env
  60. envvar
  61. fieldnames
  62. ge
  63. gettext
  64. hurd
  65. keyrings
  66. le
  67. lzma
  68. multiarch
  69. nocheck
  70. qa
  71. reportfile
  72. rfc822
  73. sig
  74. substvars
  75. unparsed
  76. update-buildflags
  77. xz