thanos1983 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I finally manage to upload my module on CPAN (Net::SNTP::Client).
Although that I tried to verify all test cases would go green before uploading the module, this error came up. I can only assume that is a minor fix since it is not related with the tests that I have written.
Ok then further analysis, of problem replication. I got suggestion of a fellow monk kcott on steps to follow when building a new module ref (Step-by-step: Making the module). Well everything looked good after the make test (locally) got Pass.
Previously I was building the module with h2xs which was creating the same files apart from the /t (Test directory). Before I had one file named NET-SNTP-CLIENT.t where all the test cases where located.
By using the Module::Starter module to build my module, in the /t directory I got 4 files (00-load.t, manifest.t, pod.t, pod-coverage.t). I placed all my test cases inside 00-load.t, I assume this is the correct directory because when I execute make test I get:
Sample of make test:
Skip blib/lib/Net/SNTP/Client.pm (unchanged) PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::H +arness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/l +ib', 'blib/arch')" t/*.t t/00-load.t ....... 1/? # Testing Net::SNTP::Client 0.01, Perl 5.01800 +2, /usr/bin/perl t/00-load.t ....... ok t/manifest.t ...... skipped: Author tests not required for installatio +n t/pod-coverage.t .. skipped: Author tests not required for installatio +n t/pod.t ........... skipped: Author tests not required for installatio +n All tests successful. Files=4, Tests=15, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.11 cusr + 0.01 csys = 0.15 CPU) Result: PASS
Which indicates that all test were OK. But when I uploaded the module I got the following error from 5 different test cases.
Sample of output error:
------------------------------ PROGRAM OUTPUT ------------------------------ Output from '/usr/bin/make test': PERL_DL_NONLAZY=1 "/home/sand/src/perl/repoperls/installed-perls/perl/ +perl-5.10.1/5da8/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness +" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', ' +blib/arch')" t/*.t Type of arg 1 to keys must be hash (not private variable) at t/00-load +.t line 95, near "$hashRefOutput;" Execution of t/00-load.t aborted due to compilation errors. # Tests were run but no plan was declared and done_testing() was not s +een. # Looks like your test exited with 255 just after 1. t/00-load.t ....... Dubious, test returned 255 (wstat 65280, 0xff00) All 1 subtests passed t/manifest.t ...... skipped: Author tests not required for installatio +n t/pod-coverage.t .. skipped: Author tests not required for installatio +n t/pod.t ........... skipped: Author tests not required for installatio +n Test Summary Report ------------------- t/00-load.t (Wstat: 65280 Tests: 1 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=4, Tests=1, 0 wallclock secs ( 0.03 usr 0.02 sys + 0.09 cusr + 0.02 csys = 0.16 CPU) Result: FAIL Failed 1/4 test programs. 0/1 subtests failed. Makefile:818: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255
After searching on the web I only found this PAUSE problem. Unfortunately I can get that much of information out of it. The error looks the same, and from what I see someone did create a ticket on how to solve it.
From PAUSE problem
I was getting the above errors on Debian 6.0. It worked for me after applying the patch.
Does anyone has an idea how to fix this problem? I just download the module from CPAN and install it locally (LinuxOS) seems I did not got any errors.
Thank you everyone for your time and effort.
|
|---|