Subject: | Various test failures |
1. t/bin/ndproc-Insert.t fails if a non-English locale is active (e.g. LC_ALL=de_DE.UTF-8):
...
# Failed test 'STDERR check for file_absent: [ndproc --module Insert --path {path} --file NotExists.json file_absent.got]'
# at /tmpfs/.cpan-build-cpansand/2018022106/App-NDTools-0.5.1-1/blib/lib/App/NDTools/Test.pm line 52.
# '[2018-02-21 06:34:31 15526 FATAL] Failed to open file 'NotExists.json' (Datei oder Verzeichnis nicht gefunden). Exit 2, ET 0s
# '
# doesn't match '(?^:FATAL] Failed to open file 'NotExists.json' \(No such file or directory\))'
# Looks like you failed 1 test of 3.
# Failed test 'file_absent'
# at t/bin/ndproc-Insert.t line 94.
# Looks like you failed 1 test of 24.
t/bin/ndproc-Insert.t .................
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/24 subtests
...
2. Tests fail if a non-utf-8 locale is active (e.g. an ASCII locale like LC_ALL=C):
... (snipped) ...
# Failed test 'STDERR check for term_grep_utf8_path: [nddiff --grep {"�ек�"} ../../_data/text-utf8.a.json ../../_data/text-utf8.b.json]'
# at /tmpfs/.cpan-build-cpansand/2018022106/App-NDTools-0.5.1-0/blib/lib/App/NDTools/Test.pm line 57.
# got: 'ascii "\xD1" does not map to Unicode at /opt/perl-5.18.4/lib/site_perl/5.18.4/x86_64-linux/Encode.pm line 228.
# '
# expected: ''
# Failed test 'Exit code check for term_grep_utf8_path: [nddiff --grep {"��к�"} ../../_data/text-utf8.a.json ../../_data/text-utf8.b.json]'
# at /tmpfs/.cpan-build-cpansand/2018022106/App-NDTools-0.5.1-0/blib/lib/App/NDTools/Test.pm line 65.
# got: '255'
# expected: '8'
# Looks like you failed 4 tests of 4.
... snipped ...
3. All tests fail if the perl used for building the distribution is not in the user's $PATH, or not appearing in $PATH before the system perl:
...
# Failed test 'STDERR check for noargs: [nddiff]'
# at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/Test.pm line 52.
# 'Can't locate parent.pm in @INC (@INC contains: /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/NDDiff.pm line 5.
# BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/NDDiff.pm line 5.
# Compilation failed in require at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/nddiff line 3.
# '
# doesn't match '(?^:ERROR] At least two arguments expected for diff)'
# Failed test 'Exit code check for noargs: [nddiff]'
# at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/Test.pm line 65.
# got: '2'
# expected: '1'
# Looks like you failed 2 tests of 3.
# Failed test 'noargs'
# at t/bin/nddiff.t line 18.
# Failed test 'STDOUT check for verbose: [nddiff -vv -v4 --verbose --verbose 4 -V]'
# at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/Test.pm line 52.
# ''
# doesn't match '(?^:^\d+\.\d+)'
# Failed test 'STDERR check for verbose: [nddiff -vv -v4 --verbose --verbose 4 -V]'
# at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/Test.pm line 57.
# got: 'Can't locate parent.pm in @INC (@INC contains: /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/arch /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/NDDiff.pm line 5.
# BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/blib/lib/App/NDTools/NDDiff.pm line 5.
# Compilation failed in require at /home/cpansand/.cpan/build/2018022103/App-NDTools-0.5.1-0/nddiff line 3.
# '
# expected: ''
... (etc) ...
An overview of test reports: http://matrix.cpantesters.org/?dist=App-NDTools+0.5.1