Summary: | poppler-bindings-0.5.3 fails tests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jon Hood (RETIRED) <squinky86> |
Component: | New packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | abraham, coldwind, ravi, sascha-gentoo-bugzilla, tcunha |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.freedesktop.org/show_bug.cgi?id=7765 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | ebuild which uses the targz'ed tests file |
Description
Jon Hood (RETIRED)
![]() ... even worse, I get: make check-TESTS make[3]: Entering directory `/var/tmp/portage/poppler-bindings-0.5.3/work/poppler-0.5.3/qt4/tests' ********* Start testing of TestAttachments ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestAttachments::initTestCase() Error: Couldn't open file '../../../test/unittestcases/truetype.pdf' FAIL! : TestAttachments::checkNoAttachments() 'doc' returned FALSE. () Loc: [check_attachments.cpp(23)] Error: Couldn't open file '../../../test/unittestcases/WithAttachments.pdf' FAIL! : TestAttachments::checkAttach1() 'doc' returned FALSE. () Loc: [check_attachments.cpp(35)] Error: Couldn't open file '../../../test/unittestcases/A6EmbeddedFiles.pdf' FAIL! : TestAttachments::checkAttach2() 'doc' returned FALSE. () Loc: [check_attachments.cpp(76)] Error: Couldn't open file '../../../test/unittestcases/shapes+attachments.pdf' FAIL! : TestAttachments::checkAttach3() 'doc' returned FALSE. () Loc: [check_attachments.cpp(110)] Error: Couldn't open file '../../../test/unittestcases/imageretrieve+attachment.pdf' FAIL! : TestAttachments::checkAttach4() 'doc' returned FALSE. () Loc: [check_attachments.cpp(132)] PASS : TestAttachments::cleanupTestCase() Totals: 2 passed, 5 failed, 0 skipped ********* Finished testing of TestAttachments ********* FAIL: check_attachments ********* Start testing of TestDateConv ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestDateConv::initTestCase() PASS : TestDateConv::checkDates() PASS : TestDateConv::cleanupTestCase() Totals: 3 passed, 0 failed, 0 skipped ********* Finished testing of TestDateConv ********* PASS: check_dateConversion ********* Start testing of TestFontsData ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestFontsData::initTestCase() Error: Couldn't open file '../../../test/tests/image.pdf' *** glibc detected *** free(): invalid pointer: 0x0804e338 *** /bin/sh: line 1: 5516 Aborted ${dir}$tst FAIL: check_fonts ********* Start testing of TestMetaData ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestMetaData::initTestCase() Error: Couldn't open file '../../../test/unittestcases/doublepage.pdf' *** glibc detected *** double free or corruption (out): 0x080518a0 *** /bin/sh: line 1: 5539 Aborted ${dir}$tst FAIL: check_metadata ********* Start testing of TestPermissions ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestPermissions::initTestCase() Error: Couldn't open file '../../../test/unittestcases/orientation.pdf' *** glibc detected *** double free or corruption (out): 0x0804ae50 *** /bin/sh: line 1: 5563 Aborted ${dir}$tst FAIL: check_permissions ********* Start testing of TestPageMode ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestPageMode::initTestCase() Error: Couldn't open file '../../../test/unittestcases/UseNone.pdf' /bin/sh: line 1: 5586 Segmentation fault ${dir}$tst FAIL: check_pagemode ********* Start testing of TestPageLayout ********* Config: Using QTest library 4.1.1, Qt 4.1.2 PASS : TestPageLayout::initTestCase() Error: Couldn't open file '../../../test/unittestcases/UseNone.pdf' *** glibc detected *** free(): invalid pointer: 0x0804b278 *** /bin/sh: line 1: 5609 Aborted ${dir}$tst FAIL: check_pagelayout =================== 6 of 7 tests failed ... note the libc double free/invalid pointer errors :( This is because the test files are not distributed with the poppler package. I've filed a bug upstream (see URL field) to ask them to package the test files as well as the source tarball. I retrieved the current test module from freedesktop.org CVS (unfortunately the test module isn't tagged): cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/poppler login cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/poppler co test tar czf poppler-test-0.5.3.tar.gz then copied that file to distfiles, and added it to SRC_URI in the poppler-bindings ebuild; the tests all passed. That did the trick for me. In order to help people until upstream release the new package with tests included, I'll attach a couple of files that will make life happier :-). Created attachment 95517 [details]
ebuild which uses the targz'ed tests file
Put this in your portage overlay under app-text/poppler-bindings
I couldn't attach poppler-test-0.5.3.tar.gz due to it being too large; still it'll be available for some time at: http://mural.uv.es/abraham/poppler-test-0.5.3.tar.gz put it in your DISTFILES and enjoy. poppler-bindings-0.5.4 fails tests here with the same error, but adding poppler-test-0.5.3.tar.gz to SRC_URI works in this version as well. (In reply to comment #6) > poppler-bindings-0.5.4 fails tests here with the same error, but adding > poppler-test-0.5.3.tar.gz to SRC_URI works in this version as well. > Maybe poppler-test could be added to Gentoo mirrors and downloaded as part of the package (changing SRC_URI), at least as a workaround until upstream fixes the official release, any dev's opinion about that? thank you very much everyone I just committed this. |