Commit Graph

107 Commits

Author SHA1 Message Date
Klaus Basan
ed820da20d refs #875, refs #879, class for test data
(will be consolidated with existing utility classes)
2017-02-24 15:21:16 +00:00
Klaus Basan
09ea40a1f7 refs #875, skip context unit test (DBus related) with no session bus 2017-02-24 15:21:13 +00:00
Klaus Basan
e28056ac2f refs #875, unit tests for DBus 2017-02-24 15:21:03 +00:00
Klaus Basan
3c588e61fa refs #875, moved classes for DBus unit tests and samples to BlackCore::Test 2017-02-24 15:21:00 +00:00
Klaus Basan
5b08363179 refs #875, unit test for proxies
tests init and signal connects
2017-02-24 15:20:58 +00:00
Klaus Basan
c1482dca36 Formatting, help text beautifyHelpMessage, improved convertToQString 2017-02-24 15:20:55 +00:00
Klaus Basan
61e7f23847 refs #858, todo review (demoted, commented) 2017-02-24 00:09:00 +00:00
Klaus Basan
ec3fc93a19 refs #846, core: shutdown when failure and assert for missing facade 2017-01-10 23:46:06 +00:00
Mathew Sutcliffe
062289bc69 refs #838 Move interpolator unittest from testblackcore to testblackmisc. 2017-01-10 23:44:43 +00:00
Mathew Sutcliffe
7e85422da7 refs #837 CAircraftSituation altitude is part of its position. 2017-01-10 23:44:40 +00:00
Mathew Sutcliffe
6c36cd202b refs #837 ICoordinateGeodetic::geodeticHeight is a CAltitude. 2017-01-10 23:44:34 +00:00
Mathew Sutcliffe
544a1cca45 refs #837 Don't misuse coordinate height as ground elevation, use a separate member instead. 2017-01-10 23:44:31 +00:00
Klaus Basan
8f779fff35 refs #787, fixed unit test
* flag update for non cached scenarios was missing
* some minor adjustments of test readers
2016-12-13 19:01:37 +01:00
Mathew Sutcliffe
6f972035ab refs #800 Fixed some declaration shadows variable in outer scope warnings. 2016-12-13 19:00:27 +01:00
Klaus Basan
dff8db131f refs #780, "qUtf8Printable" fixes
https://dev.vatsim-germany.org/issues/780#note-9 number 2
2016-12-13 19:00:11 +01:00
Klaus Basan
9deedf1e10 refs #789, improvements when addressing FSX driver issue
* added new utility funtion is model list / aircraft list
* added setters/getters for CSimConnectObject
* added setters/getters for InterpolationStatus / PartsStatus
* added CSimConnectObjects (better encapsulation)
2016-12-06 09:47:04 +01:00
Klaus Basan
9bf1833aac Improved messages in reader UNIT test
* info about URL connected
* reflect changes in global setup for airport reader
2016-12-06 09:33:39 +01:00
Michał Garapich
9acfb89e65 refs #748 Add operating attribute to CAirport 2016-10-17 14:34:33 +01:00
Michał Garapich
cf3e9f1f67 refs #748 Support database format in CAirportDataReader
* CAirport is now database object
* CAirportList is now datastore object list
* CAirportDataReader adjustments
2016-10-17 14:34:31 +01:00
Michał Garapich
a4b5b28cc1 refs #748 Move CAirportDataReader to the db/ subdirectory
* BlackCore::CAirportDataReader -> BlackCore::Db::CAirportDataReader
* fix typo in CDatabaseReader
2016-10-17 14:34:30 +01:00
Klaus Basan
67fdfd228a Minor improvements for reader unit test
* URL in verify msg.
* qWait when reading
2016-09-19 16:18:56 +02:00
Michał Garapich
1032b2f506 refs #650 Implement CAirportDataReader
* Add BlackCore::CAirportDataReader class
* Add cache traits for airport list
* Add corresponding WebReaderFlag
* Add CAirport::convertFromDatabaseJson()
* Add CApplication::headerFromNetwork() to handle HTTP HEAD method
2016-08-26 00:18:41 +02:00
Klaus Basan
19040af654 refs #704, moved VATSIM specific stuff to ns VATSIM/subdir 2016-07-14 18:49:11 +02:00
Roland Winklmeier
ef1b7b2c21 Use QSKIP to flag a test 'skipped', if server is not reachable
refs #682
2016-06-22 14:23:07 +02:00
Mathew Sutcliffe
fdfc5256eb Configure additional xml output for each unit test via a BlackMisc utility class
refs #682
2016-06-22 14:22:22 +02:00
Mathew Sutcliffe
7ae453b532 refs #666 Moved interpolator to BlackMisc so xbus doesn't need to link BlackCore. 2016-06-08 23:54:13 +01:00
Mathew Sutcliffe
c64851aeba refs #570 Removed the hardcoded 6 seconds, interpolator honors the offsets of the situations. 2016-06-08 23:54:13 +01:00
Klaus Basan
54b1234f7f refs #649, refs #658 fixed includes to new subfolders "db"
some style changes in same step
2016-06-08 18:20:23 +02:00
Roland Winklmeier
4f8205e585 Fix unit test header includes
* Include only what is used
* Use forward declaration when possible
* Sorted includes

refs #598
2016-05-20 01:32:26 +02:00
Klaus Basan
87a0c75f43 refs #621, use getXX for setup members, no idea why I have not used our standard 2016-03-30 13:41:44 +02:00
Mathew Sutcliffe
a895cc2c54 refs #624 Removed many workarounds, no longer needed. 2016-03-22 16:02:58 +00:00
Mathew Sutcliffe
6f1cf8e3d7 refs #624 Replace typedef with using. 2016-03-22 16:02:50 +00:00
Klaus Basan
f124412896 refs #605, fixed unit test itself
* threaded reader were normal members causing a crash when those were moved in their own thread
* we need own event processing for unit test
* Network request needs to be generated in main thread
* don`t shutdown readers on QCoreApplication::aboutToQuit, let CApplication handle it
* use CApplication in unit test (as in real world)

Unrelated:
* access global setup via application
2016-03-18 01:09:17 +00:00
Roland Winklmeier
d1eb0bb9c3 Add tests to doxygen group 'tests' and subgroups
refs #594
2016-02-16 20:01:44 +01:00
Roland Winklmeier
1ea2f34f75 Fix doxygen documentation in src, samples and tests
refs #594
2016-02-16 20:01:33 +01:00
Klaus Basan
46336e9cce refs #568, allow to read incremental data based on timestamp
* signatures with QDateTime
* flags
2016-01-28 16:31:44 +01:00
Klaus Basan
3ac32fa58e refs #559, adjustments cache/settings moved 2015-12-20 17:00:12 +01:00
Mathew Sutcliffe
1b8a2dff81 Fixed tests project names in QtCreator. 2015-12-13 16:37:51 +00:00
Roland Winklmeier
7ece093ee9 Refactor qmake SUBDIRS structure
The big swift.pro is refactored by the correct usage of SUBDIRS
template. The following additional changes are made:
- Removed '_' from all targets and folder names
- Aligned parent folder and target name

refs #461
2015-11-23 09:50:44 +01:00
Michał Garapich
1b06e15b61 refs #510 Remove underscores from all the source file names 2015-11-22 12:53:09 +01:00
Klaus Basan
1fc7300982 refs #507, split up blackmiscfreefunctions
* single register metadata functions
* string utils
* metadata utils
* some formatting / license header where applicable
2015-11-22 02:42:29 +01:00
Klaus Basan
d131cd2d33 refs #507, changed setup reader and simplied global setup and setup reader
* a single base URL (shared), derived URLs by appended path
* simplified dir structure shared with sub directories
* renamed functions
* automatically synchronize setup with DB when initialized
* trigger download info loading when setup is completed
* allow to automatically read after setup data have been synchronized
* read DB data when setup has been loaded
* allow to reload from threaded reader
* improved handling (log messages, skip reading) when data are not available
2015-11-19 21:07:58 +00:00
Roland Winklmeier
509b90c87d Disable auto testcase install into QT_INSTALL_TESTS
refs #486
2015-11-19 21:07:17 +00:00
Roland Winklmeier
63a9c9d1cd Style 2015-11-19 21:06:57 +00:00
Mathew Sutcliffe
c3b7b5c888 Skip INetwork unit tests if FSD test server is not reachable
The unit test fails in case the infrastructure is not available and
therefore declares the whole CI build as failure.

refs #456
2015-11-19 21:06:55 +00:00
Klaus Basan
85b7801bb9 refs #478, test adjust to new classes 2015-11-19 21:03:44 +00:00
Mathew Sutcliffe
6b75de0b3f refs #482 Project files changed to use new qmake feature files and build directory structure. 2015-11-19 21:02:41 +00:00
Klaus Basan
2cfd3540b8 refs #469, renamed flags
* db to entity flags as it also features entities not from DB
* Flag enums singular (discussed with MS / slack)
2015-11-19 21:00:13 +00:00
Klaus Basan
3e1e1070c1 refs #452 updated tests/samples to reflect previous changes 2015-11-19 20:59:21 +00:00
Mathew Sutcliffe
00cd4f4f87 refs #459 Removed CAircraftParts::m_correspondingCallsign per Slack discussion MS/RW. 2015-11-19 20:58:18 +00:00