snitch-org/snitch

CTest integration using Catch2 scripts does not work

cschreib opened this issue · 0 comments

Since snitch supports the same test listing and filtering CLI interface as Catch2, in principle we should be able to reuse the Catch2 CTest integration to run the snitch tests.

In practice it does not work because, currently, snitch applies test filtering on the base name of the test case only, and not the full name reported in --list-tests. The base name and full name differ for typed (templated) test cases, e.g. full name foo <int> vs base name foo. Therefore CTest gets the full name from --list-test and then tries to filter the tests with this full name, and finds nothing.