Commit dda8c82f authored by Wieland Morgenstern's avatar Wieland Morgenstern

label apps tests as `apps`, label normalizeInputTest as `gpu`

parent 9b864c09
......@@ -49,12 +49,13 @@ function(add_qt_unit_test_internal test_name sources)
include_lib_vs_headers(${test_name})
include_discovery_vs_headers(${test_name})
target_link_libraries(${test_name} PRIVATE ${VS_GUI} ${VS_BASE} Qt5::Test Qt5::Concurrent Qt5::Gui Qt5::Multimedia Qt5::OpenGL Qt5::Widgets)
add_test(NAME apps_${test_name} COMMAND ${test_name} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
add_test(NAME ${test_name} COMMAND ${test_name} WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
set_tests_properties(${test_name} PROPERTIES LABELS "apps")
if (WINDOWS)
# Aweful cmake bug https://cmake.org/pipermail/cmake/2010-December/041176.html
set(PATH_STRING "${QT_PATH};$ENV{PATH}")
string(REPLACE ";" "\\;" PATH_STRING "${PATH_STRING}")
set_tests_properties(apps_${test_name} PROPERTIES ENVIRONMENT "PATH=${PATH_STRING}")
set_tests_properties(${test_name} PROPERTIES ENVIRONMENT "PATH=${PATH_STRING}")
endif(WINDOWS)
endfunction()
......@@ -67,7 +68,6 @@ if(HAVE_DISPLAY)
add_qt_unit_test(audioHelperTest)
add_qt_unit_test(cropInputTest)
add_qt_unit_test(extensionsTest)
add_qt_unit_test(normalizeInputTest)
add_qt_unit_test(panoSizeTest)
add_qt_unit_test(smartEnumTest)
add_qt_unit_test(stitchingWindowTest)
......@@ -75,6 +75,9 @@ if(HAVE_DISPLAY)
add_qt_unit_test(timeConverterTest)
add_qt_unit_test(updateCheckerTest)
add_qt_unit_test(normalizeInputTest)
set_tests_properties(normalizeInputTest PROPERTIES LABELS "apps gpu")
link_target_to_libvideostitch(audioHelperTest)
link_target_to_libvideostitch(normalizeInputTest)
target_link_libraries(normalizeInputTest PRIVATE ${VS_DISCOVERY})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment