Integrates unittests for lts/services/s almost successfull into final validation phase
This commit is contained in:
46 files changed
+307
-108
No files matched your search
@@ -63,6 +63,8 @@ if(BUILD_TESTING)
|
||||
|
||||
# Exclude tests for non-existent or commented-out components
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_lts_app_descriptor_editor\\.cpp")
|
||||
# Exclude Qt Test-based tests (conflict with gtest main())
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_lts_app_descriptor\\.cpp")
|
||||
|
||||
# Exclude Grantlee-related tests when BUILD_GRANTLEE is OFF
|
||||
if(NOT BUILD_GRANTLEE)
|
||||
@@ -81,8 +83,20 @@ if(BUILD_TESTING)
|
||||
# Exclude LtsTimelineClassic tests when LtsTimelineClassic target isn't available
|
||||
if(NOT TARGET LtsTimelineClassic)
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_abstracttimelinemodel\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_event\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_eventdelegate\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_eventgraphic\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_eventlist\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_eventtools\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_item\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_ltsclassicdatamodel\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_ltsclassicfilterproxymodel\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_passiveeventcontainer\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_testtimelinemodel\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_timelineheaderview\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_timelineindicator\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_timelineview\\.cpp")
|
||||
list(FILTER EXISTING_SOURCES EXCLUDE REGEX "test_timelinewidget\\.cpp")
|
||||
message(STATUS "Migration tests: LtsTimelineClassic target not available, excluded LtsTimelineClassic tests")
|
||||
endif()
|
||||
|
||||
@@ -101,20 +115,26 @@ if(BUILD_TESTING)
|
||||
target_include_directories(migration_tests PRIVATE
|
||||
${CMAKE_SOURCE_DIR}
|
||||
${CMAKE_SOURCE_DIR}/include
|
||||
${CMAKE_SOURCE_DIR}/DDS
|
||||
${CMAKE_BINARY_DIR}/Lts
|
||||
${CMAKE_BINARY_DIR}/Lts/Common
|
||||
${CMAKE_BINARY_DIR}/Lts/Common/CodeGen
|
||||
${CMAKE_BINARY_DIR}/Lts/Common/LtsTimeline
|
||||
${CMAKE_BINARY_DIR}/Lts/Common/LtsTimelineClassic
|
||||
${CMAKE_BINARY_DIR}/Lts/Services
|
||||
${CMAKE_SOURCE_DIR}/Z/src/NGLLogger
|
||||
)
|
||||
|
||||
# Link against Qt6 components
|
||||
# Link against Qt6 components (Qt6::Test not needed - using gtest)
|
||||
if(QT6_GUI_AVAILABLE)
|
||||
target_link_libraries(migration_tests PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Gui
|
||||
Qt6::Widgets
|
||||
Qt6::Test
|
||||
GTest::gtest_main
|
||||
)
|
||||
else()
|
||||
target_link_libraries(migration_tests PRIVATE
|
||||
Qt6::Core
|
||||
GTest::gtest_main
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in new issue
Block a user