aboutsummaryrefslogtreecommitdiff
path: root/re2_test.bzl
diff options
context:
space:
mode:
Diffstat (limited to 're2_test.bzl')
-rw-r--r--re2_test.bzl12
1 files changed, 12 insertions, 0 deletions
diff --git a/re2_test.bzl b/re2_test.bzl
new file mode 100644
index 0000000..c0eb654
--- /dev/null
+++ b/re2_test.bzl
@@ -0,0 +1,12 @@
+# 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.
+
+# Defines a Bazel macro that instantiates a native cc_test rule for an RE2 test.
+def re2_test(name, deps=[], size="medium"):
+ native.cc_test(
+ name=name,
+ srcs=["re2/testing/%s.cc" % (name)],
+ deps=[":test"] + deps,
+ size=size,
+ )