Changeset View
Changeset View
Standalone View
Standalone View
Tests/auxiliary/auxiliary_tests.cpp
- This file was added.
1 | /* KStars class tests | ||||
---|---|---|---|---|---|
2 | Copyright (C) 2020 | ||||
3 | Eric Dejouhanet <eric.dejouhanet@gmail.com> | ||||
4 | | ||||
5 | This application is free software; you can redistribute it and/or | ||||
6 | modify it under the terms of the GNU General Public | ||||
7 | License as published by the Free Software Foundation; either | ||||
8 | version 2 of the License, or (at your option) any later version. | ||||
9 | */ | ||||
10 | | ||||
11 | #include <QtTest> | ||||
12 | #include <QApplication> | ||||
13 | | ||||
14 | #include "testcsvparser.h" | ||||
15 | #include "testfwparser.h" | ||||
16 | #include "testdms.h" | ||||
17 | #include "testcachingdms.h" | ||||
18 | #include "testcolorscheme.h" | ||||
19 | #include "testbinhelper.h" | ||||
20 | #include "testfov.h" | ||||
21 | #include "testgeolocation.h" | ||||
22 | #include "testksuserdb.h" | ||||
23 | | ||||
24 | #define RUN(result, TestClass) do { \ | ||||
25 | TestClass tc; \ | ||||
26 | result |= QTest::qExec(&tc, argc, argv); } while(false) | ||||
27 | | ||||
28 | int main(int argc, char *argv[]) | ||||
29 | { | ||||
30 | QCoreApplication app(argc, argv); | ||||
31 | app.setAttribute(Qt::AA_Use96Dpi, true); | ||||
32 | QTEST_SET_MAIN_SOURCE_PATH \ | ||||
33 | | ||||
34 | int result = 0; | ||||
35 | | ||||
36 | RUN(result, TestCSVParser); | ||||
37 | RUN(result, TestFWParser); | ||||
38 | RUN(result, TestDMS); | ||||
39 | RUN(result, TestCachingDms); | ||||
40 | RUN(result, TestColorScheme); | ||||
41 | RUN(result, TestBinHelper); | ||||
42 | RUN(result, TestFOV); | ||||
43 | RUN(result, TestGeolocation); | ||||
44 | RUN(result, TestKSUserDB); | ||||
45 | | ||||
46 | return result; | ||||
47 | } |