]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/bugs/img_test_failure_on_nix.mdwn
Add ikistrap plugin for ikistrap theme.
[git.ikiwiki.info.git] / doc / bugs / img_test_failure_on_nix.mdwn
1 Peter Simons wrote:
2 > I'm getting the following test suite failure in Nix, probably because
3 > some Perl dependency was updated to a newer version recently:
4  
5         #   Failed test at t/img.t line 79.
6         #          got: 'no image'
7         #     expected: '12x12'
8  
9         #   Failed test at t/img.t line 80.
10         #          got: 'no image'
11         #     expected: '16x2'
12         # Looks like you failed 2 tests of 19.
13         t/img.t ........................ 
14         Dubious, test returned 2 (wstat 512, 0x200)
15         Failed 2/19 subtests 
16  
17 > Do you have any idea how to fix this issue?
19 >> As far as I can tell, this indicates that your ImageMagick doesn't
20 >> support PDF (in Debian and its derivatives this requires `libmagickcore-extra`).
21 >> Please run tests on a system with a fully-featured ImageMagick (in Debian we put
22 >> `libmagickcore-extra` in the `Build-Depends-Indep` for this), or if you are testing
23 >> at install time on arbitrary end-user systems, please tell me what this says on a
24 >> system where the test fails:
25 >>
26 >>     perl -MData::Dumper -MImage::Magick -e 'print Dumper([(new Image::Magick)->QueryFormat("pdf")])'
27 >>
28 >> If the result is `$VAR1 = [ undef ]`, then we can easily make the test skip that bit if PDFs don't work.
29 >> --[[smcv]]
31 >>> That configuration test doesn't actually work because of the way
32 >>> ImageMagick processes PDFs via ghostscript, but loading a sample
33 >>> PDF and probing its width does seem to work. [[done]] --[[smcv]]