Perl-Toolchain-Gang / Software-License

perl representation of common software licenses
18 stars 40 forks source link

tests fail when additional license modules are installed #57

Open karenetheridge opened 7 years ago

karenetheridge commented 7 years ago

Software::License::GPL_3_plus does not exist in this distribution; it appears to be installed in my system already. The tests should not fail when extra license modules exist.

--> Working on Software::License
Fetching http://mirrors.gossamer-threads.com/CPAN/authors/id/R/RJ/RJBS/Software-License-0.103012.tar.gz
-> OK
Unpacking Software-License-0.103012.tar.gz
Entering Software-License-0.103012
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.24)
Configuring Software-License-0.103012
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Software::License
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Try::Tiny 0 ... Yes (0.28)
Checking if you have warnings 0 ... Yes (1.12)
Checking if you have parent 0 ... Yes (0.232)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.24)
Checking if you have File::Spec 0 ... Yes (3.62)
Checking if you have Data::Section 0 ... Yes (0.101621)
Checking if you have Carp 0 ... Yes (1.36)
Checking if you have Test::More 0.96 ... Yes (1.001014)
Checking if you have strict 0 ... Yes (1.04)
Checking if you have Module::Load 0 ... Yes (0.32)
Checking if you have IO::Dir 0 ... Yes (1.08)
Checking if you have Text::Template 0 ... Yes (1.46)
Building and testing Software-License-0.103012
cp lib/Software/License/Apache_2_0.pm blib/lib/Software/License/Apache_2_0.pm
cp lib/Software/License/Mozilla_1_1.pm blib/lib/Software/License/Mozilla_1_1.pm
cp lib/Software/License/OpenSSL.pm blib/lib/Software/License/OpenSSL.pm
cp lib/Software/License/GFDL_1_2.pm blib/lib/Software/License/GFDL_1_2.pm
cp lib/Software/License/GPL_3.pm blib/lib/Software/License/GPL_3.pm
cp lib/Software/License/BSD.pm blib/lib/Software/License/BSD.pm
cp lib/Software/License/QPL_1_0.pm blib/lib/Software/License/QPL_1_0.pm
cp lib/Software/License/Artistic_1_0.pm blib/lib/Software/License/Artistic_1_0.pm
cp lib/Software/License/GFDL_1_3.pm blib/lib/Software/License/GFDL_1_3.pm
cp lib/Software/License.pm blib/lib/Software/License.pm
cp lib/Software/License/SSLeay.pm blib/lib/Software/License/SSLeay.pm
cp lib/Software/License/Mozilla_2_0.pm blib/lib/Software/License/Mozilla_2_0.pm
cp lib/Software/License/MIT.pm blib/lib/Software/License/MIT.pm
cp lib/Software/License/CC0_1_0.pm blib/lib/Software/License/CC0_1_0.pm
cp lib/Software/LicenseUtils.pm blib/lib/Software/LicenseUtils.pm
cp lib/Software/License/Custom.pm blib/lib/Software/License/Custom.pm
cp lib/Software/License/GPL_1.pm blib/lib/Software/License/GPL_1.pm
cp lib/Software/License/GPL_2.pm blib/lib/Software/License/GPL_2.pm
cp lib/Software/License/Zlib.pm blib/lib/Software/License/Zlib.pm
cp lib/Software/License/LGPL_3_0.pm blib/lib/Software/License/LGPL_3_0.pm
cp lib/Software/License/Mozilla_1_0.pm blib/lib/Software/License/Mozilla_1_0.pm
cp lib/Software/License/FreeBSD.pm blib/lib/Software/License/FreeBSD.pm
cp lib/Software/License/None.pm blib/lib/Software/License/None.pm
cp lib/Software/License/Apache_1_1.pm blib/lib/Software/License/Apache_1_1.pm
cp lib/Software/License/Artistic_2_0.pm blib/lib/Software/License/Artistic_2_0.pm
cp lib/Software/License/Sun.pm blib/lib/Software/License/Sun.pm
cp lib/Software/License/PostgreSQL.pm blib/lib/Software/License/PostgreSQL.pm
cp lib/Software/License/Perl_5.pm blib/lib/Software/License/Perl_5.pm
cp lib/Software/License/LGPL_2_1.pm blib/lib/Software/License/LGPL_2_1.pm
cp lib/Software/License/AGPL_3.pm blib/lib/Software/License/AGPL_3.pm
Manifying 30 pod documents
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/basic.t ................... ok
t/bsd-url.t ................. ok
t/custom.t .................. ok
# 
# Versions for all modules listed in MYMETA.json (including optional ones):
# 
# === Configure Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.24
# 
# === Build Requires ===
# 
#     Module              Want Have
#     ------------------- ---- ----
#     ExtUtils::MakeMaker  any 7.24
# 
# === Test Requires ===
# 
#     Module              Want     Have
#     ------------------- ---- --------
#     ExtUtils::MakeMaker  any     7.24
#     File::Spec           any     3.62
#     Test::More          0.96 1.001014
#     Try::Tiny            any     0.28
# 
# === Test Recommends ===
# 
#     Module         Want     Have
#     ---------- -------- --------
#     CPAN::Meta 2.120900 2.150010
# 
# === Runtime Requires ===
# 
#     Module         Want     Have
#     -------------- ---- --------
#     Carp            any     1.36
#     Data::Section   any 0.101621
#     File::Spec      any     3.62
#     IO::Dir         any     1.08
#     Module::Load    any     0.32
#     Text::Template  any     1.46
#     parent          any    0.232
#     strict          any     1.04
#     warnings        any     1.12
# 
t/00-report-prereqs.t ....... ok
t/guess_license_from_pod.t .. ok
t/creative_commons.t ........ skipped: requires Software::License::CCpack to test this
t/meta-names.t .............. ok

#   Failed test at t/guess_meta_license.t line 57.
#     Structures begin differing at:
#          $got->[1] = 'Software::License::GPL_3_plus'
#     $expected->[1] = Does not exist
# Looks like you failed 1 test of 26.
t/guess_meta_license.t ...... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/26 subtests 
t/round-trip.t .............. ok
t/two-dots.t ................ ok
t/short_name.t .............. ok

#   Failed test 'guessed okay'
#   at t/utils.t line 123.
#     Structures begin differing at:
#          $got->[1] = 'Software::License::GPL_1_plus'
#     $expected->[1] = 'Software::License::GPL_2'
# Looks like you failed 1 test of 5.
t/utils.t ................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests 

Test Summary Report
-------------------
t/guess_meta_license.t    (Wstat: 256 Tests: 26 Failed: 1)
  Failed test:  25
  Non-zero exit status: 1
t/utils.t                 (Wstat: 256 Tests: 5 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
Files=12, Tests=178,  6 wallclock secs ( 0.16 usr  0.01 sys +  1.58 cusr  5.88 csys =  7.63 CPU)
Result: FAIL
Failed 2/12 test programs. 2/178 subtests failed.
make: *** [test_dynamic] Error 1
-> FAIL Installing Software::License failed. See /home/vagrant/.cpanm/work/1488304688.18380/build.log for details. Retry with --force to force install it.