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 bc5575c9 authored by Laurent Montel's avatar Laurent Montel 😁

Add autotests

parent b8a0a359
......@@ -114,6 +114,7 @@ set(kaddressbook_LIB_SRCS
${kaddressbook_printing_SRCS}
${kaddressbook_xxport_SRCS}
${kaddressbook_sendmail_SRCS}
${kaddressbook_sendvcards_SRCS}
)
qt4_add_dbus_adaptor( kaddressbook_LIB_SRCS org.kde.kaddressbook.xml mainwidget.h MainWidget)
......@@ -137,7 +138,7 @@ target_link_libraries(kaddressbookprivate
)
add_subdirectory(merge/tests)
add_subdirectory(sendmail/tests)
add_subdirectory(sendvcards/autotests)
if(QGPGME_FOUND)
target_link_libraries(kaddressbookprivate ${QGPGME_LIBRARIES})
endif()
......
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/../.. )
include(AkonadiMacros)
set(KDEPIMLIBS_RUN_ISOLATED_TESTS TRUE)
set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE)
add_akonadi_isolated_test_advanced( sendvcardsjobtest.cpp "" "kaddressbookprivate;kabc")
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "sendvcardsjobtest.h"
#include <qtest_kde.h>
SendVcardsJobTest::SendVcardsJobTest(QObject *parent)
: QObject(parent)
{
}
SendVcardsJobTest::~SendVcardsJobTest()
{
}
QTEST_KDEMAIN(SendVcardsJobTest, NoGUI)
/*
This file is part of KAddressBook.
Copyright (c) 2015 Laurent Montel <montel@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef SENDVCARDSJOBTEST_H
#define SENDVCARDSJOBTEST_H
#include <QObject>
class SendVcardsJobTest : public QObject
{
Q_OBJECT
public:
explicit SendVcardsJobTest(QObject *parent = 0);
~SendVcardsJobTest();
};
#endif // SENDVCARDSJOBTEST_H
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