549 Commits

Author SHA1 Message Date
Nyall Dawson
5f320b4369 Blocklist fragile server tests on Ubuntu CI
These tests have started segfaulting randomly since upgrade from
24.10 to 25.04. It's a Ubuntu 25.04 specific issue, as the tests
have been run on the Fedora CI (and older Ubuntu) for years without
issue.

At this stage the cause is unknown, but the failures are just
noise and risk hiding real issues. Given that the Fedora CI is
still running these tests then we don't have any drop in
test coverage by blocking them from running on the Ubuntu builds.
2025-10-01 05:56:34 +10:00
Nyall Dawson
e15ceb9671 More fixes 2025-09-04 16:04:23 +10:00
Nyall Dawson
f31cff4dd7 Fix builds 2025-09-04 16:04:23 +10:00
Nyall Dawson
70301af093 Cleanup run_tests.sh 2025-09-04 16:04:23 +10:00
Nyall Dawson
6b26831e51 Build ogc tests with qt5
Non trivial to fix this workflow
2025-09-04 16:04:23 +10:00
Nyall Dawson
cfc7c797af Update CI to assume qt6 builds 2025-09-04 16:04:23 +10:00
Nyall Dawson
bcc5422e18 Update comment 2025-09-02 18:51:52 +10:00
Nyall Dawson
cfb80176e5 Use a different blocklist for fedora/ubuntu qt6 builds 2025-09-02 18:51:52 +10:00
Nyall Dawson
6df85c76e2 Run test on qt6 2025-09-02 15:47:10 +10:00
Nyall Dawson
bb04661a7f Remove layout html test from qt 6 blocklist
... this is a temporary "fix" only, as there's no actual tests
from that file which are run under qt 6. They are all skipped
because webkit isn't available.

To be resurrected when we've ported the HTML item fully to
web engine.
2025-09-02 15:47:10 +10:00
Nyall Dawson
72c284395d Fix advanced digitizing test under Qt 6
Root cause of issue is that the test was calling QAction::trigger
on a disabled action. On Qt 5 this wasn't an issue, and the
slot connected to the action's triggered signal was still
called. On Qt 6 this slot is NOT called for disabled actions.

So we need to ensure that the action's triggered in the test
ARE correctly enabled, and the way to do this is to call
QgsAdvancedDigitizingDockWidget::updateCapacity. This slot is
connected to QgsProject::snappingConfigChanged.

Ensure that we set the snapping config on the project as well
as the canvas in tests to make sure that this happens.

(outside of tests, the canvas snapping utils settings are
set whenever the project snapping config is changed.. so now
the tests better mimic what's actually happening in app too)
2025-09-02 10:30:40 +10:00
Nyall Dawson
c5bc81f437 Adapt QgsSettings for PyQt6 enum approach
Since PyQt6 uses native Python enums for flags, we can just
rely on standard enum methods and drop the old metaobject hacks
required for Qt5
2025-09-02 08:03:10 +10:00
Nyall Dawson
2bd55f4d5a Run test on qt 6 2025-09-01 18:50:58 +10:00
Nyall Dawson
399d19979b Run Processing Test pt4 on Qt6 builds 2025-09-01 16:51:39 +10:00
Nyall Dawson
f6cdc68e1f Run PyQgsAuthenticationSystem test on Qt 6 2025-09-01 15:38:46 +10:00
Nyall Dawson
8e7314f011 Run test on qt6 2025-09-01 12:39:40 +10:00
Nyall Dawson
80cd372ac6 Remove mssql tests from qt6 blocklist
These tests won't be run if the mssql docker isn't available anyway,
no need to explicitly blocklist them
2025-08-29 06:33:50 +10:00
Nyall Dawson
97198d0527 Run annotation test on qt 6 builds 2025-08-28 13:51:07 +10:00
Nyall Dawson
82b4d4e92d Fix aliasing of clipped raster renders on qt 6
Match the rendering of raster layers with clipping paths to the
same appearance as Qt 5, where the clip path forces the raster
to be rendered with antialiasing in order to get nice appearance
along the clip path boundaries
2025-08-27 16:24:48 +10:00
Nyall Dawson
55b8e9045b Add test masks, variant for label placement test on qt 6 2025-08-27 13:03:41 +10:00
Nyall Dawson
eb039e5b47 Fix edit widgets test on qt 6
Differences in null/invalid qvariant handling on qt6 meant that
we weren't setting the combobox index to the existing entry
with a null (but not invalid) qvariant user data
2025-08-27 12:54:12 +10:00
Nyall Dawson
98dc165be0 Add some test masks for qt6 rendering 2025-08-26 14:29:28 +10:00
Nyall Dawson
0ba7673368 Fix elevation profile canvas test on qt 6
The test was incorrectly accessing freed objects (mouse events),
assuming that we had ownership of them. Use copies instead
to avoid this.
2025-08-26 13:40:23 +10:00
Nyall Dawson
f9c6025ca0 Fix processing_gui test on qt6
The test was only passing on qt5 builds because QMessageBox::exec
was immediately returning false WITHOUT showing the dialog. On
Qt 6 builds the dialog WAS correctly showing, and since its a
blocking dialog it hangs the test.

Workaround by disabling the confirmation dialog when running
as unit tests.
2025-08-26 05:16:50 +10:00
Nyall Dawson
72a6b06920 Fix vector tile test on Qt 6
Stabilise the labels shown in the test -- the test is actually
trying to label EVERY country, so the collision avoidance was
limiting to a semi-random set depending on the qt internal hash logic.
2025-08-25 19:26:48 +10:00
Juergen E. Fischer
33fc476d89 * replace external qwtpolar with qwt 6.3
* require qwt >=6.2 (and fallback to internal 6.3 if system's qwt doesn't suffice)
* debian doesn't have qwt for Qt6 and won't have it for trixie
2025-07-23 07:11:51 +10:00
Even Rouault
8f76e0d600 QT6 tests: fix PyQgsServerAccessControlWFSTransactional 2025-06-19 10:34:44 +12:00
Julien Cabieces
ecf52840b6 fix(OracleCI): oracle provider need libaio to run 2025-06-04 10:02:54 +10:00
Even Rouault
7489f84919 [Tests] Fix test_core_ogcutils on QT6 2025-05-20 09:05:11 +10:00
Even Rouault
c579f7b307 [Tests] Fix PyQgsSymbolLayerReadSld and PyQgsMapBoxGlStyleConverter on QT6 2025-05-20 08:53:14 +10:00
Nyall Dawson
7d8280e802 Delimited text test can be run on qt6 now 2025-05-19 17:55:35 +10:00
Alexander Bruy
13abaec4f6 fix PyQgsNetworkAccessManager test on Qt6 2025-05-19 10:08:54 +10:00
Even Rouault
b7f69c1773 [Tests] Fix PyQgsRasterAttributeTable for QT6 2025-05-19 08:22:13 +10:00
Alexander Bruy
78d935c3b2
Merge pull request #61882 from alexbruy/qt6-gdal-vector-algs-test
enable GdalAlgorithmsVectorTest for Qt6 builds
2025-05-18 15:12:42 +01:00
Alexander Bruy
d0f97ef833 fix PyQgsFloatingWidget test on Qt6 2025-05-18 10:30:27 +10:00
Alexander Bruy
6b43049104 enable QGIS algorithms tests (part 2) on Qt6 2025-05-18 10:29:28 +10:00
Alexander Bruy
bf1e3e6933 enable GdalAlgorithmsVectorTest for Qt6 builds 2025-05-17 10:21:15 +01:00
Even Rouault
c46759c6f5 Fix and unblock PyQgsLayerDefinition on QT6 2025-05-17 11:13:09 +10:00
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