Joshua M. Ferraro a écrit :
----- "Mike Rylander" <[EMAIL PROTECTED]> wrote:
CVS is updated with that now, and after anyone willing makes sure
it's not breaking anything I think we should release again.
Just updated and ran make test successfully. I'm happy to
roll a release today if there are no objections.
This may be a good opportunity to raise awareness again regarding
a few unresolved issues that some have found with M:F:X. There are
a few tests I created here:
http://kados.org/stuff/marc_tests.tgz
If someone where willing to verify that these tests fail on systems
other than mine, that'd be much appreciated. Should be as easy as:
$ wget http://kados.org/stuff/marc_tests.tgz
$ tar -xzvf marc_tests.tgz
$ cd marc_tests
$ perl Record_tests.pl
seems everything fails for me as well...
mandriva linux 2007.1, perl 5.8.8, last CPAN version of every packages,
system encoding is utf8 (don't know if it cares, but the 1st error is
typically a unicode one)
(i have same .out as Dan Scott if I don't mind.
bash-3.1$ perl Record_tests.pl
1..6
ok 1 - module compiled
1. Checking simple binary MARC21 records to MARCXML
Warnings encountered while processing ISO-2709 record with title "Why
didn't they ask Evans? / Agatha Christie.":
Invalid record length in record 1: Leader says 00463 bytes but
it's actually 464 at Record_tests.pl line 134.
Invalid record terminator in record 1 at Record_tests.pl line 134.
Use of uninitialized value in substitution (s///) at Record_tests.pl
line 194.
not ok 2 - marc2marcxml from MARC-8 to UTF-8 (MARC21)
# Failed test 'marc2marcxml from MARC-8 to UTF-8 (MARC21)'
# at Record_tests.pl line 70.
not ok 3 - record matches antitype
# Failed test 'record matches antitype'
# at Record_tests.pl line 73.
# got: ''
# expected: '<?xml version="1.0" encoding="UTF-8"?><record
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
xmlns="http://www.loc.gov/MARC21/slim"> <leader>00463 a2200169
4500</leader> <controlfield tag="001">84893</controlfield>
<controlfield tag="003">ACLS</controlfield> <controlfield
tag="005">19990324000000.0</controlfield> <controlfield
tag="008">930421s19xx xxu 00010 eng d</controlfield>
<datafield tag="020" ind1=" " ind2=" "> <subfield
code="a">0854562702</subfield> </datafield> <datafield tag="090"
ind1=" " ind2=" "> <subfield code="c">1738</subfield> <subfield
code="d">1738</subfield> </datafield> <datafield tag="100" ind1="1"
ind2=" "> <subfield code="a">Christie, Agatha,</subfield>
<subfield code="d">1890-1976.</subfield> </datafield> <datafield
tag="245" ind1="1" ind2="0"> <subfield code="a">Why didn't they ask
Evans? /</subfield> <subfield code="c">Agatha Christie.</subfield>
</datafield> <datafield tag="250" ind1=" " ind2=" "> <subfield
code="a">Large print edition.</subfield> </datafield> <datafield
tag="650" ind1=" " ind2="0"> <subfield code="a">Large type
books.</subfield> </datafield> <datafield tag="942" ind1=" " ind2=" ">
<subfield code="a">ONe</subfield> <subfield
code="c">LP</subfield> <subfield code="k">LP Christie</subfield>
</datafield> <datafield tag="952" ind1=" " ind2=" "> <subfield
code="b">NPL</subfield> <subfield code="p">31000000010273</subfield>
<subfield code="r">12.00</subfield> <subfield
code="u">2148</subfield> </datafield></record>'
Use of uninitialized value in substitution (s///) at Record_tests.pl
line 194.
not ok 4 - marc2marcxml from UTF-8 to UTF-8 (MARC21)
# Failed test 'marc2marcxml from UTF-8 to UTF-8 (MARC21)'
# at Record_tests.pl line 76.
not ok 5 - record matches antitype
# Failed test 'record matches antitype'
# at Record_tests.pl line 79.
# got: ''
# expected: '<?xml version="1.0" encoding="UTF-8"?><record
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.loc.gov/MARC21/slim
http://www.loc.gov/standards/marcxml/schema/MARC21slim.xsd"
xmlns="http://www.loc.gov/MARC21/slim"> <leader>00463 a2200169
4500</leader> <controlfield tag="001">84893</controlfield>
<controlfield tag="003">ACLS</controlfield> <controlfield
tag="005">19990324000000.0</controlfield> <controlfield
tag="008">930421s19xx xxu 00010 eng d</controlfield>
<datafield tag="020" ind1=" " ind2=" "> <subfield
code="a">0854562702</subfield> </datafield> <datafield tag="090"
ind1=" " ind2=" "> <subfield code="c">1738</subfield> <subfield
code="d">1738</subfield> </datafield> <datafield tag="100" ind1="1"
ind2=" "> <subfield code="a">Christie, Agatha,</subfield>
<subfield code="d">1890-1976.</subfield> </datafield> <datafield
tag="245" ind1="1" ind2="0"> <subfield code="a">Why didn't they ask
Evans? /</subfield> <subfield code="c">Agatha Christie.</subfield>
</datafield> <datafield tag="250" ind1=" " ind2=" "> <subfield
code="a">Large print edition.</subfield> </datafield> <datafield
tag="650" ind1=" " ind2="0"> <subfield code="a">Large type
books.</subfield> </datafield> <datafield tag="942" ind1=" " ind2=" ">
<subfield code="a">ONe</subfield> <subfield
code="c">LP</subfield> <subfield code="k">LP Christie</subfield>
</datafield> <datafield tag="952" ind1=" " ind2=" "> <subfield
code="b">NPL</subfield> <subfield code="p">31000000010273</subfield>
<subfield code="r">12.00</subfield> <subfield
code="u">2148</subfield> </datafield></record>'
2. checking binary MARC21 records with combining characters to MARCXML
Warnings encountered while processing ISO-2709 record with title "Jewish
writings of the Second Temple period : Apocrypha, Pseudepigrapha,
Qumran, sectarian writings, Philo, Josephus / edited by Michael E. Stone.":
Invalid record length in record 1: Leader says 01442 bytes but
it's actually 1443 at Record_tests.pl line 134.
Invalid record terminator in record 1 at Record_tests.pl line 134.
Use of uninitialized value in substitution (s///) at Record_tests.pl
line 194.
not ok 6 - marc2marcxml from MARC-8 to MARC-8 with combining
characters(MARC21)
# Failed test 'marc2marcxml from MARC-8 to MARC-8 with combining
characters(MARC21)'
# at Record_tests.pl line 82.
Warnings encountered while processing ISO-2709 record with title "Jewish
writings of the Second Temple period : Apocrypha, Pseudepigrapha,
Qumran, sectarian writings, Philo, Josephus / edited by Michael E. Stone.":
Invalid record length in record 1: Leader says 01442 bytes but
it's actually 1443 at Record_tests.pl line 134.
Invalid record terminator in record 1 at Record_tests.pl line 134.
Use of uninitialized value in substitution (s///) at Record_tests.pl
line 194.
not ok 7 - marc2marcxml from MARC-8 to UTF-8 with combining characters
(MARC21)
# Failed test 'marc2marcxml from MARC-8 to UTF-8 with combining
characters (MARC21)'
# at Record_tests.pl line 84.
Use of uninitialized value in substitution (s///) at Record_tests.pl
line 194.
not ok 8 - marc2marcxml from UTF-8 to UTF-8 with combining characters
(MARC21)
# Failed test 'marc2marcxml from UTF-8 to UTF-8 with combining
characters (MARC21)'
# at Record_tests.pl line 86.
# Looks like you planned 6 tests but ran 2 extra.
# Looks like you failed 7 tests of 8 run.
--
Paul POULAIN et Henri Damien LAURENT
Consultants indépendants en logiciels libres et bibliothéconomie
(http://www.koha-fr.org)
Tel : 04 91 31 45 19