Skip to content

Commit

Permalink
create a dedicated repository for core/geometry tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Aug 19, 2021
1 parent a25f798 commit e690c8e
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 6 deletions.
6 changes: 2 additions & 4 deletions tests/src/core/CMakeLists.txt
Expand Up @@ -61,9 +61,7 @@ set(TESTS
testqgsgdalprovider.cpp
testqgsgdalutils.cpp
testqgsgenericspatialindex.cpp
testqgsgeometry.cpp
testqgsgeometryimport.cpp
testqgsgeometryutils.cpp
testqgsgeonodeconnection.cpp
testqgsgeopdfexport.cpp
testqgsgml.cpp
Expand Down Expand Up @@ -135,7 +133,6 @@ set(TESTS
testqgspainteffect.cpp
testqgspainteffectregistry.cpp
testqgspallabeling.cpp
testqgspoint.cpp
testqgspointcloudattribute.cpp
testqgspointcloudrendererregistry.cpp
testqgspointlocator.cpp
Expand All @@ -157,7 +154,6 @@ set(TESTS
testqgsrasterlayertemporalproperties.cpp
testqgsrastermarker.cpp
testqgsrastersublayer.cpp
testqgsrectangle.cpp
testqgsrelationreferencefieldformatter.cpp
testqgsrenderers.cpp
testqgsrulebasedrenderer.cpp
Expand Down Expand Up @@ -222,3 +218,5 @@ add_qgis_test(testqgscoordinatereferencesystem.cpp MODULE core LINKEDLIBRARIES q
if (ENABLE_PGTEST)
SET_TESTS_PROPERTIES(test_core_vectorlayerjoinbuffer PROPERTIES LABELS "POSTGRES")
endif()

add_subdirectory(geometry)
25 changes: 25 additions & 0 deletions tests/src/core/geometry/CMakeLists.txt
@@ -0,0 +1,25 @@
#####################################################
# Don't forget to include output directory, otherwise
# the UI file won't be wrapped!
get_filename_component(PARENT_DIR ../ ABSOLUTE)

include_directories(
${PARENT_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_SOURCE_DIR}/src/test
${CMAKE_CURRENT_BINARY_DIR}
)

#############################################################
# Tests:

set(TESTS
testqgsgeometry.cpp
testqgsgeometryutils.cpp
testqgspointxy.cpp
testqgsrectangle.cpp
)

foreach(TESTSRC ${TESTS})
add_qgis_test(${TESTSRC} MODULE app LINKEDLIBRARIES qgis_app)
endforeach(TESTSRC)
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
/***************************************************************************
test_template.cpp
testqgspointxy.cpp
--------------------------------------
Date : Sun Sep 16 12:22:23 AKDT 2007
Copyright : (C) 2007 by Gary E. Sherman
Expand Down Expand Up @@ -403,4 +403,4 @@ void TestQgsPointXY::isEmpty()
}

QGSTEST_MAIN( TestQgsPointXY )
#include "testqgspoint.moc"
#include "testqgspointxy.moc"
File renamed without changes.

0 comments on commit e690c8e

Please sign in to comment.