Hi Roberto,
Using xvfb for running the tests works well. The graphic tests now pass. So
that's great, it helps.
After these tests pass, there' still failing tests, as detailed below. This
causes failures in debuild. But these seems to be unrelated to the X
display server, it's just something else.
Teus.
Running tests...
/usr/bin/ctest --force-new-ctest-process -j4
Test project /home/teus/bibletime/bibletime/obj-x86_64-linux-gnu
Start 1: btsourcesthread
Start 2: btinstallthread
Start 3: cswordbackend
Start 4: cswordversekey
1/5 Test #4: cswordversekey ...................***Failed 0.11 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-teus'
********* Start testing of test_CSwordVerseKey *********
Config: Using QtTest library 5.9.1, Qt 5.9.1 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 7.2.0)
QWARN : test_CSwordVerseKey::initTestCase() Could not create user home
.sword mods.d directory.
FAIL! : test_CSwordVerseKey::initTestCase()
'util::directory::initDirectoryCache()' returned FALSE. ()
Loc:
[/home/teus/bibletime/bibletime/tests/backend/keys/cswordversekey/test_cswordversekey.cpp(27)]
PASS : test_CSwordVerseKey::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 2ms
********* Finished testing of test_CSwordVerseKey *********
2/5 Test #2: btinstallthread ..................***Exception: Other 0.11 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-teus'
********* Start testing of test_BtInstallThread *********
Config: Using QtTest library 5.9.1, Qt 5.9.1 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 7.2.0)
QWARN : test_BtInstallThread::initTestCase() Could not create user home
.sword mods.d directory.
FAIL! : test_BtInstallThread::initTestCase()
'util::directory::initDirectoryCache()' returned FALSE. ()
Loc:
[/home/teus/bibletime/bibletime/tests/backend/btinstallthread/test_btinstallthread.cpp(55)]
========= Received signal, dumping stack ==============
========= End of stack trace ==============
QFATAL : test_BtInstallThread::initTestCase() Received signal 11
Function time: 3ms Total time: 3ms
FAIL! : test_BtInstallThread::initTestCase() Received a fatal error.
Loc: [Unknown file(0)]
Totals: 0 passed, 2 failed, 0 skipped, 0 blacklisted, 5ms
********* Finished testing of test_BtInstallThread *********
3/5 Test #3: cswordbackend ....................***Failed 0.11 sec
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-teus'
********* Start testing of test_CSwordBackend *********
Config: Using QtTest library 5.9.1, Qt 5.9.1 (x86_64-little_endian-lp64
shared (dynamic) release build; by GCC 7.2.0)
QWARN : test_CSwordBackend::initTestCase() Could not create user home
.sword mods.d directory.
FAIL! : test_CSwordBackend::initTestCase()
'util::directory::initDirectoryCache()' returned FALSE. ()
Loc:
[/home/teus/bibletime/bibletime/tests/backend/managers/cswordbackend/test_cswordbackend.cpp(25)]
PASS : test_CSwordBackend::cleanupTestCase()
Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 1ms
********* Finished testing of test_CSwordBackend *********
Start 5: btlistmodel
4/5 Test #5: btlistmodel ...................... Passed 0.10 sec
5/5 Test #1: btsourcesthread .................. Passed 18.21 sec
40% tests passed, 3 tests failed out of 5
Total Test time (real) = 18.21 sec
The following tests FAILED:
2 - btinstallthread (OTHER_FAULT)
3 - cswordbackend (Failed)
4 - cswordversekey (Failed)
Errors while running CTest
Makefile:121: recipe for target 'test' failed
make[2]: *** [test] Error 8
make[2]: Leaving directory
'/home/teus/bibletime/bibletime/obj-x86_64-linux-gnu'
dh_auto_test: cd obj-x86_64-linux-gnu && make -j4 test ARGS\+=-j4 returned
exit code 2
debian/rules:13: recipe for target 'override_dh_auto_test' failed
make[1]: *** [override_dh_auto_test] Error 2
make[1]: Leaving directory '/home/teus/bibletime/bibletime'
debian/rules:10: recipe for target 'build' failed
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1124:
dpkg-buildpackage -rfakeroot -us -uc failed
On Thu, 5 Oct 2017 at 07:50 Teus Benschop <[email protected]> wrote:
> Hi Roberto,
>
> Ah, that is helpful information, thank you for the pointer to use a dummy
> display with the help of xvfb. I'll look into that soon to see whether that
> would help. Yes, I agree that it's better to not override things, and xvfb
> if it helps would be great.
>
> Regards, Teus
>
> On Wed, 4 Oct 2017 at 14:25 Roberto C. Sánchez <[email protected]> wrote:
>
>> On Wed, Oct 04, 2017 at 11:44:54AM +0000, Teus Benschop wrote:
>> >
>> > +override_dh_auto_test:
>> > + echo "Skip dh_auto_test because the tests rely on a display which
>> is not there"
>> >
>>
>> Hi Teus,
>>
>> I wonder if instead of this change you could set up a dummy display and
>> use xvfb to enable the test to run. You can install xvfb and have a
>> look at the documentation to see details of how to use it. It is
>> designed for just this sort of use case.
>>
>> Regards,
>>
>> -Roberto
>>
>> --
>> Roberto C. Sánchez
>>
>> _______________________________________________
>> Pkg-crosswire-devel mailing list
>> [email protected]
>>
>> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-crosswire-devel
>>
>
_______________________________________________
Pkg-crosswire-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-crosswire-devel