511 Commits

Author SHA1 Message Date
Julien Cabieces
ce83f3e91d update masks to work with qt6 2025-05-09 06:22:32 +10:00
Jean Felder
a00f47c773 qgsproject: Add a sip removeMapLayers code to fix qt6 version
With this new method code, it is now possible to use
`QgsProject::removeMapLayers` with a list of layers or a list of
layers IDs in qt5 and qt6.

Co-authored-by: bdm-oslandia <benoit.de.mezzo@oslandia.com>
2025-05-01 10:33:58 +10:00
Jean Felder
624f1859ab test_qgscodeeditor: Correctly check that a font is monospace
`QgsCodeEditor::getMonospaceFont` is supposed to return a monospace
font. The test checks that the returned font is monospace by calling
QFont::styleHint` method and comparing it to
`QFont.StyleHint.Monospace`. However `QFont::StyleHint` matches the
font family. A font does not need to belong to the "Monospace" family
in order to be monospace.

This issue is fixed by using `QFontDatabase::isFixedPitch` to check if
the font is monospace. This also make the test work on Qt6.
2025-04-30 20:26:34 +10:00
bdm-oslandia
7996e1b587 fix(test_qgsserver_wfs): update xml tags to work with qt6 and reactivate test 2025-04-18 18:13:12 +02:00
bdm-oslandia
84de950dcc fix(test_qgsserver_wms_getfeatureinfo): update cast and expected xml to work with qt6 and reactivate test 2025-04-17 15:45:52 +02:00
bdm-oslandia
358b73b4e8 fix(ci/ogc): move log outputs from file to stderr as logs are not displayed and file is not used. 2025-03-21 12:12:23 +01:00
bdm-oslandia
b7afa5afb0 chore: no need to fail if directory exists 2025-03-04 12:00:44 +01:00
Nyall Dawson
a7b0542934 Resurrect SQL server testing on CI 2025-02-22 19:47:49 +10:00
Sandro Santilli
b1e8df28da Handle the case in which podman compose or docker compose fail
Implements a TODO item that was in the script
2025-01-24 12:00:14 +01:00
Matthias Kuhn
658ecdcea9 Remove legacy include (for ubuntu precise) 2024-12-30 16:35:20 +01:00
Alexander Bruy
53e174f05e
Merge pull request #59949 from nyalldawson/grass7im
Fix grass imagery tests on newer GRASS versions
2024-12-18 18:56:38 +00:00
Nyall Dawson
a1863a430f Skip test on Geos >= 3.11
Broken due to https://github.com/libgeos/geos/issues/1037
2024-12-18 16:45:29 +10:00
Nyall Dawson
176dadfaff
Run test on qt 6 2024-12-18 13:20:52 +10:00
Nyall Dawson
b4f6d2e907 Run test on qt6 2024-12-18 11:19:30 +10:00
Nyall Dawson
cea29feecf Enable a test on qt 6 builds 2024-12-14 19:03:05 +10:00
Nyall Dawson
7c65196b9f Test still fails on qt6 on ci (but passes locally!) 2024-12-14 10:22:12 +10:00
Nyall Dawson
3d2f37a756 Fix test which was never working, but just skipped on CI because too old GDAL 2024-12-14 10:22:12 +10:00
Nyall Dawson
05c269d61d Fix test on newer GEOS versions 2024-12-14 10:22:12 +10:00
Alexander Bruy
b524995a69
Merge pull request #59864 from nyalldawson/fix_server_crash
Fix crash in server VirtualErrorHandler on newer sip environments
2024-12-13 12:55:49 +00:00
Nyall Dawson
befc78e3f5 Run oauth2 python test on qt6 builds 2024-12-13 13:54:37 +10:00
Nyall Dawson
c2d213d339
Fix crash in server VirtualErrorHandler on newer sip environments
Fixes crash in tests, and adapts these VirtualErrorHandlers to the same
code used elsewhere in QGIS
2024-12-13 08:21:11 +10:00
Nyall Dawson
71646577a5 Run test on qt 6 builds 2024-12-13 05:24:22 +10:00
Nyall Dawson
887d3f6121
Run test on qt 6 builds 2024-12-12 15:51:58 +10:00
Even Rouault
d42bb6101e Fix OAuth2 configuration <--> JSON serialization/deserialization on QT6 2024-12-04 06:51:03 +10:00
Even Rouault
8dd4f8455c Fix issue with .gch ccach'ing not working with QT6 and gcc 2024-12-03 04:39:49 +10:00
Even Rouault
ddaca73dbf Due to the introduction of precompiled headers, ccache builds require setting 'ccache -set-config sloppiness=pch_defines,time_macros' 2024-12-03 04:39:49 +10:00
Denis Rouzaud
0f032e5f2d run pre-commit on all files 2024-11-29 15:38:02 +01:00
Even Rouault
92c7197bee QT6 testing: unbreak PyQgsPythonProvider, PyQgsMemoryProvider, PyQgsShapefileProvider, PyQgsSpatialiteProvider 2024-11-28 11:45:03 +10:00
Nyall Dawson
f284cc933f Properly disable test_core_tiledownloadmanager 2024-10-17 17:58:49 +10:00
Nyall Dawson
0495cdd134 Add a bit more test tolerance so test passes on qt 6 2024-10-17 17:58:49 +10:00
Nyall Dawson
43a735f574 Enable selective masking test on qt6 2024-10-17 17:58:49 +10:00
Nyall Dawson
02d2282352 Re-enable some tests on ci 2024-10-16 12:21:00 +10:00
Nyall Dawson
b3678311ba Enable text renderer tests on qt 6 2024-10-16 12:21:00 +10:00
Juergen E. Fischer
50c03ccf02 apply osgeo4w patches 2024-09-04 09:04:50 +10:00
Nyall Dawson
b3685cbbba
Update .ci/ogc/Dockerfile
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2024-08-14 16:26:08 +10:00
Nyall Dawson
7bd7c3ae0f
Fix github check annotations 2024-08-14 14:49:13 +10:00
Denis Rouzaud
b05941cdb5
remove useless code from workflow (#58065)
* remove useless code from workflow

This was never used because of limitations of running on PRs. Other approaches have been used since.

* comment set-output
2024-07-11 13:18:29 +02:00
Sandro Santilli
614ebf5f6b
.ci/run_tests.sh: fix podman run of container-based testing (#57688)
Closes GH-57724

---------

Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
2024-06-11 16:57:49 +02:00
مهدي شينون (Mehdi Chinoune)
97b19f453f Replace docker-compose by docker compose 2024-04-02 21:36:51 +00:00
Even Rouault
4c2ff458e8 [Qt6] [Tests] Fix PyQgsJsonUtils and PyQgsOGRProvider 2024-02-29 09:59:56 +10:00
Nyall Dawson
ec1b4f822a QVariant.Type, Qt.ItemFlag and Qt.CheckState need to be int compatible
For reasons(?) these aren't IntEnums/IntFlags on PyQt6, but we need
them to be int compatible for compatibility with PyQt5 code
2024-02-26 17:37:31 +01:00
Nyall Dawson
8139887d02 Fix handling of font family from HTML on Qt 6 builds
At some stage we'll likely need to update QgsTextCharacterFormat to
use a list of families to match the Qt 6 changes, but for now just
get the first listed font.
2024-02-20 08:55:59 +10:00
Nyall Dawson
4b7d6e793d Enable some tests 2024-02-19 07:36:08 +10:00
Nyall Dawson
100a628753 Run metadata tests on qt6 2024-02-17 05:38:14 +10:00
Nyall Dawson
1662500478 Fix crash in QgsStringUtils::truncateMiddleOfString on qt 6 2024-02-16 12:33:42 +10:00
Nyall Dawson
a9aa1ec751 Add some tolerance to test 2024-02-15 05:30:44 +10:00
Nyall Dawson
074d47187b PyQgsServerApi test is still fragile 2024-02-14 13:17:34 +10:00
Nyall Dawson
ffc5a355a8 Enable some tests 2024-02-14 13:17:34 +10:00
Nyall Dawson
2c58769f64 Enable some more tests 2024-02-13 20:51:03 +10:00
Even Rouault
777207b022 PyQgsWFSProvider: fix it for Qt6 and remove it from Qt6 blocklist 2024-02-13 13:45:39 +10:00