diff options
author | Brad King <brad.king@kitware.com> | 2023-04-05 11:56:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-04-05 16:06:13 (GMT) |
commit | 1c8d4b4bf186356b82addbac56c14426a7833316 (patch) | |
tree | 89758c767155be83dbe0ec4990abb0452e439615 /Tests | |
parent | 2c59598b9117f546e35f2cdb291c3052f75dfd3e (diff) | |
download | CMake-1c8d4b4bf186356b82addbac56c14426a7833316.zip CMake-1c8d4b4bf186356b82addbac56c14426a7833316.tar.gz CMake-1c8d4b4bf186356b82addbac56c14426a7833316.tar.bz2 |
Tests: Teach RunCMake_TEST_FILTER to account for test variant description
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/RunCMake.cmake | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Tests/RunCMake/RunCMake.cmake b/Tests/RunCMake/RunCMake.cmake index e1c923d..8eb23a6 100644 --- a/Tests/RunCMake/RunCMake.cmake +++ b/Tests/RunCMake/RunCMake.cmake @@ -11,8 +11,12 @@ foreach( endforeach() function(run_cmake test) - if(DEFINED ENV{RunCMake_TEST_FILTER} AND NOT test MATCHES "$ENV{RunCMake_TEST_FILTER}") - return() + 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() + endif() + unset(test_and_variant) endif() set(top_src "${RunCMake_SOURCE_DIR}") |