diff --git a/cmake/build_defs.bzl b/cmake/build_defs.bzl index 084a34f048..157c3cb053 100644 --- a/cmake/build_defs.bzl +++ b/cmake/build_defs.bzl @@ -25,7 +25,7 @@ """Bazel support functions related to CMake support.""" -def staleness_test(name, outs, generated_pattern, target_files = None, **kwargs): +def staleness_test(name, outs, generated_pattern, target_files = None, tags = [], **kwargs): """Tests that checked-in file(s) match the contents of generated file(s). The resulting test will verify that all output files exist and have the @@ -72,5 +72,6 @@ def staleness_test(name, outs, generated_pattern, target_files = None, **kwargs) deps = [ Label("//cmake:staleness_test_lib"), ], + tags = ["staleness_test"] + tags, **kwargs )