summaryrefslogtreecommitdiff
path: root/test cases/frameworks/4 qt
AgeCommit message (Collapse)Author
2024-09-24qt module: allow has_tools to specify which tools to checkPierre Lamot
This allows checking for tools that may not be available in older version of qt or avoiding requesting tools that may not be necessary for a given project Co-authored-by: Nirbheek Chauhan <nirbheek@centricular.com>
2024-04-10Document a probable cause for test failures.Jussi Pakkanen
2024-03-17tests: rename skip_on_jobname to expect_skip_on_jobname and skip_on_os to ↵Christoph Reiter
expect_skip_on_os The test.json format currently has three keys related to skipping tests: * `skip_on_jobname` * `skip_on_os` * `skip_on_env` While `skip_on_env` marks the test itself as skipped, i.e. they don't get run when the conditions are met, the other two skip options are just marking the test as "expected to be skipped" if the conditions apply, i.e. they want to see `MESON_SKIP_TEST` in the output and things will fail if that doesn't happen. They don't actually skip the tests as the names imply. To make this clearer rename the keys: * `skip_on_jobname` -> `expect_skip_on_jobname` * `skip_on_os` -> `expect_skip_on_os` `skip_on_env` stays the same, since that actually skips. The docs were also confused about this, so adjust that too.
2024-02-12qt: add preserve_paths keyword to functionsCharles Brunet
This allow to generate ui and moc under subdirectories, as this is allowed with generic generators.
2023-09-08Override config-tool get_variable args for qmakeNirbheek Chauhan
2023-09-06qt module: add include_directories to moc compileCharles Brunet
Fixes #12182
2023-05-23qt: Allow specifying separate tools for qt4/5/6Nirbheek Chauhan
Currently you can only use one of qt4, qt5, qt6 in a single project when using a machine file because the config-tool lookup for qt only looks at `qmake` in the machine files, instead of looking up the binary names directly. Allow specifying `qmake` `qmake4` `qmake5` and `qmake6`. This is necessary for gstreamer, which can build separate qt5 and qt6 plugins that are distributed as static libraries, so the user can pick which one to use.
2023-04-11fix various spelling issuesJosh Soref
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2022-11-17tests: fix qt project test when running with qt4Eli Schwartz
*.qrc files converted to C++ sources could make use of Qt headers, and in practice for qt4 they seem to. Since this is Qt code to begin with, it makes sense to depend on the Qt being targeted regardless of version.
2022-04-12qt dependency: find the correct -qtX configtool nameEli Schwartz
Fixes regression in commit c211fea51389728783cf59ae41156a5e0de9c41a. The original dependency lookup looked for `qmake-{self.name}`, i.e. `qmake-qt5`, but when porting to config-tool, it got switched to `qmake-{self.qtname}` i.e. `qmake-Qt6`, which was bogus and never worked. As a result, if `qmake-qt5` and `qmake` both existed, and the latter was NOT qt5, it would only try the less preferred name, and then fail. We need to define self.name early enough to define the configtool names, which means we need to set it before running the configtool __init__() even though configtool/pkgconfig would also set it to the same value. Mark the tests as passing on two distros that were failing to detect qmake due to this issue, and were marked for skipping because we assumed that the CI skipping there was an expected case rather than an old regression.
2022-04-12tests: fix incomplete Qt 6 supportStefan Hajnoczi
The "frameworks/4 qt" test covers Qt 4 and 5. There is already Qt 6 code in the test but it is incomplete because translations are missing and Qt 6 requires C++17 or later to compile.
2021-09-29unittests: Make qt test work if multiple versions of qt installedmakise-homura
2021-09-10add test case for qrc translationsEli Schwartz
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-07-13Add expected skip annotations for non-linux CI runs to framework testsJon Turney
2021-07-07Annotate framework tests with where they are expected to skipJon Turney
Remove hard-coded framework test skip logic in skippable(), instead annotate test.json with environments in which skip is expected. (Mainly this is done with by testing the value of MESON_CI_JOBNAME now set for linux jobs)
2021-06-18modules/qt: use append rather than extend in preprocessDylan Baker
Because that's what we need, of course
2021-06-15modules/qt: Add a compile_moc methodDylan Baker
This method only compiles moc resources, nothing else
2021-06-15modules/qt: Add a compile_ui methodDylan Baker
Which is the same functionality split out of preprocess
2021-06-15modules/qt: Add a `compile_resources` methodDylan Baker
This is a separate method for just handling qrc resources.
2021-03-23Refactor Qt Dependency into proper split classes with factoriesDylan Baker
Currently the Qt Dependencies still use the old "combined" method for dependencies with multiple ways to be found. This is problematic as it means that `get_variable()` and friends don't work, as the dependency can't implement any of those methods. The correct solution is to make use of multiple Dependency instances, and a factory to tie them together. This does that. To handle QMake, I've leveraged the existing config-tool mechanism, which allows us to save a good deal of code, and use well tested code instead of rolling more of our own code. The one thing this doesn't do, but we probably should, is expose the macOS ExtraFrameworks directly, instead of forcing them to be found through QMake. That is a problem for another series, and someone who cares more about macOS than I do.
2021-02-07Add Qt6 moduleLuca Weiss
2020-03-08qt5: Add has_tools() methodXavier Claessens
2020-01-18Fix 'qt4test' test executable when only Qt4 is presentJon Turney
This always tries to load a 'qt5core_fr' translation file, when it is actually named 'qtNcore_fr'(where N is the qt version).
2020-01-18Make the 'framework/4 qt' test more flexibleJon Turney
Make the 'framework/4 qt' test more flexible about what version of Qt is expected to be present in the CI environment. Currently, this is hard-coded as Qt5. We add an option to specify it so we can run this test under CI with just Qt4 present.
2019-11-27tests: add clues to find missing private/qtobject_p.h [skip ci]Marc
Finding all the dependencies missing from my Fedora system to run the whole test suite was relatively quick - except for this one.
2018-10-24module-qt: add rcc_extra_arguments to pass extra arguments to rcc (#4406)xiannox
2018-09-10Qt: add main argument to Qt dependency object to link with qtmain library on ↵Alexey Rochev
Windows (#2327)
2018-09-03Qt: Allow passing dependency objects to preprocess method (#3470, #3875)Alexey Rochev
2018-08-26Tests for version constraints on custom lookup dependenciesJon Turney
2018-08-15Kill tabs dead! For good!Jussi Pakkanen
2018-04-28Fixed private headers on OSX with framework stuffAlexis Jeandet
Removed Qt4 private headers test since it's hard to get Qt4 private headers installed on CI. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-28qconfig_p.h isn't available on OSX :(Alexis Jeandet
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-28[Qt module] Privates headers: Implemented private_headers optionAlexis Jeandet
This commit adds private_headers option in dependency method which tells QtDependency to add private headers include path to build flags. Since there is no easy way to do this with pkg-config only qmake method supports this, so with private_headers set qmake will always be used. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-28[Qt module] Privates headers: Added failing test caseAlexis Jeandet
Meson doesn't provides yet a convenient way to include private Qt headers Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-04-04[Qt module] More qrc fixesAlexis Jeandet
When several qrc files are given all qrc files dependencies were mixed. Fixed non working use case: When user try to guess build dir layout and add use a relative path between a generated qrc file and a generated resource. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-03-30[Qt module] Added generated resource test case + some fixesAlexis Jeandet
Subdir is already in generated resource path. Some PEP8 fixes. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-03-26[Qt module] Add File object support for generated or not qrc filesAlexis Jeandet
Added missing sub-folder test Closes #3324 Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2018-02-21Skip test cases/frameworks/4 qt if Qt5 not foundJon Turney
2018-01-20Added failing test caseAlexis Jeandet
When having Qt resources in a meson subdir, meson prepends twice the subdir name in resource file dependencies. Here it will set 'subfolder/subfolder/resources/thing.png' as dependencie for stuff3.qrc. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-23[Qt module] Added translation files compilation methodAlexis Jeandet
- Added a new compile_translations method since preprocess was already quite full and translations compilation is quite different from ui, qrc, cpp files preprocessing. - Updated translation. - Updated test case. Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-11-09tests: fix qt unity buildMarkus Theil
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
2017-11-08tests: adapted Qt test for multiple rcc filesMarkus Theil
Signed-off-by: Markus Theil <markus.theil@tu-ilmenau.de>
2017-10-26fixes the extended test suite to work with qt5 **and** qt4.Leif Middelschulte
2017-10-25extends test case to fail if macro is undefined durcing preprocessingLeif Middelschulte
2017-10-12Fixes Qt4 plugin build and mixed Qt4/Qt5 tests builds.Alexis Jeandet
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-10-01Added include directory argument for Qt's Moc which is needed to build plugins.Alexis Jeandet
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
2017-06-10tests: Increase dependencies coverage a bit moreNirbheek Chauhan
2017-04-09Add an option to dependencies called 'method'. This can be used toAaron Small
configure a detection method, for those types of dependencies that have more than one means of detection. The default detection methods are unchanged if 'method' is not specified, and all dependencies support the method 'auto', which is the same as not specifying a method. The dependencies which do support multiple detection methods additionally support other values, depending on the dependency.
2017-01-21tests/4 qt: Force the use of -std=c++11Nirbheek Chauhan
Qt5 now requires this, and if no -std option is passed to clang, it does not enable C++ 11 features and we get a build failures.