Tests: Adjust gtest filter to avoid skipping some Vulkan tests
Removes '/' prefix from gtest filter for parameterized tests. This prefix was causing tests in fixtures like VKRenderGraphTestScheduler and VKRenderGraphTestRender to be skipped in `make test`. Only parameterized tests with an InstantiationName will have a '*/' in their names as part of a prefix. But according to the spec, InstantiationName is optional, and if not set it wont generate prefixes. In these cases, the gtest_filter produced will not match the test names, and cause `make test` to not run the tests. Removing this '*/' prefix should still match any tests with a non-empty InstantiationName. Pull Request: https://projects.blender.org/blender/blender/pulls/136987
This commit is contained in:
committed by
Brecht Van Lommel
parent
cf6ee877a0
commit
65512c0f5c
@@ -346,7 +346,7 @@ function(gtest_add_tests)
|
||||
|
||||
# Parameterized tests have a different signature for the filter
|
||||
if("x${test_type}" STREQUAL "xTEST_P")
|
||||
string(REGEX REPLACE ${gtest_case_name_regex} "*/\\1.\\2/*" gtest_test_name ${hit})
|
||||
string(REGEX REPLACE ${gtest_case_name_regex} "\\1.\\2/*" gtest_test_name ${hit})
|
||||
elseif("x${test_type}" STREQUAL "xTEST_F" OR "x${test_type}" STREQUAL "xTEST")
|
||||
string(REGEX REPLACE ${gtest_case_name_regex} "\\1.\\2" gtest_test_name ${hit})
|
||||
elseif("x${test_type}" STREQUAL "xTYPED_TEST")
|
||||
|
||||
Reference in New Issue
Block a user