Create autotests

wilder-work
Montel Laurent 11 years ago
parent 77e43effb0
commit 00dbab2dc0
  1. 9
      autotests/CMakeLists.txt
  2. 32
      autotests/kmmigratekmail4configtest.cpp
  3. 32
      autotests/kmmigratekmail4configtest.h

@ -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 )

@ -0,0 +1,32 @@
/*
Copyright (c) 2015 Montel Laurent <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, 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 <qtest.h>
KMMigrateKMail4ConfigTest::KMMigrateKMail4ConfigTest(QObject *parent)
: QObject(parent)
{
}
KMMigrateKMail4ConfigTest::~KMMigrateKMail4ConfigTest()
{
}
QTEST_MAIN(KMMigrateKMail4ConfigTest)

@ -0,0 +1,32 @@
/*
Copyright (c) 2015 Montel Laurent <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, 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 <QObject>
class KMMigrateKMail4ConfigTest : public QObject
{
Q_OBJECT
public:
explicit KMMigrateKMail4ConfigTest(QObject *parent = Q_NULLPTR);
~KMMigrateKMail4ConfigTest();
};
#endif // KMMIGRATEKMAIL4CONFIGTEST_H
Loading…
Cancel
Save