summaryrefslogtreecommitdiff
path: root/tests/auto
Commit message (Collapse)AuthorAgeFilesLines
* Also expose applications in taskRequestingInstallationAcknowledgeRobert Griebl2023-05-091-1/+10
| | | | | | | | | | Since switching to the new multiple-apps-per-package architecture, the actual infos about the apps in the package were not exposed via the requesting-acknowledge signal anymore. Change-Id: Id535c5d8710998ce26043ec8e56cd1881961628d Pick-to: 5.15 6.2 6.5 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Make it possible to specify directories to read config files fromRobert Griebl2023-03-231-1/+1
| | | | | | | | | | This extends the existing -c/--config-file option to also accept directories, effectively expanding the argument to all *.yaml files in the given directory. Change-Id: I83f197e8f67ba363bf27b0f511c7821402bb7033 Pick-to: 5.15 6.5 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* yaml: missing values are actually null/~, not empty stringsRobert Griebl2023-03-212-0/+3
| | | | | | Pick-to: 6.5 6.4 6.2 5.15 Change-Id: I6ca98e219bf4c3de9a1eaaae5ddeb7e7cfa27107 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Allow the registration of custom runtimes without patchingRobert Griebl2023-02-163-0/+6
| | | | | | | | | | The new configuration key runtimes.registerCustomIds will now allow a configuration based registration of custom runtimes. Change-Id: Id94ab614a8460e4d941b97d8ed008f75b3d88d27 Task-number: QTBUG-107886 Pick-to: 6.5 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix the broken tests after the retirement of qt_parse_all_argumentsAmir Masoud Abdol2023-02-0216-16/+16
| | | | | | | | | | As we are now processing the arguments with cmake_parse_arguments(PARSE_ARGV, we don't need to pass the escape characters anymore. Task-number: QTBUG-99238 Change-Id: Ib2c8930b5a747140c0c8b877f994db083ad7bec6 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Port from qAsConst to std::as_constMarc Mutz2023-01-143-6/+6
| | | | | | | | QT_NO_AS_CONST is now globally enabled in qtbase. Pick-to: 6.5 Change-Id: Ifc2eab1c902e75f5dbfc38ef9a62b29b5c91bc61 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* BLACKLIST: tst_Signature::crossPlatform for RHEL 9Heikki Halmet2023-01-031-0/+3
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-109756 Change-Id: I13ee4ac4acc6ebe59c8748ef4fcd5ea7784d3bdd Reviewed-by: Zoltan Gera <zoltan.gera@qt.io> Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Forward keyboard focus to applicationsBernd Weimer2022-12-018-0/+338
| | | | | | | | | | | | | | | | | Key events were not passed to applications, when the focus moved to a WindowItem in the System UI, since the item representing the application window is actually a child of the WindowItem. A possible solution would be to explicitly send the key events to the application item, though the approach taken here is to forward the keyboard focus. This results in key events always reaching the application first (even when the System UI would actually consume the events) and in single-process mode, if the application consumes the event the System UI won't get it any more. Fixes: QTBUG-108837 Change-Id: I1699556f1a67057e8be2848e37c846c2ee33a646 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Intents: add broadcastsRobert Griebl2022-09-166-3/+62
| | | | | | | | | | | | | | | This commit adds a new intent type: a broadcast. Broadcasts will be delivered to all applications (*), but they do not have the possibility to return a reply back to the sender. Implementation wise, they are just treated as normal requests that are multiplexed for every application. (*) This can be limited with the new handleOnlyWhenRunning flag. Change-Id: If9f954cf5e52707624b95c80c8e984dfd6c4315a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Add explicit include for std::abort (part 2)Robert Griebl2022-08-161-0/+1
| | | | | | Change-Id: I4d6bf4d4d29133202c0b7dfd088d09cf2a64d1c0 Pick-to: 5.15 6.4 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* CMake: Don't use PUBLIC_LIBRARIES for tests and test helpersAlexandru Croitor2022-07-2721-39/+39
| | | | | Change-Id: I461e331ba184cfe21c533e5babb9145e2b89c909 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
* Some tests cannot be built for AndroidRobert Griebl2022-07-071-2/+4
| | | | | | Pick-to: 6.4 Change-Id: Ie97dd699e49119514652ca9d97ba7de80a90a544 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Support QNX (unoffically)Bernd Weimer2022-07-011-0/+3
| | | | | | | | | | | | | | | | | Allow to build for QNX and run in single-process mode. There are a few limitations, e.g. filesystem mount monitoring and startup timer are not supported and there's only a rudimentary stack trace in case of a crash, etc. Since Qt Network doesn't provide a HW address and there's currently a cross-compilation issue, the following options need to be passed to configure: -DINPUT_hardware_id=dummyHwId -DQT_FORCE_BUILD_TOOLS=ON Change-Id: Ia58d09d15a781666fe788f21dfe9c7af7a2a74ef Pick-to: 6.4 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Make tests pass for "no-dbus" buildsBernd Weimer2022-07-012-3/+3
| | | | | | | | | | Achieved by unconditionally supporting dbus option, like any other option. Also removed start-session-dbus option completely and added parameters to JS functions in intents test. Change-Id: I8057bc23fd0072c997c8a42539ef23a6c7a9e28a Pick-to: 6.4 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix QScopedPointer::take deprecation warningRobert Griebl2022-06-152-9/+13
| | | | | | | | Also replaced the remaining usages of QScopedPointer with std::unique_ptr for consistency. Change-Id: Ic63d1b3ea03a4562e4e40c3e9c7992459fde716e Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Use SPDX license identifiersDominik Holland2022-06-1569-2026/+254
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Files that have to be modified by hand are modified. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I09660e42dea769d720ff30e652485d9861cea965 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Fix accidental double-click detection in autotestRobert Griebl2022-06-111-0/+2
| | | | | | | | Change-Id: I1e490d84774d07dfca4d2f5a8296d841fb499365 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Robert Griebl <robert.griebl@qt.io> (cherry picked from commit 810cf1fc7dcb5ca0b6d3bdcc364ce9e3f212f806) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Deal with OpenSSL3's changed defaults when parsing PKCS12 certificatesRobert Griebl2022-06-073-7/+23
| | | | | | | | | | | | | | | OpenSSL3 doesn't like old certificates, but macOS doesn't like the new ones. For the cross-platform signature auto test, we need to enable handling of legacy certificates in OpenSSL3. Also fixed the process to regenerate the test signatures (for when macOS' SecurityFramework may catch up in the future) Change-Id: Ie95ebb0878e4c6c4b96ef45263575bc2135197d0 Pick-to: 6.3 6.2 5.15 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Make the tests not fail when run from a Wayland based desktopRobert Griebl2022-05-301-3/+3
| | | | | Change-Id: I2140470d624e6ffff0c5757aa03b22a345010f8b Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Fix duplicate CMake target "terminator2plugin"Robert Griebl2022-05-176-43/+43
| | | | | | | | | | When both examples and tests were being built, CMake generated ambiguous rules thanks to its flat namespace. Renamed the terminator2 plugin in tests to qmlcrash. Change-Id: I75b8c77e21e2f8f44138c99bfd87bc6ac0faa196 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Remove unnecessary delay in the simple auto testRobert Griebl2022-05-171-2/+0
| | | | | Change-Id: I321b1a0d15dbd83d6c9a4521237ea47f631fcaa9 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Workaround Windows oddities in the autotestsRobert Griebl2022-05-172-8/+8
| | | | | | Change-Id: I65bde7dcb44fcc36bd3dd990f1b1b69bcba4497b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Speed up the tst_windowmapping test runRobert Griebl2022-05-171-3/+3
| | | | | Change-Id: I3e82b224db6a4c3605c065132a015cee4f992865 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Skip the processtitle test on QEMURobert Griebl2022-05-121-0/+8
| | | | | | | | qemu already messes with the process title on its own. Change-Id: Id265adcb4986a83a29c0c954362c395680d57c2a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix broken cmake auto test setupsRobert Griebl2022-05-1213-32/+33
| | | | | Change-Id: Id278f3e333ded080a3677a5035b8da8b51126c5b Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Enable automatic test package generation on WindowsRobert Griebl2022-05-121-1/+7
| | | | | | | | | If we find a Git or Cygwin bash.exe, we are now creating the test packages just like on Linux and macOS. Change-Id: I013953db075de6bc93bd78f08944c3b13f09839a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Use AM_TIMEOUT_FACTOR in all tests and the intent handlingRobert Griebl2022-05-1215-124/+140
| | | | | | | | Also works around the problem of the single-process qml/windowitem test crashing with just slightly more than idle CPU load. Change-Id: Ie24c7565bbaa448844879f4a57f0921693db9ce8 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Disable the Wayland watchdog when running autotestsRobert Griebl2022-05-121-0/+2
| | | | | | | | If tests are running into timeouts in the CI, we most of run into the Wayland timeout before, messing up the tests' results. Change-Id: I054f07ff860f77a1e8dfd6a411b049b92555dad0 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix the QML tst_installer to run on WindowsRobert Griebl2022-04-261-14/+26
| | | | | | Change-Id: Ic6a24d2d849a3d00e4e44f83ef6410bab4aca7c2 Pick-to: 5.15 6.2 6.3 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* macos: Fix the appman-qmltestrunnerDominik Holland2022-04-261-4/+1
| | | | | | | | | | | | | | | | We cannot rely on the QTestRootObject::instance() method as this function is inlined by the compiler and because of that doesn't provide the same instance as used in QML. Instead we use the new singletonInstance() method to retrieve the instance from the QQmlEngine. This also enables the qml tests on macos again. Pick-to: 6.2 6.3 Fixes: QTBUG-102736 Change-Id: Ia73bb9ce54236a30683c1fa9f5fd51a1e456aad4 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* cmake: Disable qml tests on macosDominik Holland2022-04-211-1/+4
| | | | | | | | | | There is some problem with the appman-qmltestrunner, which prevents the execution of the tests. Disabling it for now, to unblock the integration of other patches. Task-number: QTBUG-102736 Change-Id: I5887b7c1c50b6b2571d62cd3ec536ef79aace91c Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Add a new flag to allow surfaces from unknown Wayland clientsRobert Griebl2022-03-232-0/+4
| | | | | | | | | | Before, this was only possible by running with the "noSecurity" flag, which disabled all security checks completely. Change-Id: I06fbd1cca414be518a19b2250b28e114687e7f93 Fixes: QTBUG-101703 Pick-to: 5.15 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Detect and prevent installing the same package multiple times in parallelRobert Griebl2022-03-221-0/+23
| | | | | | Change-Id: I8aa7e1f520346b6c946b0e1e122808d638ccb52c Pick-to: 6.3 6.2 5.15 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Fix memory leaks in the auto testsRobert Griebl2022-03-212-4/+13
| | | | | | | | Found by using the Linux/gcc/ASAN leak checker. Change-Id: Id9e2aae8c79b0d1ae71f90e7fbbb876ff9076def Pick-to: 6.3 6.3.0 6.2 6.2.4 5.15 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Make the main auto test more maintainableRobert Griebl2022-03-211-46/+62
| | | | | | | | Also added a test for the StartupTimer while at it. Change-Id: I96d522bb5744b5254c9e6d16a956237606693b4a Pick-to: 6.3 6.3.0 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Re-enable running autotests on macOSRobert Griebl2022-03-211-3/+3
| | | | | | | | | | We could theoretically also run them on Windows now, but the tst_main test non-deterministically freezes regardless of compiler (MSVC or MingW) and OS (Win 10 or Win 11). Change-Id: Ic55063e277ab28ec087cf644e5007744f9f2303a Pick-to: 6.3 6.3.0 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Untangle the icon/name/description/categories messRobert Griebl2022-03-218-116/+546
| | | | | | | | | | | | | | | | | | | | | | | | The documentation and the implementation disagreed quite heavily in regards to the icon, name, description and categories fields in the manifest for the package, each application and each intent. The implementation now follows the existing documentation, but also relaxing the requirements of icon and name being required for packages. Also, it was confusing that applications could not override these properties from the package like intents can do, so they also got these properties. Finally, everything is now correctly exposed to QML, with legacy wrappers in place to not break old code. In addition, the completely outdated applicationinfo unit-test was rewritten to test all the current field combinations. Change-Id: Ie5ad84bc6b771d6702b1994d1c8ae9f0204643b9 Pick-to: 6.3 6.3.0 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Remove the touch emulation featureRobert Griebl2022-03-173-7/+0
| | | | | | | | | This feature was implemented before Qt's pointer handlers were introduced and thanks to those it really isn't needed nowadays. Plus, it was only ever working on X11, limiting its usefulness. Change-Id: Icb03e2e8ede4fc5b62564fc70c20a460fe2d0134 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Add an option to configure how very long log messages are passed to DLTRobert Griebl2022-02-253-0/+4
| | | | | | | | | This commit was already planned for the 5.12 release, had to be reverted due to a SC break in QtGeniviExtras and was subsequentially forgotten. Change-Id: I76ab4af4b1ee847a33ad0eb523b79021cf666d43 Pick-to: 5.15 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Delay loading packages until a specified partition is mountedRobert Griebl2022-02-022-0/+2
| | | | | | | | | | This adds a new config option applications/installationDirMountPoint. If set, package database loading will be delayed until the specified mount point has been mounted. Change-Id: Icf43128031438f62ba4d0c401bb84bdd2d42701e Pick-to: 5.15 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix timeouts in the intents qml testRobert Griebl2021-12-161-2/+5
| | | | | | Pick-to: 6.2 Change-Id: I46a28ead75ddeeec1fd2dcc9263b413e84642000 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Add the missing "allowUnsignedPackages" flag to the config parserRobert Griebl2021-11-163-3/+7
| | | | | | | | | I forgot to add the flag to the YAML parser, when I added this feature back in commit 7ead83968af5676dab0724fbba84cb00bffca750 Pick-to: 6.2 5.15 Change-Id: I8bd3ac7a2d167d5f95f3cbc9ae9e42b3228df675 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix immediate application restartBernd Weimer2021-09-201-0/+19
| | | | | | | | | | | A crashing application in the application-features example caused the entire System UI to crash. This reverts commit 6d7c33ea and part of f7506f7b. Pick-to: 5.15 6.2 Change-Id: Idf9cafb15b5e868b7c665269574474aec8a74bf3 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* cmake: Only build autotests if the appman-qml-testrunner is availableDominik Holland2021-08-261-16/+18
| | | | | Change-Id: Iafc2c499cd0f8a8932a62859fed7cc0e91a41389 Reviewed-by: Robert Griebl <robert.griebl@qt.io>
* Clazy: fix testsRobert Griebl2021-08-2011-196/+201
| | | | | | Change-Id: I31b236e2a06d9a5574f1170ba1d7bcf7baaceb8b Reviewed-by: Thomas Senyk <thomas.senyk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Wait for running apps to die on update installationsRobert Griebl2021-08-061-0/+57
| | | | | | | | | This was only done for removals, but it is even more important for update installations. Change-Id: I3cfe552908c9e8b1b130d814bac5f2d3265fe845 Pick-to: 5.15 Reviewed-by: Bernd Weimer <bernd.weimer@qt.io>
* Drop the merged cache if anything doesn't match up with last runRobert Griebl2021-07-272-4/+43
| | | | | | | | | | | This is a followup to 57847079891. Also extended the unit test to prevent regressions. Change-Id: Ibae1b3d1ebfbac7b812bb188ced7be0ed675c8a1 Fixes: AUTOSUITE-1653 Pick-to: 5.15 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Fix CI test failure on slow machinesRobert Griebl2021-07-271-1/+0
| | | | | Change-Id: I9f6a40b83c100b86109c89017f1ff978d33e9a2e Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* Remove the old deprecated ApplicationIPCManager IPC mechanismRobert Griebl2021-07-275-29/+41
| | | | | | | | The unit tests that needed an IPC side channel have been updated to use intents instead. Change-Id: Ifbd82728557eadaea08425e9eacf2cbf8a08293e Reviewed-by: Dominik Holland <dominik.holland@qt.io>
* cmake: add custom targets to simulate qmake's OTHER_FILESRobert Griebl2021-06-301-0/+4
| | | | | | | Still missing these targets for all Qml-only examples and tests. Change-Id: I1702d9c3c43175fef7b47d010366b6c05c098d91 Reviewed-by: Dominik Holland <dominik.holland@qt.io>