Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests fail on installation #4

Open
ian-kent opened this issue Apr 8, 2014 · 5 comments
Open

Tests fail on installation #4

ian-kent opened this issue Apr 8, 2014 · 5 comments

Comments

@ian-kent
Copy link

ian-kent commented Apr 8, 2014

Install on Ubuntu 13.10 with perl 5.14.2 against memcached 1.4.14

cpanm (App::cpanminus) 1.6933 on perl 5.014002 built for x86_64-linux-gnu-thread-multi
Work directory is /home/iankent/.cpanm/work/1396945718.421
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
!
! Can't write to /usr/local/share/perl/5.14.2 and /usr/local/bin: Installing modules to /home/iankent/perl5
! To turn off this warning, you have to do one of the following:
!   - run me as a root or with --sudo option (to install to /usr/local/share/perl/5.14.2 and /usr/local/bin)
!   - Configure local::lib your existing local::lib in this shell to set PERL_MM_OPT etc.
!   - Install local::lib by running the following commands
!
!         cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
!
Checking if you have ExtUtils::MakeMaker 6.31 ... Yes (6.92)
Checking if you have ExtUtils::Install 1.46 ... Yes (1.56)
Searching Cache::Memcached::AnyEvent on cpanmetadb ...
--> Working on Cache::Memcached::AnyEvent
Fetching http://www.cpan.org/authors/id/D/DM/DMAKI/Cache-Memcached-AnyEvent-0.00021.tar.gz
-> OK
Unpacking Cache-Memcached-AnyEvent-0.00021.tar.gz
Entering Cache-Memcached-AnyEvent-0.00021
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.36 ... Yes (6.92)
Configuring Cache-Memcached-AnyEvent-0.00021
Running Makefile.PL
Cannot determine perl version info from lib/Cache/Memcached/AnyEvent.pm
Warning: prerequisite Test::Memcached 0.00003 not found.
Generating a Unix-style Makefile
Writing Makefile for Cache::Memcached::AnyEvent
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::Requires 0 ... Yes (0.07)
Checking if you have Test::Exception 0 ... Yes (0.32)
Checking if you have AnyEvent 0 ... Yes (7.07)
Checking if you have ExtUtils::MakeMaker 6.36 ... Yes (6.92)
Checking if you have Storable 0 ... Yes (2.27)
Checking if you have String::CRC32 0 ... Yes (1.5)
Checking if you have Test::Memcached 0.00003 ... No
Checking if you have Test::More 0.94 ... Yes (1.001003)
Checking if you have AnyEvent::Socket 0 ... Yes (undef)
Checking if you have AnyEvent::Handle 0 ... Yes (undef)
Checking if you have Task::Weaken 0 ... Yes (1.04)
==> Found dependencies: Test::Memcached
Searching Test::Memcached on cpanmetadb ...
--> Working on Test::Memcached
Fetching http://www.cpan.org/authors/id/D/DM/DMAKI/Test-Memcached-0.00004.tar.gz
-> OK
Unpacking Test-Memcached-0.00004.tar.gz
Entering Test-Memcached-0.00004
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.92)
Configuring Test-Memcached-0.00004
Running Makefile.PL
Cannot determine perl version info from lib/Test/Memcached.pm
Warning: prerequisite Class::Accessor::Lite 0 not found.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Test::Memcached
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Test::More 0.94 ... Yes (1.001003)
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.92)
Checking if you have File::Temp 0 ... Yes (0.22)
Checking if you have IO::Socket::INET 0 ... Yes (1.31)
Checking if you have Time::HiRes 0 ... Yes (1.9726)
Checking if you have Class::Accessor::Lite 0 ... No
Checking if you have Cwd 0 ... Yes (3.40)
==> Found dependencies: Class::Accessor::Lite
Searching Class::Accessor::Lite on cpanmetadb ...
--> Working on Class::Accessor::Lite
Fetching http://www.cpan.org/authors/id/K/KA/KAZUHO/Class-Accessor-Lite-0.06.tar.gz
-> OK
Unpacking Class-Accessor-Lite-0.06.tar.gz
Entering Class-Accessor-Lite-0.06
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.92)
Configuring Class-Accessor-Lite-0.06
Running Makefile.PL
Cannot determine perl version info from lib/Class/Accessor/Lite.pm
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Class::Accessor::Lite
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 6.42 ... Yes (6.92)
Building and testing Class-Accessor-Lite-0.06
cp lib/Class/Accessor/Lite.pm blib/lib/Class/Accessor/Lite.pm
Manifying blib/man3/Class::Accessor::Lite.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/00-base.t t/01-new.t t/02-use.t t/03-use-error.t
t/00-base.t ....... ok
t/01-new.t ........ ok
t/02-use.t ........ ok
t/03-use-error.t .. ok
All tests successful.
Files=4, Tests=26,  1 wallclock secs ( 0.02 usr  0.00 sys +  0.07 cusr  0.00 csys =  0.09 CPU)
Result: PASS
Installing /home/iankent/perl5/lib/perl5/Class/Accessor/Lite.pm
Installing /home/iankent/perl5/man/man3/Class::Accessor::Lite.3pm
Appending installation info to /home/iankent/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod
-> OK
Successfully installed Class-Accessor-Lite-0.06
Installing /home/iankent/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Accessor-Lite-0.06/install.json
Installing /home/iankent/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Accessor-Lite-0.06/MYMETA.json
Building and testing Test-Memcached-0.00004
cp lib/Test/Memcached.pm blib/lib/Test/Memcached.pm
Manifying blib/man3/Test::Memcached.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/001_compile.t .. ok
t/002_basic.t .... ok
All tests successful.
Files=2, Tests=5,  2 wallclock secs ( 0.01 usr  0.01 sys +  0.08 cusr  0.00 csys =  0.10 CPU)
Result: PASS
Installing /home/iankent/perl5/lib/perl5/Test/Memcached.pm
Installing /home/iankent/perl5/man/man3/Test::Memcached.3pm
Appending installation info to /home/iankent/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod
-> OK
Successfully installed Test-Memcached-0.00004
Installing /home/iankent/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Memcached-0.00004/install.json
Installing /home/iankent/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Memcached-0.00004/MYMETA.json
Building and testing Cache-Memcached-AnyEvent-0.00021
cp lib/Cache/Memcached/AnyEvent/Protocol/Text.pm blib/lib/Cache/Memcached/AnyEvent/Protocol/Text.pm
cp lib/Cache/Memcached/AnyEvent/Protocol/Binary.pm blib/lib/Cache/Memcached/AnyEvent/Protocol/Binary.pm
cp lib/Cache/Memcached/AnyEvent/Selector/Traditional.pm blib/lib/Cache/Memcached/AnyEvent/Selector/Traditional.pm
cp lib/Cache/Memcached/AnyEvent.pm blib/lib/Cache/Memcached/AnyEvent.pm
cp lib/Cache/Memcached/AnyEvent/Selector/Ketama.pm blib/lib/Cache/Memcached/AnyEvent/Selector/Ketama.pm
cp lib/Cache/Memcached/AnyEvent/Protocol.pm blib/lib/Cache/Memcached/AnyEvent/Protocol.pm
Manifying blib/man3/Cache::Memcached::AnyEvent.3pm
Manifying blib/man3/Cache::Memcached::AnyEvent::Protocol.3pm
Manifying blib/man3/Cache::Memcached::AnyEvent::Protocol::Binary.3pm
Manifying blib/man3/Cache::Memcached::AnyEvent::Protocol::Text.3pm
Manifying blib/man3/Cache::Memcached::AnyEvent::Selector::Ketama.3pm
Manifying blib/man3/Cache::Memcached::AnyEvent::Selector::Traditional.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/000_compile.t .. ok

    #   Failed test 'Incr no_such_key'
    #   at t/CMAETest/Commands.pm line 82.

    #   Failed test 'Decr'
    #   at t/CMAETest/Commands.pm line 86.
    #          got: '
    # '
    #     expected: '4'

    #   Failed test 'Decr below zero'
    #   at t/CMAETest/Commands.pm line 88.
    #          got: '
    # '
    #     expected: '0'

    #   Failed test 'Decr below zero returns true value'
    #   at t/CMAETest/Commands.pm line 89.
    #          got: '
    # '
    #     expected: '0'
    # Looks like you failed 4 tests of 58.

#   Failed test 't::CMAETest::Commands [Text/Traditional]'
#   at t/run.t line 51.
# Looks like you failed 1 test of 24.
t/run.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/24 subtests 
    (less 12 skipped subtests: 11 okay)

Test Summary Report
-------------------
t/run.t        (Wstat: 256 Tests: 24 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=2, Tests=27, 256 wallclock secs ( 0.05 usr  0.00 sys +  0.36 cusr  0.11 csys =  0.52 CPU)
Result: FAIL
Failed 1/2 test programs. 1/27 subtests failed.
make: *** [test_dynamic] Error 1
-> FAIL Installing Cache::Memcached::AnyEvent failed. See /home/iankent/.cpanm/work/1396945718.421/build.log for details. Retry with --force to force install it.
2 distributions installed
@lestrrat
Copy link
Collaborator

lestrrat commented Apr 8, 2014

For the record:

t/run.t .......... ok    
All tests successful.
Files=2, Tests=75,  2 wallclock secs ( 0.16 usr  0.02 sys +  0.84 cusr  0.23 csys =  1.25 CPU)

perl 5.18.2, and I seem to have memcached 1.4.13

@lestrrat
Copy link
Collaborator

lestrrat commented Apr 8, 2014

http://cpantesters.org/distro/C/Cache-Memcached-AnyEvent.html

Hmm, I see a few FreeBSD failures, but you have Ubuntu. I wonder what it could be...

@ian-kent
Copy link
Author

ian-kent commented Apr 8, 2014

It didn't show up in the paste, but the 'got output on each failure was "^M", possibly line endings?

I'll try against 5.18.2 to see if that makes any difference

@ian-kent
Copy link
Author

ian-kent commented Apr 8, 2014

Just tried against 5.18.2, same error:

cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for x86_64-linux
Work directory is /home/iankent/.cpanm/work/1396948358.2961
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Cache::Memcached::AnyEvent on cpanmetadb ...
--> Working on Cache::Memcached::AnyEvent
Fetching http://www.cpan.org/authors/id/D/DM/DMAKI/Cache-Memcached-AnyEvent-0.00021.tar.gz
-> OK
Unpacking Cache-Memcached-AnyEvent-0.00021.tar.gz
Entering Cache-Memcached-AnyEvent-0.00021
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.36 ... Yes (6.66)
Configuring Cache-Memcached-AnyEvent-0.00021
Running Makefile.PL
Cannot determine perl version info from lib/Cache/Memcached/AnyEvent.pm
Writing Makefile for Cache::Memcached::AnyEvent
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have AnyEvent::Handle 0 ... Yes (undef)
Checking if you have Test::Memcached 0.00003 ... Yes (0.00004)
Checking if you have Test::Requires 0 ... Yes (0.07)
Checking if you have AnyEvent 0 ... Yes (7.07)
Checking if you have Task::Weaken 0 ... Yes (1.04)
Checking if you have AnyEvent::Socket 0 ... Yes (undef)
Checking if you have ExtUtils::MakeMaker 6.36 ... Yes (6.66)
Checking if you have String::CRC32 0 ... Yes (1.5)
Checking if you have Test::More 0.94 ... Yes (1.001003)
Checking if you have Test::Exception 0 ... Yes (0.32)
Checking if you have Storable 0 ... Yes (2.41)
Building and testing Cache-Memcached-AnyEvent-0.00021
cp lib/Cache/Memcached/AnyEvent/Protocol.pm blib/lib/Cache/Memcached/AnyEvent/Protocol.pm
cp lib/Cache/Memcached/AnyEvent/Selector/Ketama.pm blib/lib/Cache/Memcached/AnyEvent/Selector/Ketama.pm
cp lib/Cache/Memcached/AnyEvent/Protocol/Text.pm blib/lib/Cache/Memcached/AnyEvent/Protocol/Text.pm
cp lib/Cache/Memcached/AnyEvent.pm blib/lib/Cache/Memcached/AnyEvent.pm
cp lib/Cache/Memcached/AnyEvent/Protocol/Binary.pm blib/lib/Cache/Memcached/AnyEvent/Protocol/Binary.pm
cp lib/Cache/Memcached/AnyEvent/Selector/Traditional.pm blib/lib/Cache/Memcached/AnyEvent/Selector/Traditional.pm
Manifying blib/man3/Cache::Memcached::AnyEvent::Protocol.3
Manifying blib/man3/Cache::Memcached::AnyEvent::Protocol::Text.3
Manifying blib/man3/Cache::Memcached::AnyEvent.3
Manifying blib/man3/Cache::Memcached::AnyEvent::Protocol::Binary.3
Manifying blib/man3/Cache::Memcached::AnyEvent::Selector::Ketama.3
Manifying blib/man3/Cache::Memcached::AnyEvent::Selector::Traditional.3
PERL_DL_NONLAZY=1 /home/iankent/perl5/perlbrew/perls/perl-5.18.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/000_compile.t .. ok

    #   Failed test 'Incr no_such_key'
    #   at t/CMAETest/Commands.pm line 82.

    #   Failed test 'Decr'
    #   at t/CMAETest/Commands.pm line 86.
    #          got: '
    # '
    #     expected: '4'

    #   Failed test 'Decr below zero'
    #   at t/CMAETest/Commands.pm line 88.
    #          got: '
    # '
    #     expected: '0'

    #   Failed test 'Decr below zero returns true value'
    #   at t/CMAETest/Commands.pm line 89.
    #          got: '
    # '
    #     expected: '0'
    # Looks like you failed 4 tests of 58.

#   Failed test 't::CMAETest::Commands [Text/Traditional]'
#   at t/run.t line 51.
# Looks like you failed 1 test of 24.
t/run.t .......... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/24 subtests 
    (less 12 skipped subtests: 11 okay)

Test Summary Report
-------------------
t/run.t        (Wstat: 256 Tests: 24 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=2, Tests=27, 256 wallclock secs ( 0.05 usr  0.00 sys +  0.40 cusr  0.13 csys =  0.58 CPU)
Result: FAIL
Failed 1/2 test programs. 1/27 subtests failed.
make: *** [test_dynamic] Error 1
-> FAIL Installing Cache::Memcached::AnyEvent failed. See /home/iankent/.cpanm/work/1396948358.2961/build.log for details. Retry with --force to force install it.

Same again, the 'get' response is actually "^M"

@lestrrat
Copy link
Collaborator

lestrrat commented Apr 8, 2014

Hmm. I'm going to have to think about this one, but since I can't reproduce it it's going to be tough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants