From 8ee4e7ba0f519e4daf96f8db9005e19bdeaedf13 Mon Sep 17 00:00:00 2001 From: Asim Shankar Date: Fri, 17 Feb 2017 12:09:23 -0800 Subject: 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 --- tensorflow/go/BUILD | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tensorflow/go/BUILD') 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( -- cgit v1.2.3