Error in Make Test
am 30.06.2006 17:09:02 von SinghTJuniorHello,
In the process of executing "make test", an error message is showing.
Following is the command sequence, followed by a copy of the test
script. The perl module is working but the test is resulting in error.
This is a module I am currently working on for open source release. The
test file is very simple, and just checks for the correct instance of
the class.
Has anyone experienced this problem and knows about the solution? Thank
you in advance.
-Sincerely,
Singh T. Junior
The command sequence
perl Makefile.PL
make
make test
is shown here:
[tsingh@zurich XMLScripted]$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Download::XMLScripted::XMLScripted
[tsingh@zurich XMLScripted]$ make
cp lib/Net/Download/XMLScripted/XMLScripted.pm
blib/lib/Net/Download/XMLScripted/XMLScripted.pm
AutoSplitting blib/lib/Net/Download/XMLScripted/XMLScripted.pm
(blib/lib/auto/Net/Download/XMLScripted/XMLScripted)
Manifying blib/man3/Net::Download::XMLScripted::XMLScripted.3pm
[tsingh@zurich XMLScripted]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Net-Download-XMLScripted-XMLScripted....# No tests run!
t/Net-Download-XMLScripted-XMLScripted....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 1-3
Failed 3/3 tests, 0.00% okay
Failed Test Stat Wstat Total Fail Failed List
of Failed
------------------------------------------------------------ -------------------
t/Net-Download-XMLScripted-XMLScr 255 65280 3 6 200.00% 1-3
Failed 1/1 test scripts, 0.00% okay. 3/3 subtests failed, 0.00% okay.
make: *** [test_dynamic] Error 2
************************************************************ ************************************
and here is the test script:
[tsingh@zurich XMLScripted]$ cat
t/Net-Download-XMLScripted-XMLScripted.t
# Before `make install' is performed this script should be runnable
with
# `make test'. After `make install' it should work as `perl
Net-Download-XMLScripted-XMLScripted.t'
#########################
# change 'tests => 1' to 'tests => last_test_to_print';
use Test::More tests => 3;
BEGIN { use_ok('Net::Download::XMLScripted::XMLScripted') };
#########################
# Insert your test code below, the Test::More module is use()ed here so
read
# its man page ( perldoc Test::More ) for help writing this test
script.
# Create XMLScripted Object
my $xmlScripted = Net::Download::XMLScripted::XMLScripted::->new();
ok( defined $xmlScripted, 'new() returned something' );
ok ( $xmlScripted->isa('Net::Download::XMLScripted::XMLScripted') , "
and it's the right class" );