Skip Menu |

This queue is for tickets about the Device-USB CPAN distribution.

Report information
The Basics
Id: 28068
Status: resolved
Priority: 0/
Queue: Device-USB

People
Owner: Nobody in particular
Requestors: robo4288 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Tests fail on Mac OS X
I would like to help with this module on Mac OS X. Unfortunately, I'm not familiar with libusb but I'm willing to learn. Here is the output of the make test: PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00-load.........................ok 1/1# Testing Device::USB 0.21, Perl 5.008008, /opt/local/bin/ perl t/00-load.........................ok t/01-create-usb...................ok t/02-find_busses_devices..........ok t/03-list_busses..................dubious Test returned status 0 (wstat 10, 0xa) t/04-find_device..................dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 4-8 Failed 5/8 tests, 37.50% okay t/05-find_device_if...............dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-11 Failed 9/11 tests, 18.18% okay t/06-list_devices.................dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-8 Failed 6/8 tests, 25.00% okay t/07-list_devices_if..............dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 5-11 Failed 7/11 tests, 36.36% okay t/08-get_busses...................dubious Test returned status 0 (wstat 10, 0xa) t/09-usb-bus......................dubious Test returned status 0 (wstat 10, 0xa) t/10-usb-device-accessors.........dubious Test returned status 0 (wstat 10, 0xa) t/11-usb-device-methods...........ok t/12-constants....................ok t/13-bus_find_device_if...........dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 2-11 Failed 10/11 tests, 9.09% okay t/14-bus_list_devices_if..........dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 2-11 Failed 10/11 tests, 9.09% okay t/15-usb_dev_configuration........dubious Test returned status 0 (wstat 10, 0xa) t/16-usb_dev_interface............dubious Test returned status 0 (wstat 10, 0xa) t/17-usb_dev_endpoint.............dubious Test returned status 0 (wstat 10, 0xa) t/18-usb_device-configurations....dubious Test returned status 0 (wstat 10, 0xa) t/boilerplate.....................ok t/pod-coverage....................ok t/pod.............................ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/03-list_busses.t 0 10 ?? ?? ?? t/04-find_device.t 0 10 8 10 4-8 t/05-find_device_if.t 0 10 11 18 3-11 t/06-list_devices.t 0 10 8 12 3-8 t/07-list_devices_if.t 0 10 11 14 5-11 t/08-get_busses.t 0 10 ?? ?? ?? t/09-usb-bus.t 0 10 ?? ?? ?? t/10-usb-device-accessors.t 0 10 ?? ?? ?? t/13-bus_find_device_if.t 0 10 11 20 2-11 t/14-bus_list_devices_if.t 0 10 11 20 2-11 t/15-usb_dev_configuration.t 0 10 ?? ?? ?? t/16-usb_dev_interface.t 0 10 ?? ?? ?? t/17-usb_dev_endpoint.t 0 10 ?? ?? ?? t/18-usb_device-configurations.t 0 10 ?? ?? ?? Failed 14/22 test scripts. 42/104 subtests failed. Files=22, Tests=104, 9 wallclock secs ( 2.12 cusr + 1.92 csys = 4.04 CPU) Failed 14/22 test programs. 42/104 subtests failed. make: *** [test_dynamic] Error 255
Subject: Re: [rt.cpan.org #28068] Tests fail on Mac OS X
Date: Tue, 10 Jul 2007 07:16:44 -0500
To: bug-Device-USB [...] rt.cpan.org
From: "G. Wade Johnson" <wade [...] anomaly.org>
On Mon, 09 Jul 2007 15:58:08 -0400 "Robert Boone via RT" <bug-Device-USB@rt.cpan.org> wrote: Show quoted text
> > Mon Jul 09 15:58:07 2007: Request 28068 was acted upon. > Transaction: Ticket created by rboone3 > Queue: Device-USB > Subject: Tests fail on Mac OS X > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: robo4288@gmail.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=28068 > > > > I would like to help with this module on Mac OS X. Unfortunately, I'm > not familiar with libusb but I'm willing to learn. Here is the output > of the make test: > > PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00-load.........................ok 1/1# Testing Device::USB 0.21, > Perl 5.008008, /opt/local/bin/ perl > t/00-load.........................ok > t/01-create-usb...................ok > t/02-find_busses_devices..........ok > t/03-list_busses..................dubious > Test returned status 0 (wstat 10, 0xa) > t/04-find_device..................dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 4-8 > Failed 5/8 tests, 37.50% okay > t/05-find_device_if...............dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 3-11 > Failed 9/11 tests, 18.18% okay > t/06-list_devices.................dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 3-8 > Failed 6/8 tests, 25.00% okay > t/07-list_devices_if..............dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 5-11 > Failed 7/11 tests, 36.36% okay > t/08-get_busses...................dubious > Test returned status 0 (wstat 10, 0xa) > t/09-usb-bus......................dubious > Test returned status 0 (wstat 10, 0xa) > t/10-usb-device-accessors.........dubious > Test returned status 0 (wstat 10, 0xa) > t/11-usb-device-methods...........ok > t/12-constants....................ok > t/13-bus_find_device_if...........dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 2-11 > Failed 10/11 tests, 9.09% okay > t/14-bus_list_devices_if..........dubious > Test returned status 0 (wstat 10, 0xa) > DIED. FAILED tests 2-11 > Failed 10/11 tests, 9.09% okay > t/15-usb_dev_configuration........dubious > Test returned status 0 (wstat 10, 0xa) > t/16-usb_dev_interface............dubious > Test returned status 0 (wstat 10, 0xa) > t/17-usb_dev_endpoint.............dubious > Test returned status 0 (wstat 10, 0xa) > t/18-usb_device-configurations....dubious > Test returned status 0 (wstat 10, 0xa) > t/boilerplate.....................ok > t/pod-coverage....................ok > t/pod.............................ok > Failed Test Stat Wstat Total Fail List of Failed > ------------------------------------------------------------------------------- > t/03-list_busses.t 0 10 ?? ?? ?? > t/04-find_device.t 0 10 8 10 4-8 > t/05-find_device_if.t 0 10 11 18 3-11 > t/06-list_devices.t 0 10 8 12 3-8 > t/07-list_devices_if.t 0 10 11 14 5-11 > t/08-get_busses.t 0 10 ?? ?? ?? > t/09-usb-bus.t 0 10 ?? ?? ?? > t/10-usb-device-accessors.t 0 10 ?? ?? ?? > t/13-bus_find_device_if.t 0 10 11 20 2-11 > t/14-bus_list_devices_if.t 0 10 11 20 2-11 > t/15-usb_dev_configuration.t 0 10 ?? ?? ?? > t/16-usb_dev_interface.t 0 10 ?? ?? ?? > t/17-usb_dev_endpoint.t 0 10 ?? ?? ?? > t/18-usb_device-configurations.t 0 10 ?? ?? ?? > Failed 14/22 test scripts. 42/104 subtests failed. > Files=22, Tests=104, 9 wallclock secs ( 2.12 cusr + 1.92 csys = > 4.04 CPU) Failed 14/22 test programs. 42/104 subtests failed. > make: *** [test_dynamic] Error 255
Each of the tests appears to fail the first time it actually talks to libusb. We might need to check that the .so is available. Also running the tests directly might help give more information. G. Wade -- They made a very satisfying thump when they hit the floor. -- G'Kar - "A Late Delivery from Avalon"
From: robo4288 [...] gmail.com
Show quoted text
> Each of the tests appears to fail the first time it actually talks to > libusb. We might need to check that the .so is available. Also running > the tests directly might help give more information. > > G. Wade
Here are the tests run one by one. They start to fail at test 03-list_busses.t: monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/00-load.t t/00-load....1..1 ok 1 - use Device::USB; # Testing Device::USB 0.21, Perl 5.008008, /opt/local/bin/perl ok All tests successful. Files=1, Tests=1, 1 wallclock secs ( 0.06 cusr + 0.02 csys = 0.08 CPU) monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/01-create-usb.t t/01-create-usb....1..2 ok 1 - Object successfully created ok 2 - The object isa Device::USB ok All tests successful. Files=1, Tests=2, 0 wallclock secs ( 0.06 cusr + 0.02 csys = 0.08 CPU) monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/02-find_busses_devices.t t/02-find_busses_devices....1..4 ok 1 - Object successfully created ok 2 - Device::USB->can(...) ok 3 - No bus changes since last call. ok 4 - No device changes since last call. ok All tests successful. Files=1, Tests=4, 0 wallclock secs ( 0.12 cusr + 0.17 csys = 0.29 CPU) monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/03-list_busses.t t/03-list_busses....ok 1 - Object successfully created ok 2 - Device::USB->can('list_busses') dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/04-find_device.t t/04-find_device....1..8 ok 1 - Object successfully created ok 2 - Device::USB->can('find_device') ok 3 - No device found dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 4-8 Failed 5/8 tests, 37.50% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/04-find_device.t 0 10 8 10 4-8 Failed 1/1 test scripts. 5/8 subtests failed. Files=1, Tests=8, 1 wallclock secs ( 0.11 cusr + 0.16 csys = 0.27 CPU) Failed 1/1 test programs. 5/8 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/05-find_device_if.t t/05-find_device_if....1..11 ok 1 - Object successfully created ok 2 - Device::USB->can('find_device_if') dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-11 Failed 9/11 tests, 18.18% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/05-find_device_if.t 0 10 11 18 3-11 Failed 1/1 test scripts. 9/11 subtests failed. Files=1, Tests=11, 1 wallclock secs ( 0.10 cusr + 0.12 csys = 0.22 CPU) Failed 1/1 test programs. 9/11 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/06-list_devices.t t/06-list_devices....1..8 ok 1 - Object successfully created ok 2 - Device::USB->can('list_devices') dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-8 Failed 6/8 tests, 25.00% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/06-list_devices.t 0 10 8 12 3-8 Failed 1/1 test scripts. 6/8 subtests failed. Files=1, Tests=8, 1 wallclock secs ( 0.10 cusr + 0.12 csys = 0.22 CPU) Failed 1/1 test programs. 6/8 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/07-list_devices_if.t t/07-list_devices_if....1..11 ok 1 - Object successfully created ok 2 - Device::USB->can('list_devices_if') ok 3 - Requires a predicate. ok 4 - Requires a code reference. dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 5-11 Failed 7/11 tests, 36.36% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/07-list_devices_if.t 0 10 11 14 5-11 Failed 1/1 test scripts. 7/11 subtests failed. Files=1, Tests=11, 1 wallclock secs ( 0.10 cusr + 0.12 csys = 0.22 CPU) Failed 1/1 test programs. 7/11 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/08-get_busses.t t/08-get_busses....ok 1 - Object successfully created ok 2 - Device::USB->can('get_busses') dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/08-get_busses.t t/08-get_busses....ok 1 - Object successfully created ok 2 - Device::USB->can('get_busses') dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/09-usb-bus.t t/09-usb-bus....ok 1 - Object successfully created dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen
From: robo4288 [...] gmail.com
Show quoted text
> Each of the tests appears to fail the first time it actually talks to > libusb. We might need to check that the .so is available. Also running > the tests directly might help give more information. > > G. Wade
Here are the tests run one by one. They start to fail at test 03-list_busses.t: monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/00-load.t t/00-load....1..1 ok 1 - use Device::USB; # Testing Device::USB 0.21, Perl 5.008008, /opt/local/bin/perl ok All tests successful. Files=1, Tests=1, 1 wallclock secs ( 0.06 cusr + 0.02 csys = 0.08 CPU) monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/01-create-usb.t t/01-create-usb....1..2 ok 1 - Object successfully created ok 2 - The object isa Device::USB ok All tests successful. Files=1, Tests=2, 0 wallclock secs ( 0.06 cusr + 0.02 csys = 0.08 CPU) monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/02-find_busses_devices.t t/02-find_busses_devices....1..4 ok 1 - Object successfully created ok 2 - Device::USB->can(...) ok 3 - No bus changes since last call. ok 4 - No device changes since last call. ok All tests successful. Files=1, Tests=4, 0 wallclock secs ( 0.12 cusr + 0.17 csys = 0.29 CPU) monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/03-list_busses.t t/03-list_busses....ok 1 - Object successfully created ok 2 - Device::USB->can('list_busses') dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/04-find_device.t t/04-find_device....1..8 ok 1 - Object successfully created ok 2 - Device::USB->can('find_device') ok 3 - No device found dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 4-8 Failed 5/8 tests, 37.50% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/04-find_device.t 0 10 8 10 4-8 Failed 1/1 test scripts. 5/8 subtests failed. Files=1, Tests=8, 1 wallclock secs ( 0.11 cusr + 0.16 csys = 0.27 CPU) Failed 1/1 test programs. 5/8 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/05-find_device_if.t t/05-find_device_if....1..11 ok 1 - Object successfully created ok 2 - Device::USB->can('find_device_if') dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-11 Failed 9/11 tests, 18.18% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/05-find_device_if.t 0 10 11 18 3-11 Failed 1/1 test scripts. 9/11 subtests failed. Files=1, Tests=11, 1 wallclock secs ( 0.10 cusr + 0.12 csys = 0.22 CPU) Failed 1/1 test programs. 9/11 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/06-list_devices.t t/06-list_devices....1..8 ok 1 - Object successfully created ok 2 - Device::USB->can('list_devices') dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 3-8 Failed 6/8 tests, 25.00% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/06-list_devices.t 0 10 8 12 3-8 Failed 1/1 test scripts. 6/8 subtests failed. Files=1, Tests=8, 1 wallclock secs ( 0.10 cusr + 0.12 csys = 0.22 CPU) Failed 1/1 test programs. 6/8 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/07-list_devices_if.t t/07-list_devices_if....1..11 ok 1 - Object successfully created ok 2 - Device::USB->can('list_devices_if') ok 3 - Requires a predicate. ok 4 - Requires a code reference. dubious Test returned status 0 (wstat 10, 0xa) DIED. FAILED tests 5-11 Failed 7/11 tests, 36.36% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/07-list_devices_if.t 0 10 11 14 5-11 Failed 1/1 test scripts. 7/11 subtests failed. Files=1, Tests=11, 1 wallclock secs ( 0.10 cusr + 0.12 csys = 0.22 CPU) Failed 1/1 test programs. 7/11 subtests failed. monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/08-get_busses.t t/08-get_busses....ok 1 - Object successfully created ok 2 - Device::USB->can('get_busses') dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/08-get_busses.t t/08-get_busses....ok 1 - Object successfully created ok 2 - Device::USB->can('get_busses') dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen monk:~/projects/Device-USB-0.21 robert$ prove -Iblib -v t/09-usb-bus.t t/09-usb-bus....ok 1 - Object successfully created dubious Test returned status 0 (wstat 10, 0xa) FAILED--1 test script could be run, alas--no output ever seen
From: perl [...] rainboxx.de
Is there already a solution which is not posted here? I jave the same problem with the newest MacOS X on a MacBook Air. If I run the script dump_usb.pl without parameters (just for testing) it says "Bus error". Nothing more. I appreciate any kind of help to resolve this issue! Best regards
From: wade [...] anomaly.org
On Tue May 27 17:36:04 2008, MDIETRICH wrote: Show quoted text
> Is there already a solution which is not posted here? I jave the same > problem with the newest > MacOS X on a MacBook Air. If I run the script dump_usb.pl without > parameters (just for testing) > it says "Bus error". Nothing more.
The person who reported the problem brought his laptop to a user group meeting and we attempted to debug it there. After working on it for a while, we discovered a problem with the libusb library installed on the system. I'll contact him to see if he ever resolved the problem and get back with you. G. Wade
We have had some luck with Mac OSX. The main issue appears to be the libusb that comes installed is not compatible. The trick appears to be to go to libusb at SourceForge and get the latest version from Subversion or CVS. Follow the instructions to compile libusb. Device::USB should now install without any difficulty.