SKIP_REGULAR_EXPRESSION — CMake 3.28.3 Documentation

# SKIP_REGULAR_EXPRESSION

New in version 3.16.

If the output matches this regular expression the test will be marked as skipped.

If set, if the output matches one of specified regular expressions, the test will be marked as skipped. Example:

    set_property(TEST mytest PROPERTY
      SKIP_REGULAR_EXPRESSION "[^a-z]Skip" "SKIP" "Skipped"
    )

`SKIP_REGULAR_EXPRESSION` expects a list of regular expressions.

See also the `SKIP_RETURN_CODE`, `PASS_REGULAR_EXPRESSION`, and `FAIL_REGULAR_EXPRESSION` test properties.