Commit 7054608d authored by David Jarvie's avatar David Jarvie
Browse files

Partial test class for KAEvent

parent 3c3ecb1c
......@@ -3,11 +3,19 @@ include(ECMMarkAsTest)
find_package(Qt5DBus CONFIG REQUIRED)
find_package(Qt5Test CONFIG REQUIRED)
########### next target ###############
macro(macro_unit_tests)
foreach(_testname ${ARGN})
add_executable(${_testname} ${_testname}.cpp)
add_test(NAME ${_testname} COMMAND ${_testname})
ecm_mark_as_test(${_testname})
target_link_libraries(${_testname}
KF5AlarmCalendar
Qt5::DBus
Qt5::Test)
endforeach()
endmacro()
set(kadatetimetest_SRCS kadatetimetest.cpp)
add_executable(kadatetimetest ${kadatetimetest_SRCS})
add_test(kadatetimetest kadatetimetest)
ecm_mark_as_test(kadatetimetest)
target_link_libraries(kadatetimetest KF5::AlarmCalendar Qt5::DBus Qt5::Test)
macro_unit_tests(
kadatetimetest
kaeventtest
)
This diff is collapsed.
/*
This file is part of kalarmcal library, which provides access to KAlarm
calendar data.
Copyright (c) 2018 David Jarvie <djarvie@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later version.
This library 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 Library General Public
License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KAEVENTTEST_H
#define KAEVENTTEST_H
#include <QObject>
class KAEventTest : public QObject
{
Q_OBJECT
private Q_SLOTS:
void constructors();
void flags();
void kcalevent();
};
#endif
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