[Ssh-sftp-perl-users] Net::SSH2 and libssh2-0.17: Tests fail
Brought to you by:
dbrobins
From: Heiko J. <ja...@hb...> - 2007-10-30 13:14:32
|
Hi David, hi folks. Just tried to install Net::SSH2 (0.10 from CPAN) on my Solaris 10 / SPARC 64 box with libssh2-0.17 installed. Compiling went fine, "make test" not. Found http://rt.cpan.org/Ticket/Display.html?id=28722 and applied the patch from Roland Lammel which seemed to make the test suite succeed. But then I saw that numerous tests weren't executed. I then edited the test script and provided host, username and password to activate theother tests. That gave me: ~/.cpan/build/Net-SSH2-0.10> make test PERL_DL_NONLAZY=1 /digibib/tools/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/Net-SSH2....ok 1/72 # Failed test 'SFTP session isa Net::SSH2::SFTP' t/Net-SSH2....NOK 37/72# at t/Net-SSH2.t line 113. # SFTP session isn't defined Can't call method "session" on an undefined value at t/Net-SSH2.t line 114. # Looks like you planned 72 tests but only ran 37. # Looks like you failed 1 test of 37 run. # Looks like your test died just after 37. t/Net-SSH2....dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 37-72 Failed 36/72 tests, 50.00% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/Net-SSH2.t 255 65280 72 71 37-72 Failed 1/1 test scripts. 36/72 subtests failed. Files=1, Tests=72, 1 wallclock secs ( 0.34 cusr + 0.04 csys = 0.38 CPU) Failed 1/1 test programs. 36/72 subtests failed. make: *** [test_dynamic] Error 255 The scalar $sftp (initialized as $ssh2->sftp()) in line 112 is actually undefined. The simple sftp examples provided by libssh2-0.17 do work with the same credentials, so I suppose this is a problem related to the refactoring of libssh2 after the release of Net::SSH2 0.10 with Net::SSH2 no longer working corretly (at least concerning SFTP). Would be great if someone could analyse and fix this ;-) Regards Heiko |