Skip to content

Commit

Permalink
Split testqgsprocessingalgs.cpp into two parts to avoid timeouts on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 23, 2022
1 parent 6c66382 commit a5f63ae
Show file tree
Hide file tree
Showing 7 changed files with 1,971 additions and 1,663 deletions.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmgpsbabeltools.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class ANALYSIS_EXPORT QgsConvertGpxFeatureTypeAlgorithm : public QgsProcessingAl
QStringList &logArgs
);

friend class TestQgsProcessingAlgs;
friend class TestQgsProcessingAlgsPt2;

};

Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmimportphotos.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ANALYSIS_EXPORT QgsImportPhotosAlgorithm : public QgsProcessingAlgorithm
static QVariant extractOrientationFromMetadata( const QVariantMap &metadata );
static QVariant extractTimestampFromMetadata( const QVariantMap &metadata );

friend class TestQgsProcessingAlgs;
friend class TestQgsProcessingAlgsPt1;
};

///@endcond PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmkmeansclustering.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ANALYSIS_EXPORT QgsKMeansClusteringAlgorithm : public QgsProcessingAlgorit
static void findNearest( std::vector< Feature > &points, const std::vector< QgsPointXY > &centers, int k, bool &changed );
static void updateMeans( const std::vector< Feature > &points, std::vector< QgsPointXY > &centers, std::vector< uint > &weights, int k );

friend class TestQgsProcessingAlgs;
friend class TestQgsProcessingAlgsPt1;
};

///@endcond PRIVATE
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmrasterlogicalop.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class ANALYSIS_EXPORT QgsRasterBooleanLogicAlgorithmBase : public QgsProcessingA
double mRasterUnitsPerPixelX;
double mRasterUnitsPerPixelY;
bool mTreatNodataAsFalse = false;
friend class TestQgsProcessingAlgs;
friend class TestQgsProcessingAlgsPt1;
};

/**
Expand Down
3 changes: 2 additions & 1 deletion tests/src/analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ endif()
set(TESTS
testqgsgeometrysnapper.cpp
testqgsinterpolator.cpp
testqgsprocessingalgs.cpp
testqgsprocessingalgspt1.cpp
testqgsprocessingalgspt2.cpp
testqgsprocessingmodelalgorithm.cpp
testqgszonalstatistics.cpp
testqgsrastercalculator.cpp
Expand Down
Loading

0 comments on commit a5f63ae

Please sign in to comment.