From 475cadb03ba9bc40a85d98f09b21426547c2112f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Thu, 12 Feb 2015 13:58:35 +0100 Subject: [PATCH] added test skeleton for plugins --- tests/auto/auto.pro | 2 +- tests/auto/plugins/plugins.pro | 6 +++++ tests/auto/plugins/testplugins.cpp | 41 ++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 tests/auto/plugins/plugins.pro create mode 100644 tests/auto/plugins/testplugins.cpp diff --git a/tests/auto/auto.pro b/tests/auto/auto.pro index 5299fc13..c75c1b6e 100644 --- a/tests/auto/auto.pro +++ b/tests/auto/auto.pro @@ -1,2 +1,2 @@ TEMPLATE=subdirs -SUBDIRS=versioning devices jsonrpc events states actions rules +SUBDIRS=versioning devices jsonrpc events states actions rules plugins diff --git a/tests/auto/plugins/plugins.pro b/tests/auto/plugins/plugins.pro new file mode 100644 index 00000000..e56cb1cc --- /dev/null +++ b/tests/auto/plugins/plugins.pro @@ -0,0 +1,6 @@ +TARGET = testactions + +include(../../../guh.pri) +include(../autotests.pri) + +SOURCES += testplugins.cpp diff --git a/tests/auto/plugins/testplugins.cpp b/tests/auto/plugins/testplugins.cpp new file mode 100644 index 00000000..8c025434 --- /dev/null +++ b/tests/auto/plugins/testplugins.cpp @@ -0,0 +1,41 @@ +/**************************************************************************** + * * + * This file is part of guh. * + * * + * Guh 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, version 2 of the License. * + * * + * Guh 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 guh. If not, see . * + * * + ***************************************************************************/ + +#include "guhtestbase.h" +#include "guhcore.h" +#include "devicemanager.h" +#include "mocktcpserver.h" + +#include +#include +#include +#include +#include +#include +#include + +class TestPlugins: public GuhTestBase +{ + Q_OBJECT + +private slots: + +}; + +#include "testplugins.moc" +QTEST_MAIN(TestPlugins)