Last modified: 2014-09-21 09:26:07 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70638, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68638 - phpunit: SKIPPED: djvu binaries do not exist or are not executable
phpunit: SKIPPED: djvu binaries do not exist or are not executable
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ProofreadPage (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-26 23:43 UTC by Nemo
Modified: 2014-09-21 09:26 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
short and simple djvu file with LINEs based hidden text layer (61.06 KB, image/vnd.djvu)
2014-09-21 04:01 UTC, George Orwell III
Details

Description Nemo 2014-07-26 23:43:23 UTC
Unit tests on a labs-vagrant instance with http://paste.debian.net/111811/ are skipped with this error, even though the binaries should be taken care of by the vagrant role and packages seem to be installed:

$ dpkg -l | grep djvu
ii  djvulibre-bin                        3.5.25.4-3                           amd64        Utilities for the DjVu image format
ii  libdjvulibre-text                    3.5.25.4-3                           all          Linguistic support files for libdjvulibre
ii  libdjvulibre21:amd64                 3.5.25.4-3                           amd64        Runtime support for the DjVu image format

Did something change in Ubuntu 2014.04?

----

56) Pagelist::testParserTest with data set #3 ('pagelist: default', '<pagelist />', '<p><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">1</a> <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">2</a> <a href="/wiki/Page:LoremIpsum.djvu/3" title="Page:LoremIpsum.djvu/3">3</a> <a href="/wiki/Page:LoremIpsum.djvu/4" title="Page:LoremIpsum.djvu/4">4</a> <a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">5</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

57) Pagelist::testParserTest with data set #4 ('pagelist: from', '<pagelist from=4/>', '<p><a href="/wiki/Page:LoremIpsum.djvu/4" title="Page:LoremIpsum.djvu/4">4</a> <a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">5</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

58) Pagelist::testParserTest with data set #5 ('pagelist: to', '<pagelist to=2/>', '<p><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">1</a> <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">2</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

59) Pagelist::testParserTest with data set #6 ('pagelist: invalid from/to interval', '<pagelist from=3 to=2/>', '<p><strong class="error">Error: Invalid interval</strong>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

60) Pagelist::testParserTest with data set #7 ('pagelist: invalid from', '<pagelist from=test/>', '<p><strong class="error">Error: Numeric value expected</strong>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

61) Pagelist::testParserTest with data set #8 ('pagelist: invalid to', '<pagelist from=test/>', '<p><strong class="error">Error: Numeric value expected</strong>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

62) Pagelist::testParserTest with data set #9 ('pagelist: (high)roman', '<pagelist 1to1=roman 2to2=highroman to=2/>', '<p><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">&#160;i</a> <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">&#160;II</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

63) Pagelist::testParserTest with data set #10 ('pagelist: special characters', '<pagelist 1=- 2to3=- to=3/>', '<p><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">-</a> <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">-</a> <a href="/wiki/Page:LoremIpsum.djvu/3" title="Page:LoremIpsum.djvu/3">-</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

64) Pagelist::testParserTest with data set #11 ('pagelist: shift', '<pagelist 1=3 to=2/>', '<p><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">3</a> <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">4</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

65) Pagelist::testParserTest with data set #12 ('pagelist: empty', '<pagelist 1=empty to=2/>', '<p>1 <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">2</a>
</p>', 'djvu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

66) Pagelist::testParserTest with data set #13 ('pagelist: language with special characters', '<pagelist to=2/>', '<p><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">૧</a> <a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">૨</a>
</p>', 'djvu
language=gu
title="Index:LoremIpsum.djvu"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

67) Pages::testParserTest with data set #8 ('pages: with file: Simple transclusion', '<pages index="LoremIpsum.djvu" from="4" to="5" />', '<div>
<p><span><a href="/wiki/Page:LoremIpsum.djvu/4" title="Page:LoremIpsum.djvu/4">2</a></span>Page 4&#32;<span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">3</a></span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">Page:LoremIpsum.djvu/5</a>&#32;
</p>
</div>
', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

68) Pages::testParserTest with data set #9 ('pages: with file: Simple transclusion without from', '<pages index="LoremIpsum.djvu" to="2" />', '<div>
<p><span><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">i</a></span>Page 1&#32;<span><a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">II</a></span>
</p><p>Page 2&#32;
</p>
</div>
', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

69) Pages::testParserTest with data set #10 ('pages: with file: Invalid from', '<pages index="LoremIpsum.djvu" from="-1" />', '<p><strong class="error">Error: Invalid interval</strong>
</p>', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

70) Pages::testParserTest with data set #11 ('pages: with file: Invalid to', '<pages index="LoremIpsum.djvu" to="42" />', '<p><strong class="error">Error: Invalid interval</strong>
</p>', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

71) Pages::testParserTest with data set #12 ('pages: with file: Simple transclusion without to', '<pages index="LoremIpsum.djvu" from="4" />', '<div>
<p><span><a href="/wiki/Page:LoremIpsum.djvu/4" title="Page:LoremIpsum.djvu/4">2</a></span>Page 4&#32;<span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">3</a></span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">Page:LoremIpsum.djvu/5</a>&#32;
</p>
</div>
', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

72) Pages::testParserTest with data set #13 ('pages: with file: step', '<pages index="LoremIpsum.djvu" from="3" step=2 />', '<div>
<p><span><a href="/wiki/Page:LoremIpsum.djvu/3" title="Page:LoremIpsum.djvu/3">1</a></span>Page 3&#32;<span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">3</a></span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">Page:LoremIpsum.djvu/5</a>&#32;
</p>
</div>
', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

73) Pages::testParserTest with data set #14 ('pages: with file: Invalid step', '<pages index="LoremIpsum.djvu" from="4" step="-1" />', '<p><strong class="error">Error: Numeric value expected</strong>
</p>', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

74) Pages::testParserTest with data set #15 ('pages: with file: exclude', '<pages index="LoremIpsum.djvu" from="3" exclude=4 />', '<div>
<p><span><a href="/wiki/Page:LoremIpsum.djvu/3" title="Page:LoremIpsum.djvu/3">1</a></span>Page 3&#32;<span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">3</a></span><a href="/index.php?title=Page:LoremIpsum.djvu/5&amp;action=edit&amp;redlink=1" class="new" title="Page:LoremIpsum.djvu/5 (page does not exist)">Page:LoremIpsum.djvu/5</a>&#32;
</p>
</div>
', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

75) Pages::testParserTest with data set #16 ('pages: with file: include', '<pages index="LoremIpsum.djvu" include="1-2,4" />', '<div>
<p><span><a href="/wiki/Page:LoremIpsum.djvu/1" title="Page:LoremIpsum.djvu/1">i</a></span>Page 1&#32;<span><a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">II</a></span>
</p><p>Page 2&#32;<span><a href="/wiki/Page:LoremIpsum.djvu/4" title="Page:LoremIpsum.djvu/4">2</a></span>Page 4&#32;
</p>
</div>
', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

76) Pages::testParserTest with data set #17 ('pages: with file: invalid include (1)', '<pages index="LoremIpsum.djvu" include="2-1,4" />', '<p><strong class="error">Error: Invalid interval</strong>
</p>', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

77) Pages::testParserTest with data set #18 ('pages: with file: invalid include (2)', '<pages index="LoremIpsum.djvu" include="." />', '<p><strong class="error">Error: Invalid interval</strong>
</p>', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

78) Pages::testParserTest with data set #19 ('pages: with file: Header', '<pages index="LoremIpsum.djvu" from="2" to="3" header=1 />', '<div>
<p>Lorem Ipsum -- <a href="/wiki/Author:Me" title="Author:Me">Author:Me</a>
II -- 1
<a href="/wiki/Test/Chapter_1" title="Test/Chapter 1">Test/Chapter 1</a> -- <a href="/wiki/Test/Chapter_3" title="Test/Chapter 3">Chapter 3</a><span><a href="/wiki/Page:LoremIpsum.djvu/2" title="Page:LoremIpsum.djvu/2">II</a></span>
</p><p>Page 2&#32;<span><a href="/wiki/Page:LoremIpsum.djvu/3" title="Page:LoremIpsum.djvu/3">1</a></span>Page 3&#32;
</p>
</div>
', 'djvu
title="Test/Chapter 2"', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

79) Pages::testParserTest with data set #20 ('pages: with file: TOC', '<pages index="LoremIpsum.djvu" />', '<div>
<p>Lorem Ipsum -- <a href="/wiki/Author:Me" title="Author:Me">Author:Me</a>
{{{from}}} -- {{{to}}}
<a href="/wiki/Test/Chapter_3" title="Test/Chapter 3">Chapter 3</a> -- {{{next}}}
</p>
</div>
', 'djvu
title=Test', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
Comment 1 Nemo 2014-07-26 23:57:01 UTC
$ ddjvu --help
DDJVU --- DjVuLibre-3.5.25
DjVu decompression utility
$ djvudump
DJVUDUMP --- DjVuLibre-3.5.25
Describes DjVu and IFF85 files
$ djvutoxml
[1-18202] djvutoxml: unspecified input file name.

But they're reported missing. :/

7) DjVuTest::testGetImageSize
This test needs the installation of the ddjvu, djvutoxml and djvudump tools

/srv/vagrant/mediawiki/tests/phpunit/includes/media/DjVuTest.php:21
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

8) DjVuTest::testInvalidFile
This test needs the installation of the ddjvu, djvutoxml and djvudump tools

/srv/vagrant/mediawiki/tests/phpunit/includes/media/DjVuTest.php:21
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

9) DjVuTest::testPageCount
This test needs the installation of the ddjvu, djvutoxml and djvudump tools

/srv/vagrant/mediawiki/tests/phpunit/includes/media/DjVuTest.php:21
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

10) DjVuTest::testGetPageDimensions
This test needs the installation of the ddjvu, djvutoxml and djvudump tools

/srv/vagrant/mediawiki/tests/phpunit/includes/media/DjVuTest.php:21
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

11) DjVuTest::testGetPageText
This test needs the installation of the ddjvu, djvutoxml and djvudump tools

/srv/vagrant/mediawiki/tests/phpunit/includes/media/DjVuTest.php:21
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

12) DjVuTest::testMediaWikiTestCaseParentSetupCalled
This test needs the installation of the ddjvu, djvutoxml and djvudump tools

/srv/vagrant/mediawiki/tests/phpunit/includes/media/DjVuTest.php:21
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160

13) ParserTests::testParserTest with data set #913 ('Image with page parameter', '[[File:LoremIpsum.djvu|page=2]]', '<p><a href="/index.php?title=File:LoremIpsum.djvu&amp;page=2" class="image"><img alt="LoremIpsum.djvu" src="http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-2480px-LoremIpsum.djvu.jpg" width="2480" height="3508" srcset="http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-3720px-LoremIpsum.djvu.jpg 1.5x, http://example.com/images/thumb/5/5f/LoremIpsum.djvu/page2-4960px-LoremIpsum.djvu.jpg 2x" /></a>
</p>', 'djvu', '')
SKIPPED: djvu binaries do not exist or are not executable.

/srv/vagrant/mediawiki/tests/phpunit/includes/parser/NewParserTest.php:715
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:133
/srv/vagrant/mediawiki/tests/phpunit/MediaWikiPHPUnitCommand.php:42
/srv/vagrant/mediawiki/tests/phpunit/phpunit.php:160
Comment 2 Antoine "hashar" Musso (WMF) 2014-07-28 09:34:21 UTC
That is a Vagrant configuration issue, not blocking multiple extensions to pass tests together so removing bug 67216 from blocker.


On Jenkins, we have djvu package installed and in LocalSettings.php we inject:

http://git.wikimedia.org/blob/integration%2Fjenkins.git/82f40360cb3e71687a58e73144ebfa8492d9fe7e/mediawiki%2Fconf.d%2F20_set_wgdjvu.php

<?php
#
# Snippet coming from integration/jenkins.git:/mediawiki/conf.d/
#
 
// Configure $wgDjvu for the MediaWiki core DJVU unit tests
$wgDjvuDump = '/usr/bin/djvudump';
$wgDjvuRenderer = '/usr/bin/ddjvu';
$wgDjvuToXML = '/usr/bin/djvutoxml';
$wgDjvuTxt = '/usr/bin/djvutxt';
Comment 3 George Orwell III 2014-09-14 02:49:52 UTC
(In reply to Nemo from comment #1)
> $ ddjvu --help
> DDJVU --- DjVuLibre-3.5.25
> DjVu decompression utility
> $ djvudump
> DJVUDUMP --- DjVuLibre-3.5.25
> Describes DjVu and IFF85 files
> $ djvutoxml
> [1-18202] djvutoxml: unspecified input file name.
> 
> But they're reported missing. :/
> 
> 

Shot in the dark - DjvuToXML relies on the presence of the document-type-definition (.dtd) file   DjVuXML-s.dtd    to execute properly. I don't enough about what you're doing but I didn't see it listed so I figure I better mention it.

Note: on typical local x86 install, this .dtd file is indeed present but installed in the wrong folder directory. The folder containing all the .dtd files must moved/copied to match the file-path expected by the XML executable (&/or the XML parser) in order to run successfully.

I have no idea if the same holds true on "server" or non-x86 based installs however.
Comment 4 Nemo 2014-09-14 06:43:22 UTC
(In reply to George Orwell III from comment #3)
> Note: on typical local x86 install, this .dtd file is indeed present but
> installed in the wrong folder directory. The folder containing all the .dtd
> files must moved/copied to match the file-path expected by the XML
> executable (&/or the XML parser) in order to run successfully.

Ah. Should/can it be made so that it works out of the box?
If not, I guess this bug should be fixed by making the tests skip when the file is not set.
Comment 5 George Orwell III 2014-09-14 07:21:00 UTC
(In reply to Nemo from comment #4)
> Ah. Should/can it be made so that it works out of the box?
> If not, I guess this bug should be fixed by making the tests skip when the
> file is not set.

I would guess filing a bug at djvu.sourceforge.net would be the "proper" way to get it to work 'out-of-the-box' via a newly patched release but stuff like that is well beyond me.

Can't you first verify the presence - or lack thereof - of the ' DjVuXML-s.dtd ' file somewhere on what ever it is that is hosting those other .exe files and just copy-it/add-it to same directory (e.g. file path is no longer an issue since all files would then reside in the same "folder")?
Comment 6 George Orwell III 2014-09-20 02:08:30 UTC
(In follow-up to George Orwell III from comment #5)
> . . . 
> Can't you first verify the presence - or lack thereof - of the '
> DjVuXML-s.dtd ' file somewhere on what ever it is that is hosting those
> other .exe files and just copy-it/add-it to same directory (e.g. file path
> is no longer an issue since all files would then reside in the same
> "folder")?

?Ok. I guess not...

Anyone? Can anyone else verify the presence (or lack thereof) of the ' DjVuXML-s.dtd ' file (is included within the DjVuLibre software package)?


p.s.- insuring the successful creation of an XML file that "maps" the embedded text layer would be 'half of the battle' being proposed in bug 57807 btw.
Comment 7 Bartosz Dziewoński 2014-09-20 10:22:52 UTC
(Sorry, I know little about our CI setup and even less about DJVU stuff, so I can't help much.)
Comment 8 George Orwell III 2014-09-20 12:08:42 UTC
(In reply to Bartosz Dziewoński from comment #7)
> (Sorry, I know little about our CI setup and even less about DJVU stuff, so
> I can't help much.)

Thanks for your reply anyway. Can you suggest anyone else who might be able to help nail this down?
Comment 9 Andre Klapper 2014-09-20 15:07:03 UTC
(In reply to Bartosz Dziewoński from comment #7)
> (Sorry, I know little about our CI setup

https://lists.wikimedia.org/mailman/listinfo/qa might be worth a shot.
Comment 10 George Orwell III 2014-09-21 02:35:56 UTC
Some seven years later,  http://sourceforge.net/p/djvu/bugs/71/  still manages to provide some background and a possible candidate. CC'd Mr. Starling
Comment 11 Bawolff (Brian Wolff) 2014-09-21 02:54:25 UTC
Can you tell me what the output of the following commands are:

which ddjvu
which djvudump
which djvutoxml
which djvutxt

Additionally make sure the patch returned for each is the same as the $wg variables, OR ensure that the path for those files a /usr/bin/ and that they are executable (Note the setup in comment 2 should no longer be needed since a couple months ago).

Comment 10 and comment 3 are unrelated I believe. The error message indicates MediaWiki isn't even trying, not that it tried and failed.
Comment 12 George Orwell III 2014-09-21 03:21:38 UTC
(In reply to Bawolff (Brian Wolff) from comment #11)
> Can you tell me what the output of the following commands are:

Whoa. Sorry if I mislead you - I have no clue what you are asking for ('which' is an unrecognized command in Windoze fwiw)

> Additionally make sure the patch returned for each is the same as the $wg
> variables, OR ensure that the path for those files are /usr/bin/ and that they
> are executable (Note the setup in comment 2 should no longer be needed since
> a couple months ago).

Understood yet beyond my skillset. Original bug report aside - all I'm trying to do is get the DjVuToXML part "working" again. In simplest terms - to create the XML, the executable needs ' DjVuXML-s.dtd ' present. Since I never saw/seen that file mentioned I thought I'd ask if it indeed "existed".

Why is this key? Because on a local x86 install, that .dtd file is installed in

   ../../DjVuLibre/share/djvu/pubtext/DjVuXML-s.dtd

while the executable expects it to reside in

   ../../DjVuLibre/pubtext/DjVuXML-s.dtd

Unless the .dtd file(s) are copied or moved to the latter file path, no XML ever gets created.

In short, I'm just trying to verify if the same condition does or does not exist on whatever it is that is hosting these files for Wikimedia et. al usage.
  
> Comment 10 and comment 3 are unrelated I believe. The error message
> indicates MediaWiki isn't even trying, not that it tried and failed.

Didn't mean to associate the two. This more about making some headway in XML generation area than Nero's reported issue. Sorry for piggy-backing pseudo related issues in a single report.
Comment 13 Bawolff (Brian Wolff) 2014-09-21 03:30:50 UTC
(In reply to George Orwell III from comment #12)
> (In reply to Bawolff (Brian Wolff) from comment #11)
> > Can you tell me what the output of the following commands are:
> 
> Whoa. Sorry if I mislead you - I have no clue what you are asking for
> ('which' is an unrecognized command in Windoze fwiw)

Which is a unix command which tells you what directory a program is installed in

> > Additionally make sure the patch returned for each is the same as the $wg
> > variables, OR ensure that the path for those files are /usr/bin/ and that they
> > are executable (Note the setup in comment 2 should no longer be needed since
> > a couple months ago).
> 
> Understood yet beyond my skillset. Original bug report aside - all I'm
> trying to do is get the DjVuToXML part "working" again. In simplest terms -
> to create the XML, the executable needs ' DjVuXML-s.dtd ' present. Since I
> never saw/seen that file mentioned I thought I'd ask if it indeed "existed".
> 
> Why is this key? Because on a local x86 install, that .dtd file is installed
> in
> 
>    ../../DjVuLibre/share/djvu/pubtext/DjVuXML-s.dtd
> 
> while the executable expects it to reside in
> 
>    ../../DjVuLibre/pubtext/DjVuXML-s.dtd
> 
> Unless the .dtd file(s) are copied or moved to the latter file path, no XML
> ever gets created.

That sounds kind of messed up. You should maybe file a report about that to djvu people.

> In short, I'm just trying to verify if the same condition does or does not
> exist on whatever it is that is hosting these files for Wikimedia et. al
> usage.

Debian normally installs that file at /usr/share/djvu/pubtext/DjVuXML-s.dtd

If you don't install using a system package manager (for linux), it will
probably end up in /usr/local/share/djvu/pubtext/DjVuXML-s.dtd

Windows of course uses totally different file system conventions.

> > Comment 10 and comment 3 are unrelated I believe. The error message
> > indicates MediaWiki isn't even trying, not that it tried and failed.
> 
> Didn't mean to associate the two. This more about making some headway in XML
> generation area than Nero's reported issue. Sorry for piggy-backing pseudo
> related issues in a single report.

I meant they're both unrelated to Nemo's original report (comment 0), not that they are necessarily unrelated to each other.

General problems with djvu programs not working on windows should probably be directed to the djvu folk. The people who are going to see this bug report really only know about djvu in so much as how its used by MediaWiki.
Comment 14 George Orwell III 2014-09-21 03:54:18 UTC
All points well taken here & my local Windows nonsense is my problem (mentioning it was more so for illustrative purposes than anything else).

That said, it begs the question:   Can one actually generate such an .xml file from a .DjVu file under the current state of mediawiki affairs or not?

Followed up by:  If so, why in blazes are we (Wikisource) still stuck with plain text dumps instead of smartly mapped, rich XML-based ones? (See bug 57807 here).
Comment 15 George Orwell III 2014-09-21 04:01:25 UTC
Created attachment 16530 [details]
short and simple djvu file with LINEs based hidden text layer
Comment 16 Bawolff (Brian Wolff) 2014-09-21 04:08:07 UTC
(In reply to George Orwell III from comment #14)
> 
> That said, it begs the question:   Can one actually generate such an .xml
> file from a .DjVu file under the current state of mediawiki affairs or not?
> 
> Followed up by:  If so, why in blazes are we (Wikisource) still stuck with
> plain text dumps instead of smartly mapped, rich XML-based ones? (See bug
> 57807 here).

This is getting highly off topic, but presumably because nobody has asked for an xml formatted dump of the djvu text layer to be generated for wikisource. I'm unclear what such a thing would be used for, but if you have a use case for wikisource, I encourage you to file a (separate) bug about it [No guarantees anyone would do anything about such a bug, but we fix 0 of the bugs that are not recorded].

For reference, current state of affairs is that when a DjVu (or PDF) files is uploaded, we collect the text layer of each page, and store the text on a page by page basis (You can get it all from the api if so inclined).
Comment 17 George Orwell III 2014-09-21 05:26:47 UTC
Understood and thank you for your input. Apologies again to Nemo for the unintended trolling.

If anyone is still interested, please see bug 57807 instead where I hope I can muster some folks to help frame & better pursue the specifics of this admittedly increasing off-topic matter.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links