aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/go/BUILD
diff options
context:
space:
mode:
authorGravatar Asim Shankar <ashankar@google.com>2017-02-17 12:09:23 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-17 12:24:50 -0800
commit8ee4e7ba0f519e4daf96f8db9005e19bdeaedf13 (patch)
tree3f577ce2a70828fe78613b1bac60b8824836345a /tensorflow/go/BUILD
parentc47d325f8760eb5050fa1b40a94de0a1f14f6e7f (diff)
Go: Run tests during continuous integration
TensorFlow uses bazel to build and test. However, the TensorFlow Go API is targeted for use with the 'go' tool. This commit: - Adds a shell test so that usage with the 'go' tool can be tested with 'bazel test //tensorflow/go/...' - Installs Go in the images used in the continuous build Change: 147864583
Diffstat (limited to 'tensorflow/go/BUILD')
-rw-r--r--tensorflow/go/BUILD12
1 files changed, 12 insertions, 0 deletions
diff --git a/tensorflow/go/BUILD b/tensorflow/go/BUILD
index d69233f4fe..f16cffac99 100644
--- a/tensorflow/go/BUILD
+++ b/tensorflow/go/BUILD
@@ -9,6 +9,18 @@ licenses(["notice"]) # Apache 2.0
exports_files(["LICENSE"])
+sh_test(
+ name = "test",
+ size = "small",
+ srcs = ["test.sh"],
+ data = [
+ ":all_files", # Go sources
+ "//tensorflow:libtensorflow.so", # C library
+ "//tensorflow/c:headers", # C library header
+ "//tensorflow/cc/saved_model:saved_model_half_plus_two", # Testdata for LoadSavedModel
+ ],
+)
+
filegroup(
name = "all_files",
srcs = glob(