Skip to content

Commit

Permalink
Make portable test suite in kernels/internal package combined
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 272325828
  • Loading branch information
Juho Ha authored and tensorflower-gardener committed Oct 2, 2019
1 parent e4db003 commit db6be9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
8 changes: 4 additions & 4 deletions tensorflow/lite/kernels/internal/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("//tensorflow:tensorflow.bzl", "transitive_hdrs")
load("//tensorflow/lite:build_def.bzl", "tflite_copts")
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite")
load("//tensorflow/lite:special_rules.bzl", "tflite_portable_test_suite_combined")

package(
default_visibility = [
Expand Down Expand Up @@ -318,7 +318,7 @@ cc_test(
srcs = ["tensor_test.cc"],
deps = [
":tensor",
"@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)

Expand All @@ -345,7 +345,7 @@ cc_test(
srcs = ["quantization_util_test.cc"],
deps = [
":quantization_util",
"@com_google_googletest//:gtest",
"@com_google_googletest//:gtest_main",
],
)

Expand Down Expand Up @@ -1010,4 +1010,4 @@ genrule(
visibility = ["//visibility:private"],
)

tflite_portable_test_suite()
tflite_portable_test_suite_combined(combine_conditions = {"deps": ["//testing/base/public:gunit_main"]})
6 changes: 0 additions & 6 deletions tensorflow/lite/kernels/internal/quantization_util_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,3 @@ TEST(QuantizationUtilTest, QuantizeMultiplierArray) {

} // namespace
} // namespace tflite

int main(int argc, char** argv) {
// On Linux, add: tflite::LogToStderr();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
6 changes: 0 additions & 6 deletions tensorflow/lite/kernels/internal/tensor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,3 @@ TEST(TensorTest, GetTensorShape1D) {

} // namespace
} // namespace tflite

int main(int argc, char** argv) {
// On Linux, add: tflite::LogToStderr();
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}

0 comments on commit db6be9c

Please sign in to comment.