re2_test.bzl 412 B

123456789101112
  1. # Copyright 2009 The RE2 Authors. All Rights Reserved.
  2. # Use of this source code is governed by a BSD-style
  3. # license that can be found in the LICENSE file.
  4. # Defines a Bazel macro that instantiates a native cc_test rule for an RE2 test.
  5. def re2_test(name, deps=[], size="medium"):
  6. native.cc_test(
  7. name=name,
  8. srcs=["re2/testing/%s.cc" % (name)],
  9. deps=[":test"] + deps,
  10. size=size,
  11. )