diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/kubetestrunner.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/kubetestrunner.cpp b/tests/kubetestrunner.cpp index b6c88341..3bf06d44 100644 --- a/tests/kubetestrunner.cpp +++ b/tests/kubetestrunner.cpp | |||
@@ -1,10 +1,42 @@ | |||
1 | /* | ||
2 | Copyright (c) 2018 Christian Mollekopf <mollekopf@kolabsys.com> | ||
3 | |||
4 | This library is free software; you can redistribute it and/or modify it | ||
5 | under the terms of the GNU Library General Public License as published by | ||
6 | the Free Software Foundation; either version 2 of the License, or (at your | ||
7 | option) any later version. | ||
8 | |||
9 | This library is distributed in the hope that it will be useful, but WITHOUT | ||
10 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public | ||
12 | License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to the | ||
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
17 | 02110-1301, USA. | ||
18 | */ | ||
1 | #include <QtQuickTest/quicktest.h> | 19 | #include <QtQuickTest/quicktest.h> |
2 | #include <sink/test.h> | 20 | #include <sink/test.h> |
21 | #include <sink/store.h> | ||
3 | 22 | ||
4 | int main(int argc, char **argv) | 23 | int main(int argc, char **argv) |
5 | { | 24 | { |
6 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); | 25 | QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); |
7 | Sink::Test::initTest(); | 26 | Sink::Test::initTest(); |
27 | |||
28 | auto resource = Sink::ApplicationDomain::DummyResource::create("account1"); | ||
29 | Sink::Store::create(resource).exec().waitForFinished(); | ||
30 | |||
31 | auto transportResource = Sink::ApplicationDomain::MailtransportResource::create("account1"); | ||
32 | Sink::Store::create(transportResource).exec().waitForFinished(); | ||
33 | |||
34 | auto identity = Sink::ApplicationDomain::Identity{}; | ||
35 | identity.setAccount("account1"); | ||
36 | identity.setAddress("identity@example.org"); | ||
37 | identity.setName("Identity Name"); | ||
38 | Sink::Store::create(identity).exec().waitForFinished(); | ||
39 | |||
8 | QTEST_ADD_GPU_BLACKLIST_SUPPORT | 40 | QTEST_ADD_GPU_BLACKLIST_SUPPORT |
9 | QTEST_SET_MAIN_SOURCE_PATH | 41 | QTEST_SET_MAIN_SOURCE_PATH |
10 | return quick_test_main(argc, argv, "kubetest", 0); | 42 | return quick_test_main(argc, argv, "kubetest", 0); |