cmake: Add repository name to test labels for qt5 builds
Change-Id: Icb23f2ea885f6d21bef80c587a431f7e9349f21b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
1fe8ddc7fe
commit
f2d26f95fe
@ -266,7 +266,13 @@ function(qt_internal_add_test name)
|
||||
|
||||
# Generate a label in the form tests/auto/foo/bar/tst_baz
|
||||
# and use it also for XML output
|
||||
file(RELATIVE_PATH label "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/${name}")
|
||||
set(label_base_directory "${PROJECT_SOURCE_DIR}")
|
||||
if (QT_SUPERBUILD)
|
||||
# Prepend repository name for qt5 builds, so that tests can be run for
|
||||
# individual repositories.
|
||||
set(label_base_directory "${label_base_directory}/..")
|
||||
endif()
|
||||
file(RELATIVE_PATH label "${label_base_directory}" "${CMAKE_CURRENT_SOURCE_DIR}/${name}")
|
||||
|
||||
if (arg_LOWDPI)
|
||||
target_compile_definitions("${name}" PUBLIC TESTCASE_LOWDPI)
|
||||
|
Loading…
Reference in New Issue
Block a user