summaryrefslogtreecommitdiff
path: root/re2_test.bzl
blob: 8dafbd588c9f84d050043c06bc2a1c67e3fcd6d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright 2009 The RE2 Authors.  All Rights Reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

# Define a bazel macro that creates cc_test for re2.
def re2_test(name, deps=[], size="medium"):
  native.cc_test(
      name=name,
      srcs=["re2/testing/%s.cc" % (name)],
      deps=[
          ":re2",
          ":test",
      ] + deps,
      size = size,
  )