1 |
commit: 2f275a47a864b0c18984da0b02d968ff1361920e |
2 |
Author: Thomas Bettler <thomas.bettler <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Apr 3 20:14:56 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 4 01:28:00 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f275a47 |
7 |
|
8 |
sci-geosciences/qgis: add test |
9 |
|
10 |
Signed-off-by: Thomas Bettler <thomas.bettler <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/24885 |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sci-geosciences/qgis/qgis-9999.ebuild | 29 +++++++++++++++++++++++------ |
15 |
1 file changed, 23 insertions(+), 6 deletions(-) |
16 |
|
17 |
diff --git a/sci-geosciences/qgis/qgis-9999.ebuild b/sci-geosciences/qgis/qgis-9999.ebuild |
18 |
index 157d86c11aaf..2ef1f49d303e 100644 |
19 |
--- a/sci-geosciences/qgis/qgis-9999.ebuild |
20 |
+++ b/sci-geosciences/qgis/qgis-9999.ebuild |
21 |
@@ -14,19 +14,19 @@ else |
22 |
examples? ( https://qgis.org/downloads/data/qgis_sample_data.tar.gz -> qgis_sample_data-2.8.14.tar.gz )" |
23 |
KEYWORDS="~amd64 ~x86" |
24 |
fi |
25 |
-inherit cmake python-single-r1 xdg |
26 |
+inherit cmake python-single-r1 virtualx xdg |
27 |
|
28 |
DESCRIPTION="User friendly Geographic Information System" |
29 |
HOMEPAGE="https://www.qgis.org/" |
30 |
|
31 |
LICENSE="GPL-2+ GPL-3+" |
32 |
SLOT="0" |
33 |
-IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle pdal polar postgres python qml serial" |
34 |
+IUSE="3d examples georeferencer grass hdf5 mapserver netcdf opencl oracle pdal polar postgres python qml serial test" |
35 |
|
36 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} mapserver? ( python )" |
37 |
|
38 |
# Disabling test suite because upstream disallow running from install path |
39 |
-RESTRICT="test" |
40 |
+RESTRICT="!test? ( test )" |
41 |
|
42 |
# 3.22.5+ *does* support GRASS 8 but we can't enable it yet because of |
43 |
# https://github.com/OSGeo/grass/pull/2269 (=> unresolved SONAME dependencies) |
44 |
@@ -112,6 +112,13 @@ BDEPEND=" |
45 |
dev-qt/linguist-tools:5 |
46 |
sys-devel/bison |
47 |
sys-devel/flex |
48 |
+ test? ( |
49 |
+ $(python_gen_cond_dep ' |
50 |
+ dev-python/PyQt5[${PYTHON_USEDEP},testlib] |
51 |
+ dev-python/nose2[${PYTHON_USEDEP}] |
52 |
+ dev-python/mock[${PYTHON_USEDEP}] |
53 |
+ ') |
54 |
+ ) |
55 |
" |
56 |
|
57 |
pkg_setup() { |
58 |
@@ -137,7 +144,7 @@ src_configure() { |
59 |
-DWITH_GUI=ON |
60 |
-DWITH_INTERNAL_MDAL=ON # not packaged, bug 684538 |
61 |
-DWITH_QSPATIALITE=ON |
62 |
- -DENABLE_TESTS=OFF |
63 |
+ -DENABLE_TESTS=$(usex test) |
64 |
-DWITH_3D=$(usex 3d) |
65 |
-DWITH_GSL=$(usex georeferencer) |
66 |
$(cmake_use_find_package hdf5 HDF5) |
67 |
@@ -202,8 +209,7 @@ src_configure() { |
68 |
done |
69 |
fi |
70 |
|
71 |
- use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) || |
72 |
- mycmakeargs+=( -DWITH_QGIS_PROCESS=OFF ) # FIXME upstream issue #39973 |
73 |
+ use python && mycmakeargs+=( -DBINDINGS_GLOBAL_INSTALL=ON ) |
74 |
|
75 |
# bugs 612956, 648726 |
76 |
addpredict /dev/dri/renderD128 |
77 |
@@ -234,6 +240,17 @@ src_install() { |
78 |
fi |
79 |
} |
80 |
|
81 |
+src_test() { |
82 |
+ myctestargs+=( -j1 ) |
83 |
+ myctestargs+=( -E '(ProcessingGuiTest|ProcessingQgisAlgorithmsTestPt1|ProcessingQgisAlgorithmsTestPt2|ProcessingQgisAlgorithmsTestPt3|ProcessingQgisAlgorithmsTestPt4|ProcessingGdalAlgorithmsRasterTest|ProcessingGdalAlgorithmsVectorTest|ProcessingGrass7AlgorithmsImageryTest|ProcessingGrass7AlgorithmsRasterTestPt1|ProcessingGrass7AlgorithmsRasterTestPt2|ProcessingGrass7AlgorithmsVectorTest|ProcessingOtbAlgorithmsTest|test_core_callout|test_core_compositionconverter|test_core_expression|test_core_gdalprovider|test_core_gdalutils|test_core_geonodeconnection|test_core_imagecache|test_core_labelingengine|test_core_layout|test_core_layoutcontext|test_core_layouthtml|test_core_layoutlabel|test_core_layoutmanualtable|test_core_layoutmap|test_core_layoutmapgrid|test_core_layoutmapoverview|test_core_layoutmultiframe|test_core_layoutpicture|test_core_linefillsymbol|test_core_mapdevicepixelratio|test_core_maprendererjob|test_core_meshlayer|test_core_meshlayerrenderer|test_core_networkaccessmana |
84 |
ger|test_core_offlineediting|test_core_pointpatternfillsymbol|test_core_rastercontourrenderer|test_core_rasterlayer|test_core_simplemarker|test_core_style|test_core_svgmarker|test_core_tiledownloadmanager|test_core_ziplayer|test_core_coordinatereferencesystem|test_core_geometry|test_gui_dualview|test_gui_htmlwidgetwrapper|test_gui_processinggui|test_gui_filedownloader|test_gui_ogrprovidergui|test_gui_meshlayerpropertiesdialog|test_gui_queryresultwidget|test_gui_listwidget|test_3d_3drendering|test_3d_tessellator|test_analysis_processingalgspt1|test_analysis_processingalgspt2|test_analysis_meshcontours|test_analysis_triangulation|test_analysis_processing|test_provider_wcsprovider|test_provider_postgresconn|test_provider_virtualrasterprovider|qgis_grassprovidertest8|test_app_qgisappclipboard|test_app_fieldcalculator|test_app_maptoolcircularstring|test_app_vertextool|PyQgsLocalServer|PyQgsAFSProvider|PyQgsPythonProvider|PyQgsAnnotation|PyQgsAuthenticationSystem|PyQgsAuthBasicMethod|PyQg |
85 |
sDataItem|PyQgsDelimitedTextProvider|PyQgsEmbeddedSymbolRenderer|PyQgsExpressionBuilderWidget|PyQgsExternalStorageWebDAV|PyQgsGeometryTest|PyQgsGoogleMapsGeocoder|PyQgsImageCache|PyQgsLayout|PyQgsLayoutHtml|PyQgsLayoutLegend|PyQgsLayoutMap|PyQgsLayoutMapGrid|PyQgsLayoutMapOverview|PyQgsMapClippingUtils|PyQgsMapLayerComboBox|PyQgsMapLayerProxyModel|PyQgsMemoryProvider|PyQgsOGRProviderGpkg|PyQgsPalLabelingCanvas|PyQgsPalLabelingLayout|PyQgsPalLabelingPlacement|PyQgsPointCloudAttributeByRampRenderer|PyQgsPointCloudClassifiedRenderer|PyQgsPointCloudExtentRenderer|PyQgsPointCloudRgbRenderer|PyQgsProcessExecutable|PyQgsProcessingInPlace|TestQgsRandomMarkerSymbolLayer|PyQgsRasterLayer|PyQgsRasterLayerRenderer|PyQgsRasterResampler|PyQgsRulebasedRenderer|PyQgsShapefileProvider|PyQgsSvgCache|PyQgsOGRProvider|PyQgsSpatialiteProvider|PyQgsTaskManager|PyQgsVectorFileWriter|PyQgsVectorLayer|PyQgsVectorLayerCache|PyQgsVectorLayerEditBuffer|PyQgsVectorLayerSelectedFeatureSource|PyQgsVectorLayerShap |
86 |
efile|PyQgsVirtualLayerProvider|PyQgsWFSProvider|PyQgsOapifProvider|PyQgsDBManagerGpkg|PyQgsAuxiliaryStorage|PyQgsFieldValidator|PyQgsSelectiveMasking|PyQgsPalLabelingServer|PyQgsServerWMSGetMap|PyQgsServerWMSGetLegendGraphic|PyQgsServerWMSGetPrint|PyQgsServerWMSGetPrintExtra|PyQgsServerWMSGetPrintOutputs|PyQgsServerWMSGetPrintAtlas|PyQgsServerWMSDimension|PyQgsServerAccessControlWMS|PyQgsServerAccessControlWFSTransactional|PyQgsServerCacheManager|PyQgsServerWMTS|PyQgsServerWFS|qgis_sipify|qgis_sip_include|qgis_sip_uptodate)' ) |
87 |
+ # test_core_gdalprovider - see https://github.com/qgis/QGIS/pull/47887 |
88 |
+ # test_core_offlineediting - see https://github.com/qgis/QGIS/pull/48059 |
89 |
+ |
90 |
+ myctestargs+=( --output-on-failure ) |
91 |
+ |
92 |
+ virtx cmake_src_test |
93 |
+} |
94 |
+ |
95 |
pkg_postinst() { |
96 |
if use postgres; then |
97 |
elog "If you don't intend to use an external PostGIS server" |