diff options
author | Vijay Pai <vpai@google.com> | 2017-11-29 12:33:21 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-29 12:33:21 -0800 |
commit | c99a3ca415fcf5581f9c365e4dc3004e858fc76a (patch) | |
tree | 96e7ba54e8b3a1bedef74f600019a9ceda2cdca9 | |
parent | 85b383a126c979c571a3049489bb61d70f68fab1 (diff) | |
parent | 3b9ac296708be160b289d38ea8b8905795874676 (diff) |
Merge pull request #13550 from vjpai/supersane
Improve unsecurity sanity test
-rwxr-xr-x | tools/run_tests/sanity/check_unsecure.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tools/run_tests/sanity/check_unsecure.sh b/tools/run_tests/sanity/check_unsecure.sh index aabafedfb8..8584cbe36b 100755 --- a/tools/run_tests/sanity/check_unsecure.sh +++ b/tools/run_tests/sanity/check_unsecure.sh @@ -13,12 +13,15 @@ # See the License for the specific language governing permissions and # limitations under the License. - set -e -# Make sure that there is no path from a known unsecure target -# to an SSL library +# Make sure that there is no path from known unsecure libraries and targets +# to an SSL library. Any failure among these will make the script fail. + +test `bazel query 'somepath("//:grpc_unsecure", "//external:libssl")' 2>/dev/null | wc -l` -eq 0 || exit 1 +test `bazel query 'somepath("//:grpc++_unsecure", "//external:libssl")' 2>/dev/null | wc -l` -eq 0 || exit 1 +test `bazel query 'somepath("//:grpc++_codegen_proto", "//external:libssl")' 2>/dev/null | wc -l` -eq 0 || exit 1 +test `bazel query 'somepath("//test/cpp/microbenchmarks:helpers", "//external:libssl")' 2>/dev/null | wc -l` -eq 0 || exit 1 -test `bazel query "somepath(//test/cpp/microbenchmarks:helpers, //external:libssl)" 2>/dev/null | wc -l` -eq 0 +exit 0 -# Fall through with the exit code of that command |