summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/qml/ViewTestCase.qml30
-rw-r--r--tests/qmldir2
3 files changed, 33 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index d7dfe81d..d06880fb 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -11,6 +11,7 @@ target_link_libraries(kubetestrunner
11 kubeframework 11 kubeframework
12) 12)
13 13
14install(DIRECTORY qml/ DESTINATION ${QML_INSTALL_DIR}/org/kube/test)
14install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kube/test) 15install(FILES qmldir DESTINATION ${QML_INSTALL_DIR}/org/kube/test)
15 16
16add_library(testplugin SHARED testplugin.cpp teststore.cpp) 17add_library(testplugin SHARED testplugin.cpp teststore.cpp)
diff --git a/tests/qml/ViewTestCase.qml b/tests/qml/ViewTestCase.qml
new file mode 100644
index 00000000..f2d08bb1
--- /dev/null
+++ b/tests/qml/ViewTestCase.qml
@@ -0,0 +1,30 @@
1/*
2 * Copyright 2017 Christian Mollekopf <mollekopf@kolabsys.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Library General Public License as
6 * published by the Free Software Foundation; either version 2, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Library General Public License for more details
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19
20import QtTest 1.0
21import org.kube.test 1.0
22
23TestCase {
24 width: 400
25 height: 400
26
27 function cleanup() {
28 TestStore.shutdownResources();
29 }
30}
diff --git a/tests/qmldir b/tests/qmldir
index 2ccb630a..63b4ba66 100644
--- a/tests/qmldir
+++ b/tests/qmldir
@@ -1,3 +1,5 @@
1module org.kube.test 1module org.kube.test
2 2
3ViewTestCase 1.0 ViewTestCase.qml
4
3plugin testplugin 5plugin testplugin