customized pass for LLVM test-suite

Hello everyone,
I am trying to run a customized pass on LLVM test-suite. I see there is a make version of running customized pass, but it is deprecated. I believe the current standard is using cmake for running all tests. Does anyone know how to run customized pass on LLVM test-suite for cmake version? Thanks a lot.

Best,
Jack