mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
tests: make qml test harness
build a qml test runner that includes ssrf interface The qml test runner allows having qml test files. Signed-off-by: Jan Iversen <jani@apache.org>
This commit is contained in:
parent
55f0b3b1f8
commit
b05e4c7b5f
5 changed files with 78 additions and 1 deletions
|
@ -76,6 +76,17 @@ enable_testing()
|
|||
add_definitions(-g)
|
||||
add_definitions(-DSUBSURFACE_TEST_DATA="${SUBSURFACE_TEST_DATA}")
|
||||
|
||||
# Build QML test runner
|
||||
add_executable(TestQML testqml.cpp )
|
||||
target_link_libraries(
|
||||
TestQML
|
||||
subsurface_corelib
|
||||
RESOURCE_LIBRARY
|
||||
${QT_TEST_LIBRARIES}
|
||||
${SUBSURFACE_LINK_LIBRARIES}
|
||||
)
|
||||
|
||||
# SSRF test cases (TBD, convert to standard qTest setup)
|
||||
TEST(TestUnitConversion testunitconversion.cpp)
|
||||
TEST(TestProfile testprofile.cpp)
|
||||
TEST(TestGpsCoords testgpscoords.cpp)
|
||||
|
@ -88,6 +99,7 @@ TEST(TestPreferences testpreferences.cpp)
|
|||
TEST(TestPicture testpicture.cpp)
|
||||
TEST(TestMerge testmerge.cpp)
|
||||
TEST(TestTagList testtaglist.cpp)
|
||||
add_test(NAME TestQML COMMAND $<TARGET_FILE:TestQML> ${SUBSURFACE_SOURCE}/tests)
|
||||
|
||||
|
||||
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
|
||||
|
@ -104,6 +116,7 @@ add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND}
|
|||
TestPicture
|
||||
TestMerge
|
||||
TestTagList
|
||||
TestQML
|
||||
)
|
||||
|
||||
# useful for debugging CMake issues
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue