aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/lite/testing/BUILD
diff options
context:
space:
mode:
authorGravatar Austin Anderson <angerson@google.com>2018-03-07 14:30:00 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-07 14:33:35 -0800
commit1e293597745c7c2e07106deb2b6fe537e6c3a7ad (patch)
tree4e619d348587022315d14ec098b05326967106bf /tensorflow/contrib/lite/testing/BUILD
parent22529af3169181c83eb2e0bb48660b8f8858bb14 (diff)
Create mobile testing rules for TF Lite known-portable targets
This CL tags all known-already-portable TF Lite tests as portable, and (from those tests) tags those known as not portable. Adding tflite_portable_test_suite() to the bottom of a package marks all previous cc_tests as "intended to be portable". I've included all tests that I was able to naively make buildable on Android with my previous change that created a custom logging.h library. Most tests are buildable on Android already, but there is something in the common dependencies for the kernel tests that is not compatible with iOS. Outside of Google, this change does nothing except tag tests that are known to not be buildable on certain platforms. PiperOrigin-RevId: 188234489
Diffstat (limited to 'tensorflow/contrib/lite/testing/BUILD')
-rw-r--r--tensorflow/contrib/lite/testing/BUILD15
1 files changed, 14 insertions, 1 deletions
diff --git a/tensorflow/contrib/lite/testing/BUILD b/tensorflow/contrib/lite/testing/BUILD
index 83b9e21427..631601656d 100644
--- a/tensorflow/contrib/lite/testing/BUILD
+++ b/tensorflow/contrib/lite/testing/BUILD
@@ -8,6 +8,7 @@ load(
"//tensorflow/contrib/lite:build_def.bzl",
"gen_zipped_test_files",
)
+load("//tensorflow/contrib/lite:special_rules.bzl", "tflite_portable_test_suite")
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
@@ -236,6 +237,9 @@ cc_test(
size = "small",
srcs = ["tf_driver_test.cc"],
data = ["//tensorflow/contrib/lite:testdata/multi_add.pb"],
+ tags = [
+ "tflite_not_portable",
+ ],
deps = [
":tf_driver",
"@com_google_googletest//:gtest_main",
@@ -259,6 +263,9 @@ cc_test(
name = "generate_testspec_test",
size = "small",
srcs = ["generate_testspec_test.cc"],
+ tags = [
+ "tflite_not_portable",
+ ],
deps = [
":generate_testspec",
"@com_google_googletest//:gtest_main",
@@ -320,6 +327,7 @@ tf_cc_test(
tags = [
"no_cuda_on_cpu_tap",
"no_oss",
+ "tflite_not_portable",
],
deps = [
":tflite_diff_flags",
@@ -339,7 +347,10 @@ tf_cc_test(
],
data = [":optest"],
shard_count = 20,
- tags = ["no_oss"],
+ tags = [
+ "no_oss",
+ "tflite_not_portable",
+ ],
deps = [
":parse_testdata_lib",
":tflite_driver",
@@ -373,3 +384,5 @@ filegroup(
),
visibility = ["//tensorflow:__subpackages__"],
)
+
+tflite_portable_test_suite()