diff --git a/autotests/CMakeLists.txt b/autotests/CMakeLists.txt index 0c7f91838..f3f8404fc 100644 --- a/autotests/CMakeLists.txt +++ b/autotests/CMakeLists.txt @@ -67,3 +67,12 @@ set(KDEPIMLIBS_RUN_ISOLATED_TESTS TRUE) set(KDEPIMLIBS_RUN_SQLITE_ISOLATED_TESTS TRUE) add_akonadi_isolated_test_advanced( tagselectdialogtest.cpp "../tag/tagselectdialog.cpp;../kmail_debug.cpp" "${KDEPIMLIBS_AKONADI_LIBS};kmailprivate;mailcommon") + + +set( kmail_migratekmail4configtest_source kmmigratekmail4configtest.cpp ../kmmigratekmail4config.cpp) +add_executable(migratekmail4configtest ${kmail_migratekmail4configtest_source}) +ecm_mark_as_test(kmail-migratekmail4configtest) +target_link_libraries( migratekmail4configtest Qt5::Test ) + + + diff --git a/autotests/kmmigratekmail4configtest.cpp b/autotests/kmmigratekmail4configtest.cpp new file mode 100644 index 000000000..f4559fa0b --- /dev/null +++ b/autotests/kmmigratekmail4configtest.cpp @@ -0,0 +1,32 @@ +/* + Copyright (c) 2015 Montel Laurent + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + 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 "kmmigratekmail4configtest.h" +#include + +KMMigrateKMail4ConfigTest::KMMigrateKMail4ConfigTest(QObject *parent) + : QObject(parent) +{ + +} + +KMMigrateKMail4ConfigTest::~KMMigrateKMail4ConfigTest() +{ + +} + +QTEST_MAIN(KMMigrateKMail4ConfigTest) diff --git a/autotests/kmmigratekmail4configtest.h b/autotests/kmmigratekmail4configtest.h new file mode 100644 index 000000000..45594b8b5 --- /dev/null +++ b/autotests/kmmigratekmail4configtest.h @@ -0,0 +1,32 @@ +/* + Copyright (c) 2015 Montel Laurent + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License, version 2, as + published by the Free Software Foundation. + + 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 KMMIGRATEKMAIL4CONFIGTEST_H +#define KMMIGRATEKMAIL4CONFIGTEST_H + +#include + +class KMMigrateKMail4ConfigTest : public QObject +{ + Q_OBJECT +public: + explicit KMMigrateKMail4ConfigTest(QObject *parent = Q_NULLPTR); + ~KMMigrateKMail4ConfigTest(); + +}; + +#endif // KMMIGRATEKMAIL4CONFIGTEST_H