summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Move qtivi over to the new config systemDominik Holland2017-02-012-15/+5
| | | | | | | | | | | | | | | | | Use the new configuration system to define external libraries, configure tests and features. Don't use pkg-config outside of the configuration step. The geniviextras-only CONFIG option has now been replaced with a command-line option and can be used by passing it to qmake after '--'. E.g. 'qmake -- --geniviextras-only'. Removed adding DLT into the rpath. Similar to all other Qt modules, it is now expected that packages found using pkg-config can be found by the dynamic linker. Change-Id: If46cd1b79413cd7571ee1068898848d9871e61ba Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Merge remote-tracking branch 'origin/5.7' into 5.8Dominik Holland2017-01-261-0/+2
|\ | | | | | | Change-Id: I8af522cf3a243e307576b038f18372facd8caac9
| * Fixed problems when resolving the libdlt dependencyDominik Holland2016-11-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The automotive-dlt pkg-config files points to the include folder of dlt so we don't need the dlt prefix when including the headers. As dlt is installed into /usr, this wasn't a problem as it still worked. But if dlt is build manually it installs itself to /usr/local and the paths are not correct in this case. When picking up libdlt we also need to make sure that the path we resolved using pkg-config is added as a rpath and this is part of the prl file created for QtGeniviExtras, as the custom rpath is also needed for the application/lib using QtGeniviExtras, as it would have a unresolved runtime dependency otherwise Change-Id: I3f2a78482573e6802371e29392de5a4a49b5c379 Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com> Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Add a geniviextras-only config option to only build qtgeniviextrasDominik Holland2017-01-091-2/+4
| | | | | | | | | | Change-Id: I60c57ea414bc835c3996fc36e6c42119589bc5be Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Merge branch '5.7' into devDominik Holland2016-11-231-0/+1
|\ \ | |/ | | | | Change-Id: I3feb8544b54c7e84970ae304ea5e8c44bcd30a46
| * Build fix for Qt 5.6Dominik Holland2016-11-231-0/+1
| | | | | | | | | | Change-Id: I0195f3e3b69ad13f276a64944aaf686afc129c75 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Removed remaining Q_FOREACH loopsDominik Holland2016-10-191-3/+3
| | | | | | | | | | Change-Id: I7e442dd36588c447a348fda032c40e53a197ab72 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Merge branch '5.7' into devDominik Holland2016-10-192-22/+28
|\ \ | |/ | | | | Change-Id: I5e601ba33cf50596f873e746e9b107a560c45018
| * Eradicate Q_FOREACH loops and mark the module as Q_FOREACH-freeMarc Mutz2016-09-172-22/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Made QIviServiceManagerPrivate::findServiceByInterface() const to avoid the use of qAsConst() there; required to mark loadServiceBackendInterface() as const, too. In the tests, replaced patterns of the form zones = ...; zones.removeall("Dummy"); Q_FOREACH(..., zones) with const zones = ... for (... : zones) { if ( == QLatin1String("Dummy")) continue; Change-Id: Ia9537e10f2d9133cbfb88beffabb0a072c3ffefc Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* | Changed the plugin interfaces to match the Qt standardDominik Holland2016-07-285-10/+10
| | | | | | | | | | | | | | | | | | Changed them to defines Renamed them to <classname>_iid Moved them into the Intereface class Change-Id: Iaa009244b5451db3ebf4ed5d5b1bb5d053bebd8a Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Fixed coding style issuesDominik Holland2016-07-276-28/+28
| | | | | | | | | | Change-Id: Ib1812eac61ffa163dd50eeacfc0097881ca277f4 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Added a autotest for the QIviSearchAndBrowseModelDominik Holland2016-07-274-0/+922
| | | | | | | | | | | | | | Also fixed minor issues found while writing the test Change-Id: Iac57d55fc804298f831f7477eb9893e3ea35b05c Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Use the config check output instead of qtHaveModuleDominik Holland2016-07-271-1/+1
| | | | | | | | | | Change-Id: Id7bed250d50592555477e0b680a0611c15d30272 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | Added a unit test for the qiviabstractfeaturelistmodelDominik Holland2016-07-274-83/+339
| | | | | | | | | | | | | | | | | | | | | | | | As the featurelistmodel has the same functionality as the feature and only the base class is different, we also reuse the existing unit test and made it more flexible. Also added the missing protected slot to set an error from the backend interface Change-Id: I8982bfda25c813c2e2650447e2c5f36495d94b10 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* | ivicore: Improved the auto discovery of the backendsDominik Holland2016-07-151-14/+36
|/ | | | | | | | | | | | | | Previously the auto discovery didn't fall back to load a simulation backend when a production backend was found but NOT accepted. This is now fixed and a autotest was added for this case. In addition a logging category was added which should help to debug these cases. More information about which backends were found and what interfaces are implemented can be displayed by using the "qt.ivi.servicemanagement" logging category Change-Id: I7dba40c0e6de09aa4427fc4ed3fb935487c918bf Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Renamed all files to match the new class names and fixed the includesDominik Holland2016-05-2414-22/+22
| | | | | | | Task-number: QTAUTO-40 Task-number: QTAUTO-41 Change-Id: Id3702ef2809f76dc089e9866a396dcca24a8a7fe Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Renamed the classes and imports to match the Qt conventionsDominik Holland2016-05-2417-438/+438
| | | | | | | | | | | | | | | | | | | QML: import QtIVICore 1.0 -> import QtIvi 1.0 import QtIVIVehicleFunctions 1.0 -> import QtIvi.VehicleFunctions 1.0 On C++ side: Includes: - #include <QtIviCore/QIviAbstractFeature> - #include <QtIviVehicleFunctions/QIviClimateControl> The renaming of the files will be done in separate commit to make the diffs easier to read Task-number: QTAUTO-40 Task-number: QTAUTO-41 Change-Id: I2efdaf1f4a15e09481532df1333fa9883e82d1fb Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Added a parser for the qtivi query language based on QLALRDominik Holland2016-05-133-0/+259
| | | | | | | | | | | The query parser uses flex for the symbol scanning and QLALR for the syntax checking. The query parser will be used in the upcoming browsing and search model interface for providing a powerful and flexible way to filter a model or search for specific content. Change-Id: Ic1b03f36ba8d12fac612ea27d1cb45c6079583ba Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Cleanup all zones when a backend got disconnected in clearServiceObjectDominik Holland2016-05-101-12/+11
| | | | | | | call the base function in derived classes Change-Id: Ibd4e42d5beaf0f2439f730ce00bbdad31ae16188 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Added a WindowControl classDominik Holland2016-05-103-1/+476
| | | | | | | | | | This class is intended to control all available physical windows(glass) in the car. It supports to open and close the windows as well as controlling the window heating system and controlling the sun blends Change-Id: I7083f0b3263e62a1c8ec7b7d18a98cb12e2f99c6 Task-number: QTAUTO-108 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Changed the climatecontrol autotest to use the new test helper functionsDominik Holland2016-04-272-209/+204
| | | | | | | Extended the test to also test the read-only properties and all enums Change-Id: I797823e831303b9e2491cca7d960869a46d27897 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fixed issues with the auto discoveryDominik Holland2016-04-262-2/+32
| | | | | | | | | | | The auto discovery mechanism called acceptServiceObject, but didn't really do something if the ServiceObject was not accepted. Now the auto discovery is also using the next available ServiceObject until it founds one which got accepted by the Feature and returns an error if it couldn't find one Change-Id: I3a8304e9be776e4b178e3b2664e00136228944fe Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Made the ClimateControl API more completeDominik Holland2016-04-261-32/+185
| | | | | | | | | | | | | | Changed the recirculationMode from being a bool to a enum. Added support for: * outsideTemperature * zoneSynchronization * defrost * recirculationSensitivityLevel * climateMode * automaticClimateFanIntensityLevel Change-Id: Ia8f5189aaba34546fbcc40893e316a8c91e1ad2b Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Changed the AirflowDirection to be Flags instead of a enumDominik Holland2016-04-231-16/+16
| | | | | | | | Also renamed the values to make it possible to use all commonly used combinations of AirflowDirections Change-Id: If0447be66a618925deb0d249c3171f1b16ed2984 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fixed QtIVIProperty to also work with QFlagsDominik Holland2016-04-232-3/+93
| | | | | | | | QFlags needs basically the same conversion than a Enum, but as it's not supported by QMetaType directly we need to workaround the detection. Change-Id: I9b997d32ca4eecaa416673b15730c4d119fa6df6 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Register the QtIVIPropertyAttribute metatypes for all basic typesDominik Holland2016-04-132-3/+0
| | | | | Change-Id: I0d84dceb4eddde3d91b387d9ca1ee8092e1694d8 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Use the same license wording for GPL3 as the standard Qt 5.7 license.Robert Griebl2016-04-1115-107/+122
| | | | | Change-Id: Id4a3c96495d97e666f0273671c231dbbd4beeaff Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Fix license headers to comply with Qt 5.7 standards.Robert Griebl2016-04-0716-131/+185
| | | | | | | | | | | | | | | src -> LGPL3/GPL3/GPL2/Commercial tests -> GPL-EXCEPT examples -> BSD qdoc files -> FDL (or BSD if documenting examples) pro/pri files -> no copyright header Also removed the LGPL2.1 option from GeniviExtras, since it doesn't make sense anymore when linking against a LGPL3 only QtCore library. Change-Id: I9299cf86cf37c1dfbbe997686b624084f27c9149 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Added support for detection and loading of simulation backendsDominik Holland2016-02-233-13/+82
| | | | | | | | | | | | | | By default the Feature's autodetection tries to load a production backend first and if not available falls back to a simulation backend. This behavior can be controlled by the AutoDiscoveryMode. Which backend type got loaded can be checked with the AutoDiscoveryResult. The QtIVIServiceManager got improved by adding a SearchFlag to the find method, which controls what type of backends should be included Change-Id: Ife3bb3672f21d2fb5b2d7236099de1df17487530 Reviewed-by: Johan Thelin <johan.thelin@pelagicore.com>
* Add an autotest for QtIVIAbstractFeatureDominik Holland2016-02-034-0/+338
| | | | | Change-Id: I5e3c3f8bfef0eda2bed016c871eea006d69da949 Reviewed-by: Johan Thelin <e8johan@gmail.com>
* Added more autotests for the ServiceManagerDominik Holland2016-02-0314-14/+387
| | | | | | | | Changed error in the ServiceManager to qWarnings instead of qDebugs Fixed a memory leak in the ServiceManager when unloadAllBackends is called Change-Id: Iff5320064975dc093ad88ee611c601415fe0e31c Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fixed a crash in QtIVIAbstractZonedFeature when setting a NULL ServiceObjectDominik Holland2016-01-281-0/+54
| | | | | | | Also added a autotest for this Change-Id: I71ed31819b75e1eed1cfe52473ed02826225149a Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Fixed QtGeniviExtras to compile as a qt moduleDominik Holland2016-01-282-4/+10
| | | | | | | Fixed a linking error in tst_dlt Change-Id: Id91c9d467ce67c0194552047a177d3b771591f6e Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Use the new QtIVIProperty class in the ClimateControl FeatureDominik Holland2016-01-281-61/+210
| | | | | Change-Id: I8ba10679f10e30abba8d7d677b9632307fa547ea Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Adding a property attribute systemDominik Holland2016-01-267-1/+622
| | | | | | | | | | | | | | | This includes a template class which defines the boundaries of a property (availability, minimumValue, maximumValue, ...). These attributes are defined by the backend implementation and are exposed in the Feature API Instead of normal properties the Feature implementation should use the new QtIVIQmlProperty class which exposes the value and the Attributes of every property Task-number: QTAUTO-8 Change-Id: I6fedd6c6d7630651b8e67d53827e7bbb461d0860 Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
* Get rid of all getter functions in qtiviclimatecontrolbackendinterfaceDominik Holland2016-01-131-37/+0
| | | | | | | | The getters are not needed and currently not used as the current values are reported by calling initializeAttributes() instead Change-Id: Ib3cd71323bc4de72f85f320e24d26e8c684fd64a Reviewed-by: Marko Kangas <marko.kangas@theqtcompany.com>
* Fixed warnings in climatecontrol autotestDominik Holland2016-01-131-1/+9
| | | | | Change-Id: I1f4e27fc109e435db20370a004721346ebad4030 Reviewed-by: Marko Kangas <marko.kangas@theqtcompany.com>
* Refactor QtIVI to use new architectureMarko Kangas2015-11-261-117/+112
| | | | | | | | | Added base class QtIVIVehicleFeature to provide recursive zone access. Change-Id: I041f36d8b3d61e15b4f5884d376fdb5f43d8a1a9 Task-number: QTAUTO-7 Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Tweaked the header layout a little bit, so that it passes the CI check.Robert Griebl2015-11-243-13/+19
| | | | | | | | Also change-id I8ffe7bca in qtqa is needed for this to work. Change-Id: I5e749dda7f2179c27f078dea748e15cf1cc81e92 Reviewed-by: Marko Kangas <marko.kangas@theqtcompany.com> Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
* Merge branch 'master' of qtiviDominik Holland2015-10-208-2/+720
|\
| * Removed the not fully functional QtIVISimpleDiscoveryModelDominik Holland2015-09-153-195/+1
| | | | | | | | | | The idea behind this needs to be revistited and then implemented again properly.
| * Changed the Copyright to LGPLv3 + CommercialDominik Holland2015-09-1510-97/+78
| | | | | | | | Removed the Copyright Headers from all .pro files
| * Added initial attached zones implementation.Johan Thelin2015-09-041-138/+140
| | | | | | | | This introdues the QtIVIAbstractZoneModelFeature that provides a standardized interface for the QtIVIZonesAttached class to work against.
| * Basic simple discovery testJohan Thelin2015-08-311-12/+20
| |
| * Removed unused codeJohan Thelin2015-08-251-20/+0
| |
| * Initial auto tests of QtIVISimpleDiscoveryModelJohan Thelin2015-08-243-1/+180
| |
| * Introduced 'make docs' supportDominik Holland2015-03-302-2/+2
| | | | | | | | | | | | | | To make it work properly the modules needed to be renamed to match the qt modules naming convention. For this is also renamed the folders of the modules to make things easier
| * Fixed the autotest to use CONFIG+=testcase to be executed when doing make checkDominik Holland2015-03-302-4/+2
| |
| * Extended climate control unit tests to try setting/getting through propertiesJohan Thelin2015-03-271-11/+43
| |
| * Added Copyright HeadersDominik Holland2015-03-278-8/+76
| |