pod-spell.t 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. buildinfo
  43. bzip2
  44. canonicalized
  45. checksum
  46. checksums
  47. cmdline
  48. debian
  49. decompressor
  50. dep
  51. deps
  52. dpkg
  53. dpkg-buildflags
  54. dpkg-checkbuilddeps
  55. dpkg-dev
  56. dpkg-genbuildinfo
  57. dpkg-gencontrol
  58. dpkg-parsechangelog
  59. dsc
  60. dup'ed
  61. env
  62. envvar
  63. fieldnames
  64. ge
  65. gettext
  66. getters
  67. hurd
  68. keyrings
  69. le
  70. lzma
  71. multiarch
  72. nocheck
  73. qa
  74. reportfile
  75. rfc822
  76. sig
  77. substvar
  78. substvars
  79. unparsed
  80. update-buildflags
  81. xz