diff options
author | Chris Parsons <cparsons@google.com> | 2016-10-10 19:45:44 +0000 |
---|---|---|
committer | Yue Gan <yueg@google.com> | 2016-10-11 08:44:54 +0000 |
commit | 441bc414ba664689eb549dcc4fde0a571e07a712 (patch) | |
tree | 3d851109d69e20a16b4c00858b7dce176bb519f7 /src/test/shell | |
parent | ba41c2df007f4d81e0987ae76824c855e5f4c437 (diff) |
Add make_hashed_objlist.py to the dummy darwin tools, to fix linux bazel builds
--
MOS_MIGRATED_REVID=135708040
Diffstat (limited to 'src/test/shell')
-rw-r--r-- | src/test/shell/bazel/BUILD | 10 | ||||
-rwxr-xr-x | src/test/shell/bazel/bazel_tools_test.sh | 27 |
2 files changed, 37 insertions, 0 deletions
diff --git a/src/test/shell/bazel/BUILD b/src/test/shell/bazel/BUILD index c7a4983bc1..8b54e5a19b 100644 --- a/src/test/shell/bazel/BUILD +++ b/src/test/shell/bazel/BUILD @@ -71,6 +71,16 @@ sh_test( ) sh_test( + name = "bazel_tools_test", + size = "large", + srcs = ["bazel_tools_test.sh"], + data = [ + ":test-deps", + "//:workspace-file", + ], +) + +sh_test( name = "bazel_java_test", size = "large", srcs = ["bazel_java_test.sh"], diff --git a/src/test/shell/bazel/bazel_tools_test.sh b/src/test/shell/bazel/bazel_tools_test.sh new file mode 100755 index 0000000000..30f4c2b0ec --- /dev/null +++ b/src/test/shell/bazel/bazel_tools_test.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# +# Copyright 2016 The Bazel 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. + +# Load test environment +source $(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/test-setup.sh \ + || { echo "test-setup.sh not found!" >&2; exit 1; } + +function test_build_objc_tools() { + # TODO(cparsons): Test building tools/objc/... + bazel build @bazel_tools//tools/objc:make_hashed_objlist.py \ + || fail "should build tools/objc/make_hashed_objlist.py" +} + +run_suite "bazel_tools test suite" |