Create OSS-compatible TF Lite portable test suite rule
authorAustin Anderson <angerson@google.com>
Tue, 6 Mar 2018 20:33:50 +0000 (12:33 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 6 Mar 2018 20:38:23 +0000 (12:38 -0800)
Adding the new rule tflite_portable_test_suite to the bottom of a package in TF
Lite will indicate that all previous cc_test rules in the package are supposed
to be portable, unless excluded by a tag.

Outside of Google, tflite_portable_test_suite is a no-op, which may
change in the future as mobile testing infrastructure improves.

PiperOrigin-RevId: 188063712

tensorflow/contrib/lite/special_rules.bzl [new file with mode: 0644]

diff --git a/tensorflow/contrib/lite/special_rules.bzl b/tensorflow/contrib/lite/special_rules.bzl
new file mode 100644 (file)
index 0000000..54083c4
--- /dev/null
@@ -0,0 +1,6 @@
+"""External versions of build rules that differ outside of Google."""
+
+def tflite_portable_test_suite(**kwargs):
+  """This is a no-op outside of Google."""
+  _ignore = [kwargs]
+  pass