From b9a80b762ddff18eee57bcb091aa97d95ddb7e7c Mon Sep 17 00:00:00 2001 From: Amit Patankar Date: Wed, 2 Sep 2020 14:26:43 -0700 Subject: [PATCH] Create BUILD files and corresponding targets for `tensorflow/core/lib/lmdb/testdata`. PiperOrigin-RevId: 329788155 Change-Id: I2301b7df6553f0ccbc7c0d1fc51f28283eeff60b --- tensorflow/core/lib/lmdb/BUILD | 22 ++------------- tensorflow/core/lib/lmdb/testdata/BUILD | 28 +++++++++++++++++++ .../tools/pip_package/pip_smoke_test.py | 2 +- 3 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 tensorflow/core/lib/lmdb/testdata/BUILD diff --git a/tensorflow/core/lib/lmdb/BUILD b/tensorflow/core/lib/lmdb/BUILD index c863d4c4ab5..f85de8cc223 100644 --- a/tensorflow/core/lib/lmdb/BUILD +++ b/tensorflow/core/lib/lmdb/BUILD @@ -1,28 +1,12 @@ # Description: -# lmdb test data packages. +# lmdb test data packages alias. package( licenses = ["notice"], # Apache 2.0 ) -filegroup( +alias( name = "lmdb_testdata", - testonly = 1, - srcs = [ - # A simple key-value store: - # 0 : 'b' - # 1 : 'b' - # ... - # 9 : 'b' - # Which is then overwritten with: - # 0 : 'a' - # 1 : 'b' - # ... - # 9 : 'j' - "testdata/data.mdb", - # LMDB, being a memory-mapped database, uses a different file format on - # big-endian systems. - "testdata/data_bigendian.mdb", - ], + actual = "//tensorflow/core/lib/lmdb/testdata:lmdb_testdata", visibility = ["//visibility:public"], ) diff --git a/tensorflow/core/lib/lmdb/testdata/BUILD b/tensorflow/core/lib/lmdb/testdata/BUILD new file mode 100644 index 00000000000..85046175f61 --- /dev/null +++ b/tensorflow/core/lib/lmdb/testdata/BUILD @@ -0,0 +1,28 @@ +# Description: +# lmdb test data packages. + +package( + licenses = ["notice"], # Apache 2.0 +) + +filegroup( + name = "lmdb_testdata", + testonly = 1, + srcs = [ + # A simple key-value store: + # 0 : 'b' + # 1 : 'b' + # ... + # 9 : 'b' + # Which is then overwritten with: + # 0 : 'a' + # 1 : 'b' + # ... + # 9 : 'j' + "data.mdb", + # LMDB, being a memory-mapped database, uses a different file format on + # big-endian systems. + "data_bigendian.mdb", + ], + visibility = ["//visibility:public"], +) diff --git a/tensorflow/tools/pip_package/pip_smoke_test.py b/tensorflow/tools/pip_package/pip_smoke_test.py index ebfe1dbdfb4..60e1ae5b656 100644 --- a/tensorflow/tools/pip_package/pip_smoke_test.py +++ b/tensorflow/tools/pip_package/pip_smoke_test.py @@ -82,7 +82,7 @@ DEPENDENCY_DENYLIST = [ "//tensorflow/python:tf_optimizer", "//tensorflow/python:compare_test_proto_py", "//tensorflow/core:image_testdata", - "//tensorflow/core/lib/lmdb:lmdb_testdata", + "//tensorflow/core/lib/lmdb/testdata:lmdb_testdata", "//tensorflow/core/kernels/cloud:bigquery_reader_ops", "//tensorflow/python/debug:grpc_tensorflow_server.par", "//tensorflow/python/feature_column:vocabulary_testdata",