【问题标题】:syntax of the regex language used by ctest -Rctest -R 使用的正则表达式语言的语法
【发布时间】:2018-05-04 13:25:22
【问题描述】:

如上所述 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.

【问题讨论】:

    标签: cmake ctest


    【解决方案1】:

    原来我以错误的方式调用 ctest。我将它包装在 bash 脚本中的方式,我不得不将管道转义为 \\\|

    【讨论】:

      猜你喜欢
      • 2016-12-14
      • 2019-07-26
      • 1970-01-01
      • 1970-01-01
      • 2013-11-18
      • 2013-04-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多