Back
From: Slaven Rezić (SREZIC)
Subject: FAIL Data-Edit-Xml-Lint-20190708 5.30.0 FreeBSD
Date: 2019-07-19T21:29:23Z
This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language. See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org
--
Dear Philip R Brenan,
This is a computer-generated report for Data-Edit-Xml-Lint-20190708
on perl 5.30.0, created by CPAN-Reporter-1.2018.
Thank you for uploading your work to CPAN. However, there was a problem
testing your distribution.
If you think this report is invalid, please consult the CPAN Testers Wiki
for suggestions on how to avoid getting FAIL reports for missing library
or binary dependencies, unsupported operating systems, and so on:
http://wiki.cpantesters.org/wiki/CPANAuthorNotes
Sections of this report:
* Tester comments
* Program output
* Prerequisites
* Environment and other context
------------------------------
TESTER COMMENTS
------------------------------
Additional comments from tester:
none provided
------------------------------
PROGRAM OUTPUT
------------------------------
Output from './Build test':
No files selected at /usr/home/cpansand/.cpan/build/2019070901/Data-Edit-Xml-Lint-20190708-0/blib/lib/Data/Edit/Xml/Lint.pm line 607, <DATA> line 427.
Data::Edit::Xml::Lint::report("out", "xml") called at (eval 56) line 58
eval 'use strict;
use warnings FATAL=>qw(all);
use Test::More;
use Test::SharedFork;
use Data::Edit::Xml;
Test::More->builder->output("/dev/null") # Show only errors during testing
if ((caller(1))[0]//\'Data::Edit::Xml::Lint\') eq "Data::Edit::Xml::Lint";
if ($^O =~ m(bsd|linux)i)
{plan tests => 111;
}
else
{plan skip_all => \'Not supported\';
}
if (qx(xmllint --version 2>&1) !~ m/using libxml/) # Skip tests if xmllint is not installed
{my $n = Test::More->builder->expected_tests;
diag("xmllint not installed - skipping all tests");
ok 1 for 1..$n;
exit 0
}
my $catalog = q(/home/phil/r/dita/dita-ot-3.1/catalog-dita.xml); # Dita catalog to be used for linting.
my $outDir = "out"; # Output directory
clearFolder($outDir, 1e2);
#goto latestTest;
# Test without file reuse
my @lints; # Lints for each test
my %tests; # Tests by title
for my $test(createTests) # Each test within the current project
{my ($project, $source, $target, $additional, $xml) = @$test;
my $x = Data::Edit::Xml::new($xml);
$x->addLabels("C1_${project}_$source","C2_${project}_$source");
my $c = $x->go(qw(conbody));
$c->addLabels("B1_${project}_$source","B2_${project}_$source");
my $lint = Data::Edit::Xml::Lint::new; # Lint each test file
push @lints, [$lint, $test];
$lint->project = $project;
$lint->labels = $x;
$lint->author = \'author@author.com\'; # Author
$lint->catalog = $catalog; # Catalog
$lint->file = filePathExt($outDir, $project.$source, qw(xml)); # Target file
$lint->source = $xml; # Xml source
$lint->guid = my $g = "$project.$source"; # Guid for this topic
$lint->lint(foo=>1); # Write the source to the target file, lint using xmllint, include some attributes to be included as comments at the end of the target file
$tests{$g} = [$lint, @$test]; # Tests
}
ok @lints == 16;
my $report = Data::Edit::Xml::Lint::report($outDir, "xml");
delete $report->{$_} for qw(timestamp print);
is_deeply $report,
{failingFiles => [],
numberOfFiles => 16,
numberOfProjects => 4,
passRatePercent => 100,
projects => {
aaa => ["aaa", 4, 0, 4, 100],
bbb => ["bbb", 4, 0, 4, 100],
ccc => ["ccc", 4, 0, 4, 100],
ddd => ["ddd", 4, 0, 4, 100],
},
} if 0; # Where will we find the DTD\'s required by xmllint?
Data::Edit::Xml::Lint::relint(1, # Reprocess all the files
sub # Analysis sub
{my ($labels, $filesToGuids) = @_; # Link map, files to guids
is_deeply($labels, &labelsInXml);
is_deeply($filesToGuids, &filesToGuidsX);
my $r = resolveFileToGuid($filesToGuids, "out/ddd4.xml"); # Return the unique definition of the specified link in the link map or undef if no such definition exists
ok $r eq "ddd.4";
ok multipleLabelDefsReport($labels) eq "No MultipleLabelOrIdDefinitions";
my $s = singleLabelDefsReport($labels) =~ s(\\n) (N)gsr;
ok $s eq q(SingleLabelOrIdDefinitions (96):N 1 Project LabelN 2 aaa B1_aaa_1N 3 aaa B1_aaa_2N 4 aaa B1_aaa_3N 5 aaa B1_aaa_4N 6 aaa B2_aaa_1N 7 aaa B2_aaa_2N 8 aaa B2_aaa_3N 9 aaa B2_aaa_4N10 aaa C1_aaa_1N11 aaa C1_aaa_2N12 aaa C1_aaa_3N13 aaa C1_aaa_4N14 aaa C2_aaa_1N15 aaa C2_aaa_2N16 aaa C2_aaa_3N17 aaa C2_aaa_4N18 aaa b_aaa_1N19 aaa b_aaa_2N20 aaa b_aaa_3N21 aaa b_aaa_4N22 aaa c_aaa_1N23 aaa c_aaa_2N24 aaa c_aaa_3N25 aaa c_aaa_4N26 bbb B1_bbb_1N27 bbb B1_bbb_2N28 bbb B1_bbb_3N29 bbb B1_bbb_4N30 bbb B2_bbb_1N31 bbb B2_bbb_2N32 bbb B2_bbb_3N33 bbb B2_bbb_4N34 bbb C1_bbb_1N35 bbb C1_bbb_2N36 bbb C1_bbb_3N37 bbb C1_bbb_4N38 bbb C2_bbb_1N39 bbb C2_bbb_2N40 bbb C2_bbb_3N41 bbb C2_bbb_4N42 bbb b_bbb_1N43 bbb b_bbb_2N44 bbb b_bbb_3N45 bbb b_bbb_4N46 bbb c_bbb_1N47 bbb c_bbb_2N48 bbb c_bbb_3N49 bbb c_bbb_4N50 ccc B1_ccc_1N51 ccc B1_ccc_2N52 ccc B1_ccc_3N53 ccc B1_ccc_4N54 ccc B2_ccc_1N55 ccc B2_ccc_2N56 ccc B2_ccc_3N57 ccc B2_ccc_4N58 ccc C1_ccc_1N59 ccc C1_ccc_2N60 ccc C1_ccc_3N61 ccc C1_ccc_4N62 ccc C2_ccc_1N63 ccc C2_ccc_2N64 ccc C2_ccc_3N65 ccc C2_ccc_4N66 ccc b_ccc_1N67 ccc b_ccc_2N68 ccc b_ccc_3N69 ccc b_ccc_4N70 ccc c_ccc_1N71 ccc c_ccc_2N72 ccc c_ccc_3N73 ccc c_ccc_4N74 ddd B1_ddd_1N75 ddd B1_ddd_2N76 ddd B1_ddd_3N77 ddd B1_ddd_4N78 ddd B2_ddd_1N79 ddd B2_ddd_2N80 ddd B2_ddd_3N81 ddd B2_ddd_4N82 ddd C1_ddd_1N83 ddd C1_ddd_2N84 ddd C1_ddd_3N85 ddd C1_ddd_4N86 ddd C2_ddd_1N87 ddd C2_ddd_2N88 ddd C2_ddd_3N89 ddd C2_ddd_4N90 ddd b_ddd_1N91 ddd b_ddd_2N92 ddd b_ddd_3N93 ddd b_ddd_4N94 ddd c_ddd_1N95 ddd c_ddd_2N96 ddd c_ddd_3N97 ddd c_ddd_4N);
1
},
sub # Reprocess sub
{my ($x, $labels, $filesToGuids, $lint) = @_;
my $project = $lint->project;
if (1) # Prove we can resolve links
{my $source = "C1_${project}_1";
my $target = ["out/${project}1.xml", "c_${project}_1"];
my $resolve = [resolveUniqueLink($labels, $source)]; # Return the unique (file, leading id) of the specified link in the link map or () if no such definition exists
is_deeply $target, $resolve;
}
if ($project !~ m(\\Aaaa\\Z)s) # Show that we cannot resolve this link in the other projects
{my $source = "C1_aaa_1";
my $target = ["out/aaa1.xml", "c_aaa_1"];
my ($resolve) = resolveUniqueLink($labels, $source); # Return the unique (file, leading id) of the specified link in the link map or () if no such definition exists
ok !$resolve;
}
is_deeply $filesToGuids, &filesToGuidsX;
1
}, $outDir, "xml");
# Test with file reuse
if (1)
{my $reuseFile = filePathExt($outDir, "aaa1", qw(xml)); # File to reuse in all projects
for my $project(qw(bbb ccc ddd))
{reuseFileInProject($reuseFile, $project); # Reuse this file in all the other projects
}
my $l = Data::Edit::Xml::Lint::read($reuseFile);
is_deeply $l->reusedInProject, ["bbb", "ccc", "ddd"]; # Check reuse has been recorded
}
Data::Edit::Xml::Lint::relint(1, # Reprocess all the files
sub # Analysis sub
{my ($labels, $filesToGuids) = @_; # Link map, files to guids
if (my $a = &labelsInXml)
{$a->{bbb}{B1_aaa_1}[0] = $a->{aaa}{B1_aaa_1}[0];
$a->{bbb}{B2_aaa_1}[0] = $a->{aaa}{B2_aaa_1}[0];
$a->{bbb}{b_aaa_1}[0] = $a->{aaa}{b_aaa_1}[0];
$a->{bbb}{C1_aaa_1}[0] = $a->{aaa}{C1_aaa_1}[0];
$a->{bbb}{C2_aaa_1}[0] = $a->{aaa}{C2_aaa_1}[0];
$a->{bbb}{c_aaa_1}[0] = $a->{aaa}{c_aaa_1}[0];
$a->{ccc}{B1_aaa_1}[0] = $a->{aaa}{B1_aaa_1}[0];
$a->{ccc}{B2_aaa_1}[0] = $a->{aaa}{B2_aaa_1}[0];
$a->{ccc}{b_aaa_1}[0] = $a->{aaa}{b_aaa_1}[0];
$a->{ccc}{C1_aaa_1}[0] = $a->{aaa}{C1_aaa_1}[0];
$a->{ccc}{C2_aaa_1}[0] = $a->{aaa}{C2_aaa_1}[0];
$a->{ccc}{c_aaa_1}[0] = $a->{aaa}{c_aaa_1}[0];
$a->{ddd}{B1_aaa_1}[0] = $a->{aaa}{B1_aaa_1}[0];
$a->{ddd}{B2_aaa_1}[0] = $a->{aaa}{B2_aaa_1}[0];
$a->{ddd}{b_aaa_1}[0] = $a->{aaa}{b_aaa_1}[0];
$a->{ddd}{C1_aaa_1}[0] = $a->{aaa}{C1_aaa_1}[0];
$a->{ddd}{C2_aaa_1}[0] = $a->{aaa}{C2_aaa_1}[0];
$a->{ddd}{c_aaa_1}[0] = $a->{aaa}{c_aaa_1}[0];
is_deeply($labels, $a);
}
is_deeply($filesToGuids, &filesToGuidsX);
my $r = resolveFileToGuid($filesToGuids, "out/ddd4.xml"); # Return the unique definition of the specified link in the link map or undef if no such definition exists
ok $r eq "ddd.4";
ok multipleLabelDefsReport($labels) eq "No MultipleLabelOrIdDefinitions";
},
sub # Reprocess sub
{my ($x, $labels, $filesToGuids, $lint) = @_;
my $project = $lint->project;
if (1)
{my $source = "C1_${project}_1";
my $target = ["out/${project}1.xml", "c_${project}_1"];
my $resolve = [resolveUniqueLink($labels, $source)]; # Return the unique (file, leading id) of the specified link in the link map or () if no such definition exists
is_deeply $target, $resolve;
}
if (1) # Show that we can resolve this link in all projects
{my $source = "C1_aaa_1";
my $target = ["out/aaa1.xml", "c_aaa_1"];
my $resolve = [resolveUniqueLink($labels, $source)]; # Return the unique (file, leading id) of the specified link in the link map or () if no such definition exists
is_deeply $target, $resolve;
}
is_deeply $filesToGuids, &filesToGuidsX;
1
}, $outDir, "xml");
sub filesToGuidsX
{{
"out/aaa1.xml" => "aaa.1",
"out/aaa2.xml" => "aaa.2",
"out/aaa3.xml" => "aaa.3",
"out/aaa4.xml" => "aaa.4",
"out/bbb1.xml" => "bbb.1",
"out/bbb2.xml" => "bbb.2",
"out/bbb3.xml" => "bbb.3",
"out/bbb4.xml" => "bbb.4",
"out/ccc1.xml" => "ccc.1",
"out/ccc2.xml" => "ccc.2",
"out/ccc3.xml" => "ccc.3",
"out/ccc4.xml" => "ccc.4",
"out/ddd1.xml" => "ddd.1",
"out/ddd2.xml" => "ddd.2",
"out/ddd3.xml" => "ddd.3",
"out/ddd4.xml" => "ddd.4",
}}
sub labelsInXml
{{aaa => {
B1_aaa_1 => [["out/aaa1.xml", "b_aaa_1"]],
B1_aaa_2 => [["out/aaa2.xml", "b_aaa_2"]],
B1_aaa_3 => [["out/aaa3.xml", "b_aaa_3"]],
B1_aaa_4 => [["out/aaa4.xml", "b_aaa_4"]],
B2_aaa_1 => [["out/aaa1.xml", "b_aaa_1"]],
B2_aaa_2 => [["out/aaa2.xml", "b_aaa_2"]],
B2_aaa_3 => [["out/aaa3.xml", "b_aaa_3"]],
B2_aaa_4 => [["out/aaa4.xml", "b_aaa_4"]],
b_aaa_1 => [["out/aaa1.xml", "b_aaa_1"]],
b_aaa_2 => [["out/aaa2.xml", "b_aaa_2"]],
b_aaa_3 => [["out/aaa3.xml", "b_aaa_3"]],
b_aaa_4 => [["out/aaa4.xml", "b_aaa_4"]],
C1_aaa_1 => [["out/aaa1.xml", "c_aaa_1"]],
C1_aaa_2 => [["out/aaa2.xml", "c_aaa_2"]],
C1_aaa_3 => [["out/aaa3.xml", "c_aaa_3"]],
C1_aaa_4 => [["out/aaa4.xml", "c_aaa_4"]],
C2_aaa_1 => [["out/aaa1.xml", "c_aaa_1"]],
C2_aaa_2 => [["out/aaa2.xml", "c_aaa_2"]],
C2_aaa_3 => [["out/aaa3.xml", "c_aaa_3"]],
C2_aaa_4 => [["out/aaa4.xml", "c_aaa_4"]],
c_aaa_1 => [["out/aaa1.xml", "c_aaa_1"]],
c_aaa_2 => [["out/aaa2.xml", "c_aaa_2"]],
c_aaa_3 => [["out/aaa3.xml", "c_aaa_3"]],
c_aaa_4 => [["out/aaa4.xml", "c_aaa_4"]],
},
bbb => {
B1_bbb_1 => [["out/bbb1.xml", "b_bbb_1"]],
B1_bbb_2 => [["out/bbb2.xml", "b_bbb_2"]],
B1_bbb_3 => [["out/bbb3.xml", "b_bbb_3"]],
B1_bbb_4 => [["out/bbb4.xml", "b_bbb_4"]],
B2_bbb_1 => [["out/bbb1.xml", "b_bbb_1"]],
B2_bbb_2 => [["out/bbb2.xml", "b_bbb_2"]],
B2_bbb_3 => [["out/bbb3.xml", "b_bbb_3"]],
B2_bbb_4 => [["out/bbb4.xml", "b_bbb_4"]],
b_bbb_1 => [["out/bbb1.xml", "b_bbb_1"]],
b_bbb_2 => [["out/bbb2.xml", "b_bbb_2"]],
b_bbb_3 => [["out/bbb3.xml", "b_bbb_3"]],
b_bbb_4 => [["out/bbb4.xml", "b_bbb_4"]],
C1_bbb_1 => [["out/bbb1.xml", "c_bbb_1"]],
C1_bbb_2 => [["out/bbb2.xml", "c_bbb_2"]],
C1_bbb_3 => [["out/bbb3.xml", "c_bbb_3"]],
C1_bbb_4 => [["out/bbb4.xml", "c_bbb_4"]],
C2_bbb_1 => [["out/bbb1.xml", "c_bbb_1"]],
C2_bbb_2 => [["out/bbb2.xml", "c_bbb_2"]],
C2_bbb_3 => [["out/bbb3.xml", "c_bbb_3"]],
C2_bbb_4 => [["out/bbb4.xml", "c_bbb_4"]],
c_bbb_1 => [["out/bbb1.xml", "c_bbb_1"]],
c_bbb_2 => [["out/bbb2.xml", "c_bbb_2"]],
c_bbb_3 => [["out/bbb3.xml", "c_bbb_3"]],
c_bbb_4 => [["out/bbb4.xml", "c_bbb_4"]],
},
ccc => {
B1_ccc_1 => [["out/ccc1.xml", "b_ccc_1"]],
B1_ccc_2 => [["out/ccc2.xml", "b_ccc_2"]],
B1_ccc_3 => [["out/ccc3.xml", "b_ccc_3"]],
B1_ccc_4 => [["out/ccc4.xml", "b_ccc_4"]],
B2_ccc_1 => [["out/ccc1.xml", "b_ccc_1"]],
B2_ccc_2 => [["out/ccc2.xml", "b_ccc_2"]],
B2_ccc_3 => [["out/ccc3.xml", "b_ccc_3"]],
B2_ccc_4 => [["out/ccc4.xml", "b_ccc_4"]],
b_ccc_1 => [["out/ccc1.xml", "b_ccc_1"]],
b_ccc_2 => [["out/ccc2.xml", "b_ccc_2"]],
b_ccc_3 => [["out/ccc3.xml", "b_ccc_3"]],
b_ccc_4 => [["out/ccc4.xml", "b_ccc_4"]],
C1_ccc_1 => [["out/ccc1.xml", "c_ccc_1"]],
C1_ccc_2 => [["out/ccc2.xml", "c_ccc_2"]],
C1_ccc_3 => [["out/ccc3.xml", "c_ccc_3"]],
C1_ccc_4 => [["out/ccc4.xml", "c_ccc_4"]],
C2_ccc_1 => [["out/ccc1.xml", "c_ccc_1"]],
C2_ccc_2 => [["out/ccc2.xml", "c_ccc_2"]],
C2_ccc_3 => [["out/ccc3.xml", "c_ccc_3"]],
C2_ccc_4 => [["out/ccc4.xml", "c_ccc_4"]],
c_ccc_1 => [["out/ccc1.xml", "c_ccc_1"]],
c_ccc_2 => [["out/ccc2.xml", "c_ccc_2"]],
c_ccc_3 => [["out/ccc3.xml", "c_ccc_3"]],
c_ccc_4 => [["out/ccc4.xml", "c_ccc_4"]],
},
ddd => {
B1_ddd_1 => [["out/ddd1.xml", "b_ddd_1"]],
B1_ddd_2 => [["out/ddd2.xml", "b_ddd_2"]],
B1_ddd_3 => [["out/ddd3.xml", "b_ddd_3"]],
B1_ddd_4 => [["out/ddd4.xml", "b_ddd_4"]],
B2_ddd_1 => [["out/ddd1.xml", "b_ddd_1"]],
B2_ddd_2 => [["out/ddd2.xml", "b_ddd_2"]],
B2_ddd_3 => [["out/ddd3.xml", "b_ddd_3"]],
B2_ddd_4 => [["out/ddd4.xml", "b_ddd_4"]],
b_ddd_1 => [["out/ddd1.xml", "b_ddd_1"]],
b_ddd_2 => [["out/ddd2.xml", "b_ddd_2"]],
b_ddd_3 => [["out/ddd3.xml", "b_ddd_3"]],
b_ddd_4 => [["out/ddd4.xml", "b_ddd_4"]],
C1_ddd_1 => [["out/ddd1.xml", "c_ddd_1"]],
C1_ddd_2 => [["out/ddd2.xml", "c_ddd_2"]],
C1_ddd_3 => [["out/ddd3.xml", "c_ddd_3"]],
C1_ddd_4 => [["out/ddd4.xml", "c_ddd_4"]],
C2_ddd_1 => [["out/ddd1.xml", "c_ddd_1"]],
C2_ddd_2 => [["out/ddd2.xml", "c_ddd_2"]],
C2_ddd_3 => [["out/ddd3.xml", "c_ddd_3"]],
C2_ddd_4 => [["out/ddd4.xml", "c_ddd_4"]],
c_ddd_1 => [["out/ddd1.xml", "c_ddd_1"]],
c_ddd_2 => [["out/ddd2.xml", "c_ddd_2"]],
c_ddd_3 => [["out/ddd3.xml", "c_ddd_3"]],
c_ddd_4 => [["out/ddd4.xml", "c_ddd_4"]],
},
}}
clearFolder($outDir, 1e2);
#-------------------------------------------------------------------------------
# Test xref linking
#-------------------------------------------------------------------------------
my $xrefSource = [q(aaa1), <<\'END\'];
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<concept id="sourceTopic">
<title>Source of xref</title>
<conbody>
<p><xref href="targetTagLabel"/></p>
</conbody>
</concept>
<!--linted: 2019-03-12 at 16:40:17 -->
<!--author: author@author.com -->
<!--catalog: /home/phil/r/dita/dita-ot-3.1/catalog-dita.xml -->
<!--definition: sourceTopic -->
<!--docType: <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []> -->
<!--file: out/aaa1.xml -->
<!--foo: 1 -->
<!--guid: sourceTopic -->
<!--header: <?xml version="1.0" encoding="UTF-8"?> -->
<!--project: aaa -->
<!--sha256: 3f75bcceaca8b9f3e1a40f0ad939136ee135c87443427fca9e4147d979f17527 -->
END
my $xrefTarget = [q(aaa2), <<\'END\'];
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<concept id="targetTopic">
<title>Target of xref</title>
<conbody>
<p id="targetTag">Target</p>
</conbody>
</concept>
<!--linted: 2019-03-12 at 16:40:17 -->
<!--author: author@author.com -->
<!--catalog: /home/phil/r/dita/dita-ot-3.1/catalog-dita.xml -->
<!--definition: targetTopic -->
<!--definition: targetTag -->
<!--docType: <!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []> -->
<!--file: out/aaa2.xml -->
<!--foo: 1 -->
<!--guid: targetTopic -->
<!--header: <?xml version="1.0" encoding="UTF-8"?> -->
<!--project: aaa -->
<!--sha256: 3f75bcceaca8b9f3e1a40f0ad939136ee135c87443427fca9e4147d979f17527 -->
<!--labels: targetTopic targetTopicLabel -->
<!--labels: targetTag targetTagLabel -->
END
owf(fpe($outDir, $$_[0], q(xml)), $$_[1]) for $xrefSource, $xrefTarget;
fixDitaXrefHrefs(1, $outDir, "xml"); #TfixDitaXrefHrefs
ok readFile(fpe($outDir, $$xrefSource[0], q(xml))) =~ m(xref href="aaa2.xml#targetTopic/targetTag")s;
if (1) #TlintAttributes
{my @a = lintAttributes($outDir);
ok $_->project eq q(aaa) for @a;
}
if (1) #Tread
{my $x = Data::Edit::Xml::new(<<END);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<concept id="c1">
<title/>
<conbody>
</conbody>
</concept>
END
$x->addLabels_c2_c3_c4;
$x->createGuidId;
is_deeply [$x->getLabels], [qw(c1 c2 c3 c4)];
my $l = new; # Linter
$l->catalog = $catalog; # Catalog
$l->ditaType = -t $x; # Topic type
$l->file = fpf($outDir, q(zzz.dita)); # Output file
$l->guid = $x->id; # Guid
$l->inputFile = q(zzz.xml); # Add source file information
$l->labels = $x; # Add label information to the output file so when all the files are written they can be retargeted by Data::Edit::Xml::Lint
$l->project = q(aaa); # Group files into Id scopes
$l->title = q(test lint); # Title
$l->source = $x->ditaPrettyPrintWithHeaders; # Source from parse tree
$l->lint;
my $m = &read($l->file);
my $y = &reload($l->file);
ok $l->source eq $m->source;
ok -p $x eq -p $y;
is_deeply [$x->getLabels], [$y->getLabels];
clearFolder($outDir, 1e2);
}
latestTest:;
if (1) # Message compression
{my $N = 10;
my $x = Data::Edit::Xml::new(<<END);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd" []>
<concept id="c1">
<conbody/>
</concept>
END
for my $i(1..$N)
{my $l = new;
$l->catalog = $catalog;
$l->file = fpf($outDir, qq(z$i.dita));
$l->source = $x->ditaPrettyPrintWithHeaders;
$l->lint;
}
my $r = report($outDir);
my ($e) = values %{$r->compressedErrors};
ok $e == $N;
clearFolder($outDir, $N+1);
}
' called at /usr/home/cpansand/.cpan/build/2019070901/Data-Edit-Xml-Lint-20190708-0/blib/lib/Data/Edit/Xml/Lint.pm line 1740
Data::Edit::Xml::Lint::test() called at test.pl line 10
# Looks like your test exited with 255 just after 1.
test.pl ..
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 110/111 subtests
Test Summary Report
-------------------
test.pl (Wstat: 65280 Tests: 1 Failed: 0)
Non-zero exit status: 255
Parse errors: Bad plan. You planned 111 tests but ran 1.
Files=1, Tests=1, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.47 cusr 0.35 csys = 0.85 CPU)
Result: FAIL
Failed 1/1 test programs. 0/1 subtests failed.
------------------------------
PREREQUISITES
------------------------------
Prerequisite modules loaded:
requires:
Module Need Have
----------------- -------- --------
Carp 0 1.50
Data::Dump 0 1.23
Data::Edit::Xml 20190708 20190708
Data::Table::Text 20190708 20190708
Digest::SHA 0 6.02
Encode 0 3.01
Test::More 0 1.302164
Test::SharedFork 0 0.35
configure_requires:
Module Need Have
----------------- -------- --------
Module::Build 0.4224 0.4229
------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------
Environment variables:
PATH = /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/cpansand/bin/sh:/home/cpansand/bin:/usr/games:/home/cpansand/devel:/usr/home/eserte/src/srezic-misc/scripts
PERL5LIB =
PERL5OPT =
PERL5_CPANPLUS_IS_RUNNING = 65662
PERL5_CPAN_IS_RUNNING = 65662
PERL5_CPAN_IS_RUNNING_IN_RECURSION = 65632,65662
PERL_BATCH = yes
PERL_CANARY_STABILITY_NOPROMPT = 1
PERL_CPAN_REPORTER_CONFIG = /var/tmp/cpansmoker-1023/2019070901/cpanreporter_000_config.ini
PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
PERL_USE_UNSAFE_INC = 1
SHELL = /bin/sh
TMPDIR = /var/tmp/cpansmoker-1023/2019070901
Perl special variables (and OS-specific diagnostics, for MSWin32):
$^X = /usr/perl5.30.0p/bin/perl5.30.0
$UID/$EUID = 1023 / 1023
$GID = 1023 1023
$EGID = 1023 1023
Perl module toolchain versions installed:
Module Have
------------------- --------
CPAN 2.22
CPAN::Meta 2.150010
Cwd 3.78
ExtUtils::CBuilder 0.280231
ExtUtils::Command 7.36
ExtUtils::Install 2.14
ExtUtils::MakeMaker 7.36
ExtUtils::Manifest 1.72
ExtUtils::ParseXS 3.40
File::Spec 3.78
JSON 4.02
JSON::PP 4.04
Module::Build 0.4229
Module::Signature n/a
Parse::CPAN::Meta 2.150010
Test::Harness 3.42
Test::More 1.302164
YAML 1.29
YAML::Syck 1.31
version 0.9924
--
Summary of my perl5 (revision 5 version 30 subversion 0) configuration:
Platform:
osname=freebsd
osvers=13.0-current
archname=amd64-freebsd
uname='freebsd cloud2.bbbike.org 13.0-current freebsd 13.0-current cb9788efd6d(master) generic-nodebug amd64 '
config_args='-ds -e -Dprefix=/usr/perl5.30.0p -Dcf_email=srezic@cpan.org -Doptimize=-O2 -pipe'
hint=recommended
useposix=true
d_sigaction=define
useithreads=undef
usemultiplicity=undef
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
bincompat5005=undef
Compiler:
cc='cc'
ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -D_FORTIFY_SOURCE=2'
optimize='-O2 -pipe'
cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
ccversion=''
gccversion='4.2.1 Compatible FreeBSD Clang 8.0.0 (tags/RELEASE_800/final 356365)'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='cc'
ldflags ='-pthread -Wl,-E -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib /usr/lib/clang/8.0.0/lib /usr/lib
libs=-lpthread -lgdbm -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -ldl -lm -lcrypt -lutil -lc
libc=
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags=' '
cccdlflags='-DPIC -fPIC'
lddlflags='-shared -L/usr/local/lib -fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
HAS_TIMES
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
USE_64_BIT_ALL
USE_64_BIT_INT
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
Built under freebsd
Compiled at May 22 2019 20:13:34
%ENV:
PERL5LIB=""
PERL5OPT=""
PERL5_CPANPLUS_IS_RUNNING="65662"
PERL5_CPAN_IS_RUNNING="65662"
PERL5_CPAN_IS_RUNNING_IN_RECURSION="65632,65662"
PERL_BATCH="yes"
PERL_CANARY_STABILITY_NOPROMPT="1"
PERL_CPAN_REPORTER_CONFIG="/var/tmp/cpansmoker-1023/2019070901/cpanreporter_000_config.ini"
PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
PERL_USE_UNSAFE_INC="1"
@INC:
/usr/perl5.30.0p/lib/site_perl/5.30.0/amd64-freebsd
/usr/perl5.30.0p/lib/site_perl/5.30.0
/usr/perl5.30.0p/lib/5.30.0/amd64-freebsd
/usr/perl5.30.0p/lib/5.30.0
.