Skip to content

Commit

Permalink
Added a test for testing rendering performance. The test does the fol…
Browse files Browse the repository at this point in the history
…lowing:

 - 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
  • Loading branch information
timlinux committed Jan 14, 2008
1 parent 17c037a commit e111ce0
Show file tree
Hide file tree
Showing 3 changed files with 278 additions and 80 deletions.
135 changes: 55 additions & 80 deletions images/icons/qgis_icon.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions tests/src/core/CMakeLists.txt
Expand Up @@ -166,6 +166,27 @@ ELSE (APPLE)
INSTALL(TARGETS qgis_rendererstest RUNTIME DESTINATION ${QGIS_BIN_DIR})
ADD_TEST(qgis_rendererstest ${QGIS_BIN_DIR}/qgis_rendererstest)
ENDIF (APPLE)
#
# QgsMapRender test
#
SET(qgis_maprendertest_SRCS testqgsmaprender.cpp)
SET(qgis_maprendertest_MOC_CPPS testqgsmaprender.cpp)
QT4_WRAP_CPP(qgis_maprendertest_MOC_SRCS ${qgis_maprendertest_MOC_CPPS})
ADD_CUSTOM_TARGET(qgis_maprendertestmoc ALL DEPENDS ${qgis_maprendertest_MOC_SRCS})
ADD_EXECUTABLE(qgis_maprendertest ${qgis_maprendertest_SRCS})
ADD_DEPENDENCIES(qgis_maprendertest qgis_maprendertestmoc)
TARGET_LINK_LIBRARIES(qgis_maprendertest ${QT_LIBRARIES} qgis_core)
SET_TARGET_PROPERTIES(qgis_maprendertest
PROPERTIES INSTALL_RPATH ${QGIS_LIB_DIR}
INSTALL_RPATH_USE_LINK_PATH true)
IF (APPLE)
# For Mac OS X, the executable must be at the root of the bundle's executable folder
INSTALL(TARGETS qgis_maprendertest RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
ADD_TEST(qgis_maprendertest ${CMAKE_INSTALL_PREFIX}/qgis_maprendertest)
ELSE (APPLE)
INSTALL(TARGETS qgis_maprendertest RUNTIME DESTINATION ${QGIS_BIN_DIR})
ADD_TEST(qgis_maprendertest ${QGIS_BIN_DIR}/qgis_maprendertest)
ENDIF (APPLE)



0 comments on commit e111ce0

Please sign in to comment.