[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Failing spelling tests



Hi,

when trying to build lintian, I've got a failing test suite as follows:

t/scripts/profiles-coverage.t ............................. ok

#   Failed test 'POD spelling for lib/Lintian/Lab.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     dist

#   Failed test 'POD spelling for lib/Lintian/Util.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     FD
#     PARA
#     fr
#     rm

#   Failed test 'POD spelling for lib/Lintian/Command.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     resp

#   Failed test 'POD spelling for lib/Lintian/Unpacker.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     COLL
#     coll
#     sf

#   Failed test 'POD spelling for lib/Lintian/Collect.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     incl

#   Failed test 'POD spelling for lib/Lintian/CheckScript.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     Abbrev

#   Failed test 'POD spelling for lib/Lintian/Output.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     colorize

#   Failed test 'POD spelling for lib/Lintian/CollScript.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     PKG
#     coll

#   Failed test 'POD spelling for lib/Lintian/Path.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     DD
#     foo

#   Failed test 'POD spelling for lib/Lintian/Architecture.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     exportable

#   Failed test 'POD spelling for lib/Test/Lintian.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     coll
#     pl
t/scripts/static-lab.t .................................... ok

#   Failed test 'POD spelling for doc/tutorial/Lintian/Tutorial/WritingChecks.pod'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     pkg

#   Failed test 'POD spelling for lib/Lintian/Collect/Source.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     orig

#   Failed test 'POD spelling for lib/Lintian/Collect/Binary.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     java
#     pkg

#   Failed test 'POD spelling for lib/Lintian/Lab/Entry.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     COLL

#   Failed test 'POD spelling for lib/Lintian/Lab/ManifestDiff.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     orig

#   Failed test 'POD spelling for lib/Lintian/Relation/Version.pm'
#   at t/scripts/pod-spelling.t line 42.
# Errors:
#     pkg
# 
# All incorrect words, by number of occurrences:
#      1: Abbrev, DD, FD, PARA, PKG, colorize, dist, exportable, foo, fr,
#         incl, java, pl, resp, rm
#      3: sf
#      5: coll, orig, pkg
#      9: COLL
# Looks like you failed 17 tests of 204.
t/scripts/pod-spelling.t .................................. 
Dubious, test returned 17 (wstat 4352, 0x1100)
Failed 17/204 subtests 
t/scripts/translation-check-descs.t ....................... skipped: /home/abe/lintian/lintian/l10n/checks is missing - assuming no translations
t/scripts/unpack-level.t .................................. ok
t/scripts/version.t ....................................... ok
t/scripts/strict.t ........................................ ok

Test Summary Report
-------------------
t/scripts/pod-spelling.t                                (Wstat: 4352 Tests: 204 Failed: 17)
  Failed tests:  105-109, 111-112, 115, 119, 121, 124, 150
                156, 158, 161-162, 171
  Non-zero exit status: 17
Files=68, Tests=17458, 445 wallclock secs ( 2.64 usr  1.15 sys + 357.41 cusr 14.55 csys = 375.75 CPU)
Result: FAIL

I've had similar issues with some Perl packages where we found out
that passing or failing depends on the selected default dictionary for
English. Back then it was US English vs UK English, but here I suspect
maybe the size of the dictionary:

iamerican - American English dictionary for ispell (standard version)
iamerican-huge - American English dictionary for ispell (huge)
iamerican-insane - American English dictionary for ispell (insane version)
iamerican-large - American English dictionary for ispell (large)
iamerican-small - American English dictionary for ispell (small)
wamerican - American English dictionary words for /usr/share/dict
wamerican-huge - American English dictionary words for /usr/share/dict
wamerican-insane - American English dictionary words for /usr/share/dict
wamerican-large - American English dictionary words for /usr/share/dict
wamerican-small - American English dictionary words for /usr/share/dict

(Installed are wamerican and iamerican.)

This is obvious no issue for building in a clean chroot, but annoying
if you do test builds on your local system.

Any ideas how to make the build independent of the installed
dictionary? Maybe running that test only if a specific dictionary
package is installed and the default. And just skipping the test
otherwise.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE


Reply to: