beanz / xpl-perl

Perl modules for the xPL Home Automation Protocol
19 stars 12 forks source link

make test fails on debian x86 & raspberry pi #15

Open anno73 opened 10 years ago

anno73 commented 10 years ago

Hi!

I learned about xpl-perl via misterhouse mailing list. Thought I give it a try. Cloned github repo. perl Makefile.PL went fine but some dependencies make went fine. make test gave me some dependencies, lots of errors and finally gets stuck at t/05-listener-anyevent.t test 1. During install I iteratively resolved dependencies for YAML, AnyEvent, a.s.f. and restarted from perl Makefile.PL, just in case.

$ uname -a
Linux opossum 3.9-1-amd64 #1 SMP Debian 3.9.8-1 x86_64 GNU/Linux
-> latest debian testing

As a side note, I get better test results on my Raspberry Pi but it still hangs on last line. Interestingly too, there were different dependencies on the AnyEvent package than on the x86 machine.

$ uname -a
Linux raspi 3.6.11+ #474 PREEMPT Thu Jun 13 17:14:42 BST 2013 armv6l GNU/Linux
-> debian wheezy

Kind regards, Alex.

P.S.: traces of make test from raspi and x86 machine.

x86 $ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-helpers.t .................. ok
t/01-pod.t ...................... ok
t/01-use.t ...................... ok
t/01-xpl-base.t ................. ok
t/01-xpl-interfaces.t ........... ok
t/01-xpl-message.t .............. ok
t/01-xpl-slowmessage.t .......... ok
t/01-xpl-utils.t ................ ok
t/01-xpl-validation.t ........... 1/114
#   Failed test 'Unknown validation created with warnings'
#   at t/01-xpl-validation.t line 218.
#          got: 'Failed to load xPL::Validation::Green: Can't locate xPL/Validation/Green.pm in @INC (you may need to install the xPL::Validation::Green module)'
#     expected: 'Failed to load xPL::Validation::Green: Can't locate xPL/Validation/Green.pm in @INC'
# Looks like you failed 1 test of 114.
t/01-xpl-validation.t ........... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/114 subtests
t/02-message-v.t ................ ok
t/02-message.t .................. ok
t/02-schema-yaml.t .............. ok
t/02-timer.t .................... 1/77
#   Failed test 'testing non-existent Timer type'
#   at t/02-timer.t line 166.
#          got: 'xPL::Timer->new: Failed to load xPL::Timer::testing: Can't locate xPL/Timer/testing.pm in @INC (you may need to install the xPL::Timer::testing module)'
#     expected: 'xPL::Timer->new: Failed to load xPL::Timer::testing: Can't locate xPL/Timer/testing.pm in @INC'
# Looks like you failed 1 test of 77.
t/02-timer.t .................... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/77 subtests
        (less 67 skipped subtests: 9 okay)
t/03-message-errors-v.t ......... ok
t/03-message-errors.t ........... ok
t/03-message-from-payload.t ..... ok
t/03-message-method-maker.t ..... ok
t/04-clock.t .................... ok
t/04-collection-api.t ........... ok
t/04-config.t ................... ok
t/04-hbeat-errors.t ............. ok
t/04-osd-errors.t ............... ok
t/04-queue.t .................... ok
t/05-listener-anyevent.t ........ 1/163 Too late to run CHECK block at /usr/lib/perl5/EV.pm line 123.
RasPi $ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-helpers.t .................. ok
t/01-pod.t ...................... skipped: Test::Pod 1.14 required
t/01-use.t ...................... ok
t/01-xpl-base.t ................. ok
t/01-xpl-interfaces.t ........... ok
t/01-xpl-message.t .............. ok
t/01-xpl-slowmessage.t .......... ok
t/01-xpl-utils.t ................ ok
t/01-xpl-validation.t ........... ok
t/02-message-v.t ................ ok
t/02-message.t .................. ok
t/02-schema-yaml.t .............. ok
t/02-timer.t .................... ok
t/03-message-errors-v.t ......... ok
t/03-message-errors.t ........... ok
t/03-message-from-payload.t ..... ok
t/03-message-method-maker.t ..... ok
t/04-clock.t .................... ok
t/04-collection-api.t ........... ok
t/04-config.t ................... ok
t/04-hbeat-errors.t ............. ok
t/04-osd-errors.t ............... ok
t/04-queue.t .................... ok
t/05-listener-anyevent.t ........ 1/163
mpalyart commented 7 years ago

+1, exact same crash on Raspbian Jessie with a Pi3