Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

more specifically, 'perl Makefile.PL' runs fine, 'make', runs fine, but 'make test' gives me quite a few errors. and being somewhat unaccustomed to linux, i was hoping someone could point me in the right direction. I'm running Debian, logged in as root, and when i run 'make test TEST_VERBOSE=1', this is what i get:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(1, 'blib/lib', 'blib/arch')" t/*.t t/01timing....1..7 ok 1 - use Device::SerialPort; ok 2 - Device::SerialPort->can('get_tick_count') ok 3 - get_tick_count returns a number ok 4 - sleep sleeps ok 5 - get_tick_count still returns a number ok 6 - measured sleep as more than 1 second ok 7 - measured sleep as less than 2 seconds ok t/test1.......1..174 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 7: could not open port '/dev/ttyS1'. Are permissions correct? not ok 7 dubious Test returned status 6 (wstat 1536, 0x600) DIED. FAILED tests 7-174 Failed 168/174 tests, 3.45% okay t/test2.......1..46 ok 1 can't open file: ttyS1_test.cfg: No such file or directory at t/test2. +t line 90 not ok 2 could not open port from ttyS1_test.cfg dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED tests 2-46 Failed 45/46 tests, 2.17% okay t/test3.......1..159 AltPort import=65535 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 not ok 7 could not open port /dev/ttyS1 dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED tests 7-159 Failed 153/159 tests, 3.77% okay t/test4.......1..341 AltPort import=65535 ok 1 can't open file: ttyS1_test.cfg: No such file or directory at t/test4. +t line 92 not ok 2 could not open port from ttyS1_test.cfg dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED tests 2-341 Failed 340/341 tests, 0.29% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/test1.t 6 1536 174 335 192.53% 7-174 t/test2.t 1 256 46 89 193.48% 2-46 t/test3.t 1 256 159 305 191.82% 7-159 t/test4.t 1 256 341 679 199.12% 2-341 Failed 4/5 test scripts, 20.00% okay. 706/727 subtests failed, 2.89% o +kay. make: *** [test_dynamic] Error 1

Replies are listed 'Best First'.
Re: problems installing Device::SerialPort
by saberworks (Curate) on Aug 29, 2005 at 15:51 UTC
    I can't help you specifically with your problem, but I use Debian on a regular basis and I have much more luck installing the Debian packaged versions of CPAN modules when possible. In this case, you can just:

    apt-get install libdevice-serialport-perl

    And it will take care of dependencies and whatnot for you. And in general, they work (I have never had a failure from a debian package, but I guess it's possible that you might).

Re: problems installing Device::SerialPort
by philcrow (Priest) on Aug 29, 2005 at 15:59 UTC
    Did you write to the module author? Sometimes they have insight into problems.

    Phil

Re: problems installing Device::SerialPort
by Anonymous Monk on Aug 29, 2005 at 16:39 UTC
    i still dont know what the original problem was, but i installed the debian package as suggested...now, i just need to give serial access to another user, seeing as how i don't want to run this script as root. :)

    thanks immensely for the help, it is appreciated.