Commit ca492964 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to create autotests

parent f54fb279
......@@ -22,6 +22,8 @@ add_executable(pimsettingexporterconsole ${pimsettingexporterconsole_SRCS})
target_link_libraries(pimsettingexporterconsole
pimsettingexporterprivate
)
if (BUILD_TESTING)
add_subdirectory(autotests)
endif()
install(TARGETS pimsettingexporterconsole ${INSTALL_TARGETS_DEFAULT_ARGS} )
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
include_directories(
${CMAKE_SOURCE_DIR}/pimcommon
)
set( pimsettingexporterconsole_loginfiletest_SRCS loginfiletest.cpp )
add_executable( pimsettingexporterconsole_loginfiletest ${pimsettingexporterconsole_loginfiletest_SRCS})
add_test( pimsettingexporterconsole_loginfiletest pimsettingexporterconsole_loginfiletest)
ecm_mark_as_test(pimsettingexporterconsole_loginfiletest)
target_link_libraries( pimsettingexporterconsole_loginfiletest Qt5::Test)
/*
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 "loginfiletest.h"
#include <qtest.h>
LogInFileTest::LogInFileTest(QObject *parent)
: QObject(parent)
{
}
LogInFileTest::~LogInFileTest()
{
}
QTEST_MAIN(LogInFileTest)
/*
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 LOGINFILETEST_H
#define LOGINFILETEST_H
#include <QObject>
class LogInFileTest : public QObject
{
Q_OBJECT
public:
explicit LogInFileTest(QObject *parent = Q_NULLPTR);
~LogInFileTest();
};
#endif // LOGINFILETEST_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