Functional tests (qml_tests) failures
Hi,
After applying patches to fix #882 (closed) against 20221031.1308.130cc26, I was able to run the tests with a manual procedure borrowed from the build.py
script (which is currently tailored for Windows):
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(setenv "QT_QPA_PLATFORM" "offscreen")
(setenv "QT_QUICK_BACKEND" "software")
;; The tests require a writable HOME.
(setenv "HOME" "/tmp")
(display "Running unittests...\n")
(invoke "tests/unittests" "-mutejamid")
(display "Running functional tests...\n")
;; This is to allow building from the source tarball or
;; directly from the git repository.
(let ((tests-qml (if (file-exists? "../client-qt/tests")
"../client-qt/tests/qml"
"../tests/qml")))
(invoke "tests/qml_tests" "-mutejamid"
"-input" tests-qml)))))
The unittests all pass, but the qml_tests return some failures:
starting phase `check'
Running unittests...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/runtime-nixbld'
(process:2064): libnotify-WARNING **: 20:06:20.854: Failed to connect to proxy
No accounts to migrate
20:06:20.857 os_core_unix.c !pjlib 2.12.1 for POSIX initialized
Daemon is running
[==========] Running 3 tests from 2 test suites.
[----------] Global test environment set-up.
[----------] 2 tests from AccountFixture
[ RUN ] AccountFixture.InitialAccountListCheck
[ OK ] AccountFixture.InitialAccountListCheck (0 ms)
[ RUN ] AccountFixture.CreateSIPAccountTest
error initializing NetworkManager client: Could not connect: No such file or directory
AccountModelPimpl::slotVolatileAccountDetailsChanged, can't find "1d75d198d2a21f3d"
AccountModelPimpl::slotVolatileAccountDetailsChanged, can't find "1d75d198d2a21f3d"
Syncing lrc accounts list with the daemon
"detected new account 1d75d198d2a21f3d"
database "/tmp/.local/share/unittests/jami/1d75d198d2a21f3d/history.db" version set to: "1"
Syncing lrc accounts list with the daemon
Syncing lrc accounts list with the daemon
"detected account removal 1d75d198d2a21f3d"
[ OK ] AccountFixture.CreateSIPAccountTest (4950 ms)
[----------] 2 tests from AccountFixture (4950 ms total)
[----------] 1 test from ContactFixture
[ RUN ] ContactFixture.AddSIPContactTest
AccountModelPimpl::slotVolatileAccountDetailsChanged, can't find "f96505d5790f5317"
AccountModelPimpl::slotVolatileAccountDetailsChanged, can't find "f96505d5790f5317"
Syncing lrc accounts list with the daemon
"detected new account f96505d5790f5317"
database "/tmp/.local/share/jami/f96505d5790f5317/history.db" version set to: "1"
Syncing lrc accounts list with the daemon
Syncing lrc accounts list with the daemon
"detected account removal f96505d5790f5317"
[ OK ] ContactFixture.AddSIPContactTest (14999 ms)
[----------] 1 test from ContactFixture (14999 ms total)
[----------] Global test environment tear-down
[==========] 3 tests from 2 test suites ran. (19950 ms total)
[ PASSED ] 3 tests.
Destroying connectivity monitor
Running functional tests...
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/runtime-nixbld'
(process:2082): libnotify-WARNING **: 20:06:41.435: Failed to connect to proxy
No accounts to migrate
dbus not connected
qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
Can't update current account info data for ""
20:06:41.437 os_core_unix.c !pjlib 2.12.1 for POSIX initialized
Daemon is running
********* Start testing of qml_test *********
Config: Using QtTest library 6.3.1, Qt 6.3.1 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 10.3.0), unknown unknown
QWARN : qml_test::tst_ChatViewFooter::compile()
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_ChatViewFooter.qml produced 1 error(s):
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_ChatViewFooter.qml:28,1: "qrc:/src/app/mainview/components": no such directory
Working directory: /tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build
Import paths:
'/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build/tests'
'qrc:/qt-project.org/imports'
'/gnu/store/g0cpw37529bbz2f0zbbwmivpd4igp4w6-qt5compat-6.3.1/lib/qt6/qml'
'/gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/lib/qt6/qml'
'/gnu/store/k0v5qlk1gkl62d0wspsy9y6khrn5cq0c-qtmultimedia-6.3.1/lib/qt6/qml'
'/gnu/store/1228mp35skd88ijx799v5851paadv9wg-qtwebchannel-6.3.1/lib/qt6/qml'
'/gnu/store/iygnhxwydlwbs1hc9knjvam6im489zyl-qtwebengine-6.3.1/lib/qt6/qml'
Plugin paths:
'.'
FAIL! : qml_test::tst_ChatViewFooter::compile() "qrc:/src/app/mainview/components": no such directory
Loc: [/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_ChatViewFooter.qml(28)]
QWARN : qml_test::UnknownTestFunc() dbus not connected
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() Can't update current account info data for ""
QWARN : qml_test::tst_FilesToSendContainer::compile()
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_FilesToSendContainer.qml produced 1 error(s):
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_FilesToSendContainer.qml:28,1: "qrc:/src/app/mainview/components": no such directory
Working directory: /tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build
Import paths:
'/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build/tests'
'qrc:/qt-project.org/imports'
'/gnu/store/g0cpw37529bbz2f0zbbwmivpd4igp4w6-qt5compat-6.3.1/lib/qt6/qml'
'/gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/lib/qt6/qml'
'/gnu/store/k0v5qlk1gkl62d0wspsy9y6khrn5cq0c-qtmultimedia-6.3.1/lib/qt6/qml'
'/gnu/store/1228mp35skd88ijx799v5851paadv9wg-qtwebchannel-6.3.1/lib/qt6/qml'
'/gnu/store/iygnhxwydlwbs1hc9knjvam6im489zyl-qtwebengine-6.3.1/lib/qt6/qml'
Plugin paths:
'.'
FAIL! : qml_test::tst_FilesToSendContainer::compile() "qrc:/src/app/mainview/components": no such directory
Loc: [/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_FilesToSendContainer.qml(28)]
QWARN : qml_test::UnknownTestFunc() dbus not connected
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() Can't update current account info data for ""
QWARN : qml_test::UnknownTestFunc() error initializing NetworkManager client: Could not connect: No such file or directory
PASS : qml_test::Local Account Test::initTestCase()
PASS : qml_test::Local Account Test::test_initially_no_account()
PASS : qml_test::Local Account Test::cleanupTestCase()
QWARN : qml_test::UnknownTestFunc() dbus not connected
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() Can't update current account info data for ""
QWARN : qml_test::tst_PresenceIndicator::compile()
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_PresenceIndicator.qml produced 1 error(s):
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_PresenceIndicator.qml:25,1: "qrc:/src/app/commoncomponents": no such directory
Working directory: /tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build
Import paths:
'/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build/tests'
'qrc:/qt-project.org/imports'
'/gnu/store/g0cpw37529bbz2f0zbbwmivpd4igp4w6-qt5compat-6.3.1/lib/qt6/qml'
'/gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/lib/qt6/qml'
'/gnu/store/k0v5qlk1gkl62d0wspsy9y6khrn5cq0c-qtmultimedia-6.3.1/lib/qt6/qml'
'/gnu/store/1228mp35skd88ijx799v5851paadv9wg-qtwebchannel-6.3.1/lib/qt6/qml'
'/gnu/store/iygnhxwydlwbs1hc9knjvam6im489zyl-qtwebengine-6.3.1/lib/qt6/qml'
Plugin paths:
'.'
FAIL! : qml_test::tst_PresenceIndicator::compile() "qrc:/src/app/commoncomponents": no such directory
Loc: [/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_PresenceIndicator.qml(25)]
QWARN : qml_test::UnknownTestFunc() dbus not connected
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() qt.core.qobject.connect: QObject::connect(PreviewEngine, MessagesAdapter): invalid nullptr parameter
QWARN : qml_test::UnknownTestFunc() Can't update current account info data for ""
QWARN : qml_test::tst_WizardView::compile()
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_WizardView.qml produced 1 error(s):
/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_WizardView.qml:27,1: "qrc:/src/app/wizardview": no such directory
Working directory: /tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build
Import paths:
'/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/build/tests'
'qrc:/qt-project.org/imports'
'/gnu/store/g0cpw37529bbz2f0zbbwmivpd4igp4w6-qt5compat-6.3.1/lib/qt6/qml'
'/gnu/store/8nlck8a9s88krl7m8a0d36yf3j2b7mv4-qtdeclarative-6.3.1/lib/qt6/qml'
'/gnu/store/k0v5qlk1gkl62d0wspsy9y6khrn5cq0c-qtmultimedia-6.3.1/lib/qt6/qml'
'/gnu/store/1228mp35skd88ijx799v5851paadv9wg-qtwebchannel-6.3.1/lib/qt6/qml'
'/gnu/store/iygnhxwydlwbs1hc9knjvam6im489zyl-qtwebengine-6.3.1/lib/qt6/qml'
Plugin paths:
'.'
FAIL! : qml_test::tst_WizardView::compile() "qrc:/src/app/wizardview": no such directory
Loc: [/tmp/guix-build-jami-20221031.1308.130cc26.drv-0/jami-project/client-qt/tests/qml/src/tst_WizardView.qml(27)]
Totals: 3 passed, 4 failed, 0 skipped, 0 blacklisted, 16ms
********* Finished testing of qml_test *********
Destroying connectivity monitor
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "tests/qml_tests" arguments: ("-mutejamid" "-input" "../client-qt/tests/qml") exit-status: 4 term-signal: #f stop-signal: #f>
phase `check' failed after 22.1 seconds
command "tests/qml_tests" "-mutejamid" "-input" "../client-qt/tests/qml" failed with status 4
Ideas?
Thanks!