ctest -R使用的正则表达式语法的语法

时间:2018-05-04 13:25:22

标签: cmake ctest

如上所述 https://cmake.org/cmake/help/v3.7/manual/ctest.1.html, ctest支持过滤测试以运行正则表达式。不幸的是,我似乎无法找出ctest使用的正则表达式语言的语法。

我想做一些像

这样的事情



ctest -R "SomeTest|SomeOtherTest" # should execute the two tests named and no other tests.




1 个答案:

答案 0 :(得分:0)

原来我以错误的方式调用ctest。我将它包装在一个bash脚本中的方式我必须以\\\|的形式逃避管道。