mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
test(tidy): check the fairmq-* checks with FileCheck
- Add test/tidy/RunCheck.cmake, a small check_clang_tidy.py: run one check with --fix on a copy of the input, then match the diagnostics against CHECK-MESSAGES lines and the fixed file against CHECK-FIXES lines. Any other warning or error fails the test. - Register one test per test/tidy/fairmq-*.cxx file. The inputs use the real FairMQ headers via the usage requirements of the FairMQ target. - Skip the tests with a warning if FileCheck is not found. - Add the test for fairmq-modernize-nonnamespaced-types. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -329,3 +329,7 @@ add_testsuite(MemoryResources
|
||||
${definitions}
|
||||
${environment}
|
||||
)
|
||||
|
||||
if(BUILD_TIDY_TOOL)
|
||||
add_subdirectory(tidy)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user