aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/lib_package/libtensorflow_test.sh
diff options
context:
space:
mode:
authorGravatar Patrick Nguyen <drpng@google.com>2017-01-16 22:23:02 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-01-16 22:45:02 -0800
commit97c893338ca9f89906632efd2ce5efd91d0f7eb7 (patch)
treed0087c723b88fe916ec64d12ff0dd6a02fa8d0fe /tensorflow/tools/lib_package/libtensorflow_test.sh
parentcddb86ff7bedf1150b3be8e22a0cbf03f6c58de6 (diff)
Automated rollback of change 144470928
Change: 144673014
Diffstat (limited to 'tensorflow/tools/lib_package/libtensorflow_test.sh')
-rwxr-xr-xtensorflow/tools/lib_package/libtensorflow_test.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/tensorflow/tools/lib_package/libtensorflow_test.sh b/tensorflow/tools/lib_package/libtensorflow_test.sh
deleted file mode 100755
index 6463ecea70..0000000000
--- a/tensorflow/tools/lib_package/libtensorflow_test.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/env bash
-# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# ==============================================================================
-
-set -ex
-
-# Sanity test for the package C-library archive.
-# - Unarchive
-# - Compile a trivial C file that uses the archive
-# - Run it
-
-# Tools needed: A C-compiler and tar
-CC="${CC}"
-TAR="${TAR}"
-
-[ -z "${CC}" ] && CC="/usr/bin/gcc"
-[ -z "${TAR}"] && TAR="tar"
-
-# bazel tests run with ${PWD} set to the root of the bazel workspace
-TARFILE="${PWD}/tensorflow/tools/lib_package/libtensorflow.tar.gz"
-CFILE="${PWD}/tensorflow/tools/lib_package/libtensorflow_test.c"
-
-cd ${TEST_TMPDIR}
-
-# Extract the archive into tensorflow/
-mkdir tensorflow
-${TAR} -xzf ${TARFILE} -Ctensorflow
-
-# Compile the test .c file
-${CC} ${CFILE} -Itensorflow/include -Ltensorflow/lib -ltensorflow -oa.out
-
-# Execute it, with the shared library available.
-# DYLD_LIBRARY_PATH is used on OS X, LD_LIBRARY_PATH on Linux
-export DYLD_LIBRARY_PATH=tensorflow/lib
-export LD_LIBRARY_PATH=tensorflow/lib
-./a.out