Skip to content

Commit e111ce0

Browse files
author
timlinux
committed
Added a test for testing rendering performance. The test does the following:
- test for presence of test dataset - if test data is not present writes it to tmp - test data set is (180 /0.5) * (90 /0.5) polygons (each being .5 degree box) - renders the dataset to an image and times how long it takes to do that git-svn-id: http://svn.osgeo.org/qgis/trunk@7960 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 17c037a commit e111ce0

File tree

3 files changed

+278
-80
lines changed

3 files changed

+278
-80
lines changed

images/icons/qgis_icon.svg

+55-80
Loading

tests/src/core/CMakeLists.txt

+21
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,27 @@ ELSE (APPLE)
166166
INSTALL(TARGETS qgis_rendererstest RUNTIME DESTINATION ${QGIS_BIN_DIR})
167167
ADD_TEST(qgis_rendererstest ${QGIS_BIN_DIR}/qgis_rendererstest)
168168
ENDIF (APPLE)
169+
#
170+
# QgsMapRender test
171+
#
172+
SET(qgis_maprendertest_SRCS testqgsmaprender.cpp)
173+
SET(qgis_maprendertest_MOC_CPPS testqgsmaprender.cpp)
174+
QT4_WRAP_CPP(qgis_maprendertest_MOC_SRCS ${qgis_maprendertest_MOC_CPPS})
175+
ADD_CUSTOM_TARGET(qgis_maprendertestmoc ALL DEPENDS ${qgis_maprendertest_MOC_SRCS})
176+
ADD_EXECUTABLE(qgis_maprendertest ${qgis_maprendertest_SRCS})
177+
ADD_DEPENDENCIES(qgis_maprendertest qgis_maprendertestmoc)
178+
TARGET_LINK_LIBRARIES(qgis_maprendertest ${QT_LIBRARIES} qgis_core)
179+
SET_TARGET_PROPERTIES(qgis_maprendertest
180+
PROPERTIES INSTALL_RPATH ${QGIS_LIB_DIR}
181+
INSTALL_RPATH_USE_LINK_PATH true)
182+
IF (APPLE)
183+
# For Mac OS X, the executable must be at the root of the bundle's executable folder
184+
INSTALL(TARGETS qgis_maprendertest RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
185+
ADD_TEST(qgis_maprendertest ${CMAKE_INSTALL_PREFIX}/qgis_maprendertest)
186+
ELSE (APPLE)
187+
INSTALL(TARGETS qgis_maprendertest RUNTIME DESTINATION ${QGIS_BIN_DIR})
188+
ADD_TEST(qgis_maprendertest ${QGIS_BIN_DIR}/qgis_maprendertest)
189+
ENDIF (APPLE)
169190
170191
171192

0 commit comments

Comments
 (0)