Bug 453005

Summary: 21.12.3: test suite is failing
Product: [Frameworks and Libraries] ksmtp Reporter: kloczek <kloczko.tomasz>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: nicolas.fella
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:

Description kloczek 2022-04-25 17:40:50 UTC
cmake configuration

[tkloczko@devel-g2v x86_64-redhat-linux-gnu]$ cmake -L
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Error: The source directory "/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/x86_64-redhat-linux-gnu" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-- Cache values
APPSTREAMCLI:FILEPATH=/usr/bin/appstreamcli
BUILD_COVERAGE:BOOL=OFF
BUILD_QCH:BOOL=ON
BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON
BUILD_WITH_QT6:BOOL=OFF
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
ECM_DIR:PATH=/usr/share/ECM/cmake
ECM_MKSPECS_INSTALL_DIR:PATH=lib64/qt5/mkspecs/modules
ENABLE_BSYMBOLICFUNCTIONS:BOOL=OFF
FISH_EXECUTABLE:FILEPATH=/usr/bin/fish
GETTEXT_MSGFMT_EXECUTABLE:FILEPATH=/usr/bin/msgfmt
GETTEXT_MSGMERGE_EXECUTABLE:FILEPATH=/usr/bin/msgmerge
KDE_CLANG_FORMAT_EXECUTABLE:FILEPATH=/usr/bin/clang-format
KDE_INSTALL_PREFIX_SCRIPT:BOOL=OFF
KDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON
KDE_SKIP_UNINSTALL_TARGET:BOOL=OFF
KF5Auth_DIR:PATH=/usr/lib64/cmake/KF5Auth
KF5Bookmarks_DIR:PATH=/usr/lib64/cmake/KF5Bookmarks
KF5Codecs_DIR:PATH=/usr/lib64/cmake/KF5Codecs
KF5Completion_DIR:PATH=/usr/lib64/cmake/KF5Completion
KF5ConfigWidgets_DIR:PATH=/usr/lib64/cmake/KF5ConfigWidgets
KF5Config_DIR:PATH=/usr/lib64/cmake/KF5Config
KF5CoreAddons_DIR:PATH=/usr/lib64/cmake/KF5CoreAddons
KF5I18n_DIR:PATH=/usr/lib64/cmake/KF5I18n
KF5ItemViews_DIR:PATH=/usr/lib64/cmake/KF5ItemViews
KF5JobWidgets_DIR:PATH=/usr/lib64/cmake/KF5JobWidgets
KF5KIO_DIR:PATH=/usr/lib64/cmake/KF5KIO
KF5Service_DIR:PATH=/usr/lib64/cmake/KF5Service
KF5Solid_DIR:PATH=/usr/lib64/cmake/KF5Solid
KF5WidgetsAddons_DIR:PATH=/usr/lib64/cmake/KF5WidgetsAddons
KF5WindowSystem_DIR:PATH=/usr/lib64/cmake/KF5WindowSystem
KF5XmlGui_DIR:PATH=/usr/lib64/cmake/KF5XmlGui
KI18N_PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3
QUERY_EXECUTABLE:FILEPATH=/usr/bin/qmake
Qt5Concurrent_DIR:PATH=/usr/lib64/cmake/Qt5Concurrent
Qt5Core_DIR:PATH=/usr/lib64/cmake/Qt5Core
Qt5DBus_DIR:PATH=/usr/lib64/cmake/Qt5DBus
Qt5Gui_DIR:PATH=/usr/lib64/cmake/Qt5Gui
Qt5Help_DIR:PATH=/usr/lib64/cmake/Qt5Help
Qt5Network_DIR:PATH=/usr/lib64/cmake/Qt5Network
Qt5Sql_DIR:PATH=/usr/lib64/cmake/Qt5Sql
Qt5Test_DIR:PATH=/usr/lib64/cmake/Qt5Test
Qt5Widgets_DIR:PATH=/usr/lib64/cmake/Qt5Widgets
Qt5Xml_DIR:PATH=/usr/lib64/cmake/Qt5Xml
USE_UNITY_CMAKE_SUPPORT:BOOL=OFF
_qmake_executable_default:FILEPATH=/usr/bin/qmake
_qtcoreTagsPath:PATH=_qtcoreTagsPath-NOTFOUND

and test suite is failing on:

+ cd ksmtp-21.12.3
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/x86_64-redhat-linux-gnu
    Start 1: appstreamtest
1/2 Test #1: appstreamtest ....................   Passed    0.02 sec
    Start 2: smtptest
2/2 Test #2: smtptest .........................Subprocess aborted***Exception: 305.83 sec
********* Start testing of SmtpTest *********
Config: Using QtTest library 5.15.3, Qt 5.15.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 12.0.1 20220413 (Red Hat 12.0.1-0)), fedora 37
PASS   : SmtpTest::initTestCase()
QDEBUG : SmtpTest::testHello(EHLO OK) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(EHLO OK) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(EHLO OK) KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO OK) ### Session state is: KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO OK) KSmtp::Session::Quitting
QWARN  : SmtpTest::testHello(EHLO OK) org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::RemoteHostClosedError "The remote host closed the connection"
QDEBUG : SmtpTest::testHello(EHLO OK) KSmtp::Session::Disconnected
PASS   : SmtpTest::testHello(EHLO OK)
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO unknown) ### Session state is: KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::Quitting
QWARN  : SmtpTest::testHello(EHLO unknown) org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::RemoteHostClosedError "The remote host closed the connection"
QDEBUG : SmtpTest::testHello(EHLO unknown) KSmtp::Session::Disconnected
PASS   : SmtpTest::testHello(EHLO unknown)
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO not implemented) ### Session state is: KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::Quitting
QWARN  : SmtpTest::testHello(EHLO not implemented) org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::RemoteHostClosedError "The remote host closed the connection"
QDEBUG : SmtpTest::testHello(EHLO not implemented) KSmtp::Session::Disconnected
PASS   : SmtpTest::testHello(EHLO not implemented)
QDEBUG : SmtpTest::testHello(ERROR) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(ERROR) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(ERROR) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(ERROR) KSmtp::Session::Handshake
QWARN  : SmtpTest::testHello(ERROR) org.kde.pim.ksmtp: KSmtp::Session: Handshake failed with both EHLO and HELO
QDEBUG : SmtpTest::testHello(ERROR) KSmtp::Session::Quitting
QWARN  : SmtpTest::testHello(ERROR) org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::RemoteHostClosedError "The remote host closed the connection"
QDEBUG : SmtpTest::testHello(ERROR) KSmtp::Session::Disconnected
QDEBUG : SmtpTest::testHello(ERROR) ### Session state is: KSmtp::Session::Disconnected
XFAIL  : SmtpTest::testHello(ERROR) Expected failure if HELO command not recognized
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/smtptest.cpp(77)]
PASS   : SmtpTest::testHello(ERROR)
QDEBUG : SmtpTest::testHello(EHLO hostname) KSmtp::Session::Ready
QDEBUG : SmtpTest::testHello(EHLO hostname) KSmtp::Session::Handshake
QDEBUG : SmtpTest::testHello(EHLO hostname) KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO hostname) ### Session state is: KSmtp::Session::NotAuthenticated
QDEBUG : SmtpTest::testHello(EHLO hostname) KSmtp::Session::Quitting
QWARN  : SmtpTest::testHello(EHLO hostname) org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::RemoteHostClosedError "The remote host closed the connection"
QDEBUG : SmtpTest::testHello(EHLO hostname) KSmtp::Session::Disconnected
PASS   : SmtpTest::testHello(EHLO hostname)
QWARN  : SmtpTest::testLoginJob(Plain auth ok) org.kde.pim.ksmtp: sasl_client_start failed with: -4 "SASL(-4): no mechanism available: No worthy mechs found"
FAIL!  : SmtpTest::testLoginJob(Plain auth ok) 'login->error() == errorCode' returned FALSE. (Unexpected LoginJob error code)
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/smtptest.cpp(166)]
QWARN  : SmtpTest::testLoginJob(Login auth ok) org.kde.pim.ksmtp: sasl_client_start failed with: -4 "SASL(-4): no mechanism available: No worthy mechs found"
FAIL!  : SmtpTest::testLoginJob(Login auth ok) 'login->error() == errorCode' returned FALSE. (Unexpected LoginJob error code)
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/smtptest.cpp(166)]
QWARN  : SmtpTest::testLoginJob(Login not supported) org.kde.pim.ksmtp: sasl_client_start failed with: -4 "SASL(-4): no mechanism available: No worthy mechs found"
FAIL!  : SmtpTest::testLoginJob(Login not supported) 'login->error() == errorCode' returned FALSE. (Unexpected LoginJob error code)
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/smtptest.cpp(166)]
QWARN  : SmtpTest::testLoginJob(Auth not supported) org.kde.pim.ksmtp: LoginJob: Couldn't choose an authentication method. Please retry with :  ()
XFAIL  : SmtpTest::testLoginJob(Auth not supported) Expected failure if not authentication method supported
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/smtptest.cpp(171)]
QWARN  : SmtpTest::testLoginJob(Auth not supported) org.kde.pim.ksmtp: SMTP Socket error: QAbstractSocket::RemoteHostClosedError "The remote host closed the connection"
PASS   : SmtpTest::testLoginJob(Auth not supported)
QWARN  : SmtpTest::testLoginJob(Wrong password) org.kde.pim.ksmtp: sasl_client_start failed with: -4 "SASL(-4): no mechanism available: No worthy mechs found"
XFAIL  : SmtpTest::testLoginJob(Wrong password) Expected failure if wrong password
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/smtptest.cpp(171)]
FAIL!  : SmtpTest::testLoginJob(Wrong password) Compared values are not the same
   Actual   (QString::fromUtf8(received)): "C: QUIT"
   Expected (QString::fromUtf8(expected)): "C: AUTH PLAIN AGxvZ2luAHBhc3N3b3Jk"
   Loc: [/home/tkloczko/rpmbuild/BUILD/ksmtp-21.12.3/autotests/fakeserver.cpp(207)]

=== Received signal at function time: 300001ms, total time: 300020ms, dumping stack ===
GNU gdb (GDB) G2V 11.2-3.fc35
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 1697511
[New LWP 1697512]
[New LWP 1697531]
[New LWP 1697532]
../../gdb/objfiles.h:510: internal-error: sect_index_data not initialized
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) [answered Y; input not from terminal]
=== End of stack trace ===
QFATAL : SmtpTest::testLoginJob(Wrong password) Test function timed out
FAIL!  : SmtpTest::testLoginJob(Wrong password) Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 7 passed, 5 failed, 0 skipped, 0 blacklisted, 305261ms
********* Finished testing of SmtpTest *********


50% tests passed, 1 tests failed out of 2

Total Test time (real) = 305.86 sec

The following tests FAILED:
          2 - smtptest (Subprocess aborted)
Errors while running CTest
Comment 1 Nicolas Fella 2022-04-25 21:49:28 UTC
21.12 is EOL