[gdome] XML::GDOME tests failure



Luca Padovani wrote:

> On Tue, 2005-07-12 at 10:19 +0200, Gerrit P. Haase wrote:
>
>>getting this:
>>
>>$ gdome-config --version
>>0.8.1
>
> [...]
>
> gdome-config is deprecated, use pkg-config instead, like this:
>
> pkg-config gdome2 --cflags
>   -I/usr/include/libgdome -I/usr/include/glib-2.0
>   -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
>
> pkg-config gdome2 --libs
>   -lgdome -lglib-2.0 -lxml2 -lpthread -lz -lm
>
> Cheers,
> --luca


Anyway, after changing Makefile.PL to use pgk-config it compiles
ok, but make test fails:

$ make test
/usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/01_basic...........ok 1/9# Failed test 6 in t/01_basic.t at line 44

#  t/01_basic.t line 44 is: ok($@ =~ m!NAMESPACE_ERR!);
t/01_basic...........FAILED test 6

        Failed 1/9 tests, 88.89% okay
t/02_cdata...........Can't locate XML/GDOME.pm in @INC (@INC contains:
/usr/lib/perl5/5.8/cygwin /usr/lib/perl5/5.8
/usr/lib/perl5/site_perl/5.8/cygwin /usr/lib/perl5/site_perl/5.8
/usr/lib/perl5/site_perl/5.8 /usr/lib/perl5/vendor_perl/5.8/cygwin
/usr/lib/perl5/vendor_perl/5.8 /usr/lib/perl5/vendor_perl/5.8 .) at
t/02_cdata.t line 4.
BEGIN failed--compilation aborted at t/02_cdata.t line 4.
# Failed test 1 in t/02_cdata.t at line 3
#  t/02_cdata.t line 3 is: END { ok(0) unless $loaded }
t/02_cdata...........dubious

        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-17
        Failed 17/17 tests, 0.00% okay
[...]
Failed Test         Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------------------------------
t/01_basic.t                       9    1  11.11%  6
t/02_cdata.t           2   512    17   33 194.12%  1-17
t/04_dtd.t             2   512    18   35 194.44%  1-18
t/06_namednodemap.t    2   512   102  203 199.02%  1-102
t/08_xpath.t           2   512    18   35 194.44%  1-18
t/09_sax.t                        33    1   3.03%  20
t/10_callbacks.t       2   512    38   75 197.37%  1-38
t/11_encode.t                      5    1  20.00%  5
Failed 8/11 test scripts, 27.27% okay. 196/349 subtests failed, 43.84% okay.
make: *** [test_dynamic] Error 14


Even after installing the extension there are tests failing:

$ make test
/usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/01_basic...........ok 1/9# Failed test 6 in t/01_basic.t at line 44

#  t/01_basic.t line 44 is: ok($@ =~ m!NAMESPACE_ERR!);
t/01_basic...........FAILED test 6

        Failed 1/9 tests, 88.89% okay
t/02_cdata...........ok

t/03_document........ok

t/04_dtd.............ok

t/05_element.........ok

t/06_namednodemap....ok

t/07_node............ok

t/08_xpath...........dubious

        Test returned status 0 (wstat 139, 0x8b)
        after all the subtests completed successfully
t/09_sax.............ok 1/33Argument "" isn't numeric in numeric ne (!=)
at /home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n    " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n      " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "1 or 2" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n      " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "Cranky" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n    " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n    " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n      " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "1 (sort of)" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n      " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "Aloof" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n    " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n    " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n      " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "(see Llama)" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n      " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "Friendly" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n    " isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
Argument "\n" isn't numeric in numeric ne (!=) at
/home/gerrit/.cpan/build/XML-GDOME-0.86/blib/lib/XML/GDOME.pm line 419.
# Test 20 got: "<?xml version=\"1.0\"?>\n<dromedaries><species
name=\"Camel\"><humps>1 or 2</humps><disposition/></species><species
name=\"Llama\"><humps>1 (sort
of)</humps><disposition/></species><species
name=\"Alpaca\"><humps/><disposition/></species></dromedaries>\n"
(t/09_sax.t at line 31)
#    Expected: "<?xml version=\"1.0\"?>\n<dromedaries>\n    <species
name=\"Camel\">\n      <humps>1 or 2</humps>\n
<disposition>Cranky</disposition>\n    </species>\n    <species
name=\"Llama\">\n      <humps>1 (sort of)</humps>\n
<disposition>Aloof</disposition>\n    </species>\n    <species
name=\"Alpaca\">\n      <humps>(see Llama)</humps>\n
<disposition>Friendly</disposition>\n    </species>\n</dromedaries>\n"
#      (Install the Algorithm::Diff module to have differences in multiline
#       output explained.  You might also set the PERL_TEST_DIFF environment
#       variable to run a diff program on the output.)
#  t/09_sax.t line 31 is: ok($dom2->toString, $str);
t/09_sax.............FAILED test 20

        Failed 1/33 tests, 96.97% okay
t/10_callbacks.......ok

t/11_encode..........# Failed test 5 in t/11_encode.t at line 41
#  t/11_encode.t line 41 is: ok( length( $@ ) );
t/11_encode..........FAILED test 5

        Failed 1/5 tests, 80.00% okay
Failed Test   Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------------------------------
t/01_basic.t                 9    1  11.11%  6
t/08_xpath.t     0   139    18    0   0.00%  ??
t/09_sax.t                  33    1   3.03%  20
t/11_encode.t                5    1  20.00%  5
Failed 4/11 test scripts, 63.64% okay. 3/349 subtests failed, 99.14% okay.
make: *** [test_dynamic] Error 14


It seems that XML::GDOME needs some work?


Gerrit



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]