Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 493b6b3c authored by Daniel Vrátil's avatar Daniel Vrátil 🤖

Fix unittest build

parent 04fb5189
......@@ -59,7 +59,9 @@ ecm_add_test(mailserializerplugintest.cpp ${CMAKE_BINARY_DIR}/serializers/akonad
LINK_LIBRARIES KF5::AkonadiMime KF5::AkonadiCore KF5::AkonadiPrivate KF5::Mime Qt5::Test
TEST_NAME mailserializerplugintest
)
ecm_add_test(mailserializertest.cpp ${CMAKE_BINARY_DIR}/serializers/akonadi_serializer_mail_debug.cpp
ecm_add_test(mailserializertest.cpp
${CMAKE_SOURCE_DIR}/serializers/akonadi_serializer_mail.cpp
${CMAKE_BINARY_DIR}/serializers/akonadi_serializer_mail_debug.cpp
LINK_LIBRARIES KF5::AkonadiMime KF5::AkonadiCore KF5::AkonadiPrivate KF5::Mime Qt5::Test
TEST_NAME mailserializertest
)
......@@ -25,7 +25,7 @@
#include <QDebug>
#include <QTest>
QTEST_MAIN(MailSerializerPluginTest)
QTEST_GUILESS_MAIN(MailSerializerPluginTest)
using namespace Akonadi;
using namespace KMime;
......
......@@ -19,13 +19,19 @@
#include "mailserializertest.h"
#include "../serializers/akonadi_serializer_mail.cpp"
#include "../serializers/akonadi_serializer_mail.h"
#include "../src/messageflags.h"
#include "../src/messageparts.h"
#include <KMime/Message>
#include <qtest.h>
#include <QBuffer>
QTEST_MAIN(MailSerializerTest)
using namespace Akonadi;
using namespace KMime;
QTEST_GUILESS_MAIN(MailSerializerTest)
void MailSerializerTest::testEnvelopeDeserialize_data()
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment