Package: libqofono-tests Version: 0.124-1 Severity: minor X-Debbugs-Cc: [email protected]
While working on telepathy-ofono, I decided to make a quick test harness framework utilizing ofono-phonesim to catch things that I was potentially breaking (and writing it with an eye towards using it for autopkgtests later on).
While doing this, I noticed some failing tests for libqofono. Since I'm doing this inside a container without a gui, I'm skipping over the interactive tests that require pushing buttons (for now). I've listed some of the failing tests below, and attached the full log and script.
I'm filing this bug as minor because there could be issues with my setup, and I'm actively digging further into the failures across the stack. However, some of these look valid and might be worth digging into; for example:
task-0: FAIL! : TestQOfonoCallForwarding::testQOfonoCallForwarding() Compared values are not the same
task-0: Actual (((voiceBusyChanged.count()))): 0 task-0: Expected (1) : 1The QTest code is setting VoiceUnconditional to a phone number, which should (temporarily) disable all the other call forwarding stuff and trigger various PropertyChanged signals (NotReachable, Busy, etc). I see Ofono sending all the requisite signals (Busy set to "", ForwardingFlagOnSim set to true, etc; and they arrive in that order according to dbus-monitor). Yet for some reason, QOfono hasn't increased voiceBusyChanged.count() to 1 while it HAS increased forwardingFlagOnSimChanged.count() to 1. Could be a race, could be a bug somewhere in QOfono, or it could be an invalid test somehow.
Test failure summary below: TestQOfonoCallForwarding: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 15833ms -- TestQOfonoConnectionManagerContext: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 15775ms -- TestOfonoMultipartyCall: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 4ms -- TestQOfonoSimManager: 4 passed, 1 failed, 0 skipped, 0 blacklisted, 363ms -- Tst_qofonoTest: task-0: Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 7ms
test.sh
Description: application/shellscript
root@d136f78eae7a:/libqofono-0.124# dbus-test-runner -m 120 --bus-type=both -t ~/test.sh
(dbus-test-runner:112232): libdbustest-WARNING **: 07:55:19.289: Setting bus to BOTH, which is typically only used as a default value.
DBus daemon: unix:path=/tmp/dbus-nzIC1IXDhr,guid=b6c69aef0d1681035bb9113e6926b267
task-0: Started with PID: 112237
ofonod[112241]: oFono version 2.18
src/main.c:main() Using configuration directory: /etc/ofono
task-0: enable modem
task-0: Connecting modem /phonesim...
task-0: online modem
ofonod[112241]: Requested file structure differs from SIM: 6fb7
task-0: Setting modem /phonesim online...
ofonod[112241]: RegisterProfile() replied an error: org.freedesktop.DBus.Error.ServiceUnknown, The name org.bluez was not provided by any .service files
ofonod[112241]: RegisterProfile() replied an error: org.freedesktop.DBus.Error.ServiceUnknown, The name org.bluez was not provided by any .service files
ofonod[112241]: Can't read CGACT contexts.
task-0: enable cbs:
task-0: Enabling cell broadcast on modem /phonesim...
task-0: activate gprs:
task-0: Connecting modem /phonesim...
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonocallbarring:
task-0: ********* Start testing of TestQOfonoCallBarring *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoCallBarring::initTestCase()
task-0: PASS : TestQOfonoCallBarring::testQOfonoCallBarring()
task-0: PASS : TestQOfonoCallBarring::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 410ms
task-0: ********* Finished testing of TestQOfonoCallBarring *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonocallforwarding:
task-0: ********* Start testing of TestQOfonoCallForwarding *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoCallForwarding::initTestCase()
task-0: QDEBUG : TestQOfonoCallForwarding::testQOfonoCallForwarding() VoiceUnconditional : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QDEBUG : TestQOfonoCallForwarding::testQOfonoCallForwarding() VoiceBusy : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QDEBUG : TestQOfonoCallForwarding::testQOfonoCallForwarding() VoiceNoReply : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QDEBUG : TestQOfonoCallForwarding::testQOfonoCallForwarding() VoiceNoReplyTimeout : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QDEBUG : TestQOfonoCallForwarding::testQOfonoCallForwarding() VoiceNotReachable : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: FAIL! : TestQOfonoCallForwarding::testQOfonoCallForwarding() Compared values are not the same
task-0: Actual (((voiceBusyChanged.count()))): 0
task-0: Expected (1) : 1
task-0: Loc: [tst_qofonocallforwarding.cpp(121)]
task-0: PASS : TestQOfonoCallForwarding::cleanupTestCase()
task-0: Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 15833ms
task-0: ********* Finished testing of TestQOfonoCallForwarding *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonocallmeter:
task-0: ********* Start testing of TestQOfonoCallMeter *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoCallMeter::initTestCase()
task-0: PASS : TestQOfonoCallMeter::testQOfonoCallMeter()
task-0: PASS : TestQOfonoCallMeter::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 54ms
task-0: ********* Finished testing of TestQOfonoCallMeter *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonocallsettings:
task-0: ********* Start testing of TestQOfonoCallSettings *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoCallSettings::initTestCase()
task-0: QDEBUG : TestQOfonoCallSettings::testQOfonoCallSettings() HideCallerId : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QDEBUG : TestQOfonoCallSettings::testQOfonoCallSettings() VoiceCallWaiting : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: PASS : TestQOfonoCallSettings::testQOfonoCallSettings()
task-0: PASS : TestQOfonoCallSettings::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 8041ms
task-0: ********* Finished testing of TestQOfonoCallSettings *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonocallvolume:
task-0: ********* Start testing of TestQOfonoCallVolume *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoCallVolume::initTestCase()
task-0: QDEBUG : TestQOfonoCallVolume::testQOfonoCallVolume() SpeakerVolume : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QDEBUG : TestQOfonoCallVolume::testQOfonoCallVolume() MicrophoneVolume : QDBusError("org.ofono.Error.NotImplemented", "Implementation not provided")
task-0: PASS : TestQOfonoCallVolume::testQOfonoCallVolume()
task-0: PASS : TestQOfonoCallVolume::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 5209ms
task-0: ********* Finished testing of TestQOfonoCallVolume *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonoconnman:
task-0: ********* Start testing of TestOfonoConnMan *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestOfonoConnMan::initTestCase()
task-0: PASS : TestOfonoConnMan::testOfonoConnMan()
task-0: PASS : TestOfonoConnMan::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 362ms
task-0: ********* Finished testing of TestOfonoConnMan *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonoconnmancontext:
task-0: ********* Start testing of TestQOfonoConnectionManagerContext *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoConnectionManagerContext::initTestCase()
task-0: QDEBUG : TestQOfonoConnectionManagerContext::testQOfonoConnectionManagerContext() Preferred : QDBusError("org.ofono.Error.InUse", "The resource is currently in use")
task-0: FAIL! : TestQOfonoConnectionManagerContext::testQOfonoConnectionManagerContext() Compared values are not the same
task-0: Actual (((preferred.count()))): 0
task-0: Expected (1) : 1
task-0: Loc: [tst_qofonoconnmancontext.cpp(98)]
task-0: PASS : TestQOfonoConnectionManagerContext::cleanupTestCase()
task-0: Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 15775ms
task-0: ********* Finished testing of TestQOfonoConnectionManagerContext *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonomessagemanager:
task-0: ********* Start testing of TestQOfonoMessageManager *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoMessageManager::initTestCase()
task-0: QDEBUG : TestQOfonoMessageManager::testQOfonoMessageManager() "/phonesim/message_2F4C3C105E04AAA8B7698A3379B2A0BB40F70E72"
task-0: QDEBUG : TestQOfonoMessageManager::testQOfonoMessageManager() ""
task-0: QWARN : TestQOfonoMessageManager::testQOfonoMessageManager() QDBusError("org.freedesktop.DBus.Error.UnknownObject", "Method \"GetProperties\" with signature \"\" on interface \"org.ofono.Message\" doesn't exist\n")
task-0: QWARN : TestQOfonoMessageManager::testQOfonoMessageManager() QOfonoMessageManager sendMessage failure: QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: PASS : TestQOfonoMessageManager::testQOfonoMessageManager()
task-0: QDEBUG : TestQOfonoMessageManager::testQOfonoMessageManagerSca() "+15551234567"
task-0: QDEBUG : TestQOfonoMessageManager::testQOfonoMessageManagerSca() ServiceCenterAddress : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: PASS : TestQOfonoMessageManager::testQOfonoMessageManagerSca()
task-0: PASS : TestQOfonoMessageManager::testQOfonoMessageManagerUseDeliveryReports()
task-0: PASS : TestQOfonoMessageManager::testQOfonoMessageManagerAlphabet()
task-0: PASS : TestQOfonoMessageManager::testQOfonoMessageManagerBearer()
task-0: PASS : TestQOfonoMessageManager::cleanupTestCase()
task-0: Totals: 7 passed, 0 failed, 0 skipped, 0 blacklisted, 5618ms
task-0: ********* Finished testing of TestQOfonoMessageManager *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonomessagewaiting:
task-0: ********* Start testing of TestQOfonoMessageWaiting *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoMessageWaiting::initTestCase()
ofonod[112241]: UnregisterProfile() replied an error: org.freedesktop.DBus.Error.ServiceUnknown, The name org.bluez was not provided by any .service files
ofonod[112241]: RegisterProfile() replied an error: org.freedesktop.DBus.Error.ServiceUnknown, The name org.bluez was not provided by any .service files
ofonod[112241]: Can't read CGACT contexts.
task-0: PASS : TestQOfonoMessageWaiting::testQOfonoMessageWaiting()
task-0: QDEBUG : TestQOfonoMessageWaiting::testQOfonoMessageWaitingSet() VoicemailMailboxNumber : QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: PASS : TestQOfonoMessageWaiting::testQOfonoMessageWaitingSet()
task-0: PASS : TestQOfonoMessageWaiting::cleanupTestCase()
task-0: Totals: 4 passed, 0 failed, 0 skipped, 0 blacklisted, 12495ms
task-0: ********* Finished testing of TestQOfonoMessageWaiting *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonomtksettings:
task-0: ********* Start testing of TestQOfonoMtkSettings *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: XFAIL : TestQOfonoMtkSettings::initTestCase() mtk settings is not supported by phonesim
task-0: Loc: [tst_qofonomtksettings.cpp(41)]
task-0: PASS : TestQOfonoMtkSettings::initTestCase()
task-0: QDEBUG : TestQOfonoMtkSettings::testQOfonoMtkSettings() has3G(): false
task-0: PASS : TestQOfonoMtkSettings::testQOfonoMtkSettings()
task-0: PASS : TestQOfonoMtkSettings::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 4ms
task-0: ********* Finished testing of TestQOfonoMtkSettings *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonomultipartycall:
task-0: ********* Start testing of TestOfonoMultipartyCall *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: FAIL! : TestOfonoMultipartyCall::initTestCase() Compared values are not the same
task-0: Actual (m->isValid()): 0
task-0: Expected (true) : 1
task-0: Loc: [tst_qofonomultipartycall.cpp(45)]
task-0: PASS : TestOfonoMultipartyCall::cleanupTestCase()
task-0: Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 4ms
task-0: ********* Finished testing of TestOfonoMultipartyCall *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofononetworkoperator:
task-0: ********* Start testing of TestQOfonoNetworkOperator *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoNetworkOperator::initTestCase()
task-0: PASS : TestQOfonoNetworkOperator::testQOfonoNetworkOperator()
task-0: PASS : TestQOfonoNetworkOperator::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 6420ms
task-0: ********* Finished testing of TestQOfonoNetworkOperator *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofononetworkregistration:
task-0: ********* Start testing of TestQOfonoNetworkRegistration *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoNetworkRegistration::initTestCase()
ofonod[112241]: UnregisterProfile() replied an error: org.freedesktop.DBus.Error.ServiceUnknown, The name org.bluez was not provided by any .service files
ofonod[112241]: RegisterProfile() replied an error: org.freedesktop.DBus.Error.ServiceUnknown, The name org.bluez was not provided by any .service files
ofonod[112241]: Can't read CGACT contexts.
task-0: PASS : TestQOfonoNetworkRegistration::testQOfonoNetworkRegistration()
task-0: PASS : TestQOfonoNetworkRegistration::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 3863ms
task-0: ********* Finished testing of TestQOfonoNetworkRegistration *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonophonebook:
task-0: ********* Start testing of TestQOfonoPhonebook *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoPhonebook::initTestCase()
ofonod[112241]: export_entries_one_storage_cb with ME failed
task-0: PASS : TestQOfonoPhonebook::testQOfonoPhonebook()
task-0: PASS : TestQOfonoPhonebook::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 409ms
task-0: ********* Finished testing of TestQOfonoPhonebook *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonoradiosettings:
task-0: ********* Start testing of TestQOfonoRadioSettings *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoRadioSettings::initTestCase()
task-0: PASS : TestQOfonoRadioSettings::testQOfonoRadioSettings()
task-0: PASS : TestQOfonoRadioSettings::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 54ms
task-0: ********* Finished testing of TestQOfonoRadioSettings *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonosimmanager:
task-0: ********* Start testing of TestQOfonoSimManager *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoSimManager::initTestCase()
task-0: FAIL! : TestQOfonoSimManager::testQOfonoSimManager() Compared values are not the same
task-0: Actual (m->pinRetries().count()): 1
task-0: Expected (0) : 0
task-0: Loc: [tst_qofonosimmanager.cpp(91)]
task-0: QWARN : TestQOfonoSimManager::testQOfonoSimManagerPin() QOfonoSimManager::enterPin() failed: QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: QWARN : TestQOfonoSimManager::testQOfonoSimManagerPin() QOfonoSimManager::resetPin() failed: QDBusError("org.ofono.Error.InvalidFormat", "Argument format is not recognized")
task-0: PASS : TestQOfonoSimManager::testQOfonoSimManagerPin()
task-0: QDEBUG : TestQOfonoSimManager::testQOfonoSimManagerIcon() QOfonoSimManager getIcon failure: "Invalid arguments in method call"
task-0: PASS : TestQOfonoSimManager::testQOfonoSimManagerIcon()
task-0: PASS : TestQOfonoSimManager::cleanupTestCase()
task-0: Totals: 4 passed, 1 failed, 0 skipped, 0 blacklisted, 363ms
task-0: ********* Finished testing of TestQOfonoSimManager *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonosupplementaryservices:
task-0: ********* Start testing of TestQOfonoSupplementaryServices *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : TestQOfonoSupplementaryServices::initTestCase()
task-0: XFAIL : TestQOfonoSupplementaryServices::testQOfonoSupplementaryServices() '*226#' case fails
task-0: Loc: [tst_qofonosupplementaryservices.cpp(78)]
task-0: XFAIL : TestQOfonoSupplementaryServices::testQOfonoSupplementaryServices() '*#002**11#' case fails
task-0: Loc: [tst_qofonosupplementaryservices.cpp(96)]
task-0: PASS : TestQOfonoSupplementaryServices::testQOfonoSupplementaryServices()
task-0: PASS : TestQOfonoSupplementaryServices::cleanupTestCase()
task-0: Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 2395ms
task-0: ********* Finished testing of TestQOfonoSupplementaryServices *********
task-0:
task-0:
task-0: /usr/libexec/libqofono-qt5/tests/tst_qofonotest-qt5:
task-0: ********* Start testing of Tst_qofonoTest *********
task-0: Config: Using QtTest library 5.15.17, Qt 5.15.17 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 15.2.0), debian unknown
task-0: PASS : Tst_qofonoTest::initTestCase()
task-0: FAIL! : Tst_qofonoTest::testManager() '!modems.isEmpty()' returned FALSE. ()
task-0: Loc: [tst_qofonotest.cpp(94)]
task-0: PASS : Tst_qofonoTest::testModem()
=== Received signal at function time: 1ms, total time: 5ms, dumping stack ===
=== End of stack trace ===
task-0: QFATAL : Tst_qofonoTest::testScan() Received signal 11
task-0: Function time: 1ms Total time: 5ms
task-0: FAIL! : Tst_qofonoTest::testScan() Received a fatal error.
task-0: Loc: [Unknown file(0)]
task-0: Totals: 2 passed, 2 failed, 0 skipped, 0 blacklisted, 7ms
task-0: ********* Finished testing of Tst_qofonoTest *********
Aborted
task-0: Shutting down
DBus daemon: Shutdown

