Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Error in Make Test

    Hello,

    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" );

    SinghTJunior Guest

  2. Similar Questions and Discussions

    1. CPAN make test error with XML::Encoding
      I am trying to install XML::Encoding on my Debian woody system -- kernel 2.2.20 and perl 5.6.1. I am getting an error in CPAN and I do not know...
    2. #39446 [NEW]: "make test" fails Error 138
      From: hakkarainen at cs dot joensuu dot fi Operating system: Solaris 9 PHP version: 5.2.0 PHP Bug Type: Compile Failure Bug...
    3. Math::GMP Make Test error on Itanium running HP-UX 11.23
      I am receiving the following error when I do a make test for Math::GMP 2.04: make test PERL_DL_NONLAZY=1 /opt/perl-5.8/bin/perl...
    4. 'make test' question
      Hi all, Is it possible to have the parent 'make test' process execute some code (more specifically setting environment variables) so that when...
    5. Math::Pari - Solaris 2.8 sparcv9 - make test error
      Although I am able to make pari-2.1.5 with no problems, and Math-Pari-2.010500 seems to build just fine, make test fails. The general error is: ...
  3. #2

    Default Re: Error in Make Test


    "SinghTJunior" <singhtjunior@gmail.com> wrote in message
    ..
    ..
    >
    > [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
    You'll probably get more helpful output by running:
    perl -Mblib t/Net-Download-XMLScripted-XMLScripted.t

    (If you've already proceeded to install the module then there's no need for
    the '-Mblib' switch.)

    Cheers,
    Rob


    Sisyphus Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139