mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Tests: Teach RunCMake_TEST_FILTER to account for test variant description
This commit is contained in:
@@ -11,9 +11,13 @@ foreach(
|
|||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
function(run_cmake test)
|
function(run_cmake test)
|
||||||
if(DEFINED ENV{RunCMake_TEST_FILTER} AND NOT test MATCHES "$ENV{RunCMake_TEST_FILTER}")
|
if(DEFINED ENV{RunCMake_TEST_FILTER})
|
||||||
|
set(test_and_variant "${test}${RunCMake_TEST_VARIANT_DESCRIPTION}")
|
||||||
|
if(NOT test_and_variant MATCHES "$ENV{RunCMake_TEST_FILTER}")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
unset(test_and_variant)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(top_src "${RunCMake_SOURCE_DIR}")
|
set(top_src "${RunCMake_SOURCE_DIR}")
|
||||||
set(top_bin "${RunCMake_BINARY_DIR}")
|
set(top_bin "${RunCMake_BINARY_DIR}")
|
||||||
|
|||||||
Reference in New Issue
Block a user