diff options
author | 2017-12-19 10:04:02 -0800 | |
---|---|---|
committer | 2017-12-19 10:04:02 -0800 | |
commit | 237f9edcf65a8c09c6c2c8d68a4b9014892610aa (patch) | |
tree | cbd68a8b97c4f06927f05d5ea6c9ff0c6d81c446 /tools/run_tests | |
parent | 1acca45e8984acdae4bc782de7186e981dd39443 (diff) | |
parent | a2ed77db5624f780e0e7625504e3233f45e6b08d (diff) |
Merge pull request #13816 from mehrdada/sanitytest-shellcheck
Add a sanity test for shellcheck
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-x | tools/run_tests/sanity/check_shellcheck.sh | 27 | ||||
-rw-r--r-- | tools/run_tests/sanity/sanity_tests.yaml | 1 |
2 files changed, 28 insertions, 0 deletions
diff --git a/tools/run_tests/sanity/check_shellcheck.sh b/tools/run_tests/sanity/check_shellcheck.sh new file mode 100755 index 0000000000..f9b09167db --- /dev/null +++ b/tools/run_tests/sanity/check_shellcheck.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +# Copyright 2017 gRPC authors. +# +# 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 -e + +ROOT="$(dirname "$0")/../../.." + +DIRS=( + 'tools/run_tests/helper_scripts' +) + +for dir in "${DIRS[@]}"; do + find "$ROOT/$dir/" -name "*.sh" -type f -print0 | xargs -n1 -0 shellcheck +done diff --git a/tools/run_tests/sanity/sanity_tests.yaml b/tools/run_tests/sanity/sanity_tests.yaml index 3ce864a8bd..dab991a7b1 100644 --- a/tools/run_tests/sanity/sanity_tests.yaml +++ b/tools/run_tests/sanity/sanity_tests.yaml @@ -3,6 +3,7 @@ - script: tools/run_tests/sanity/check_cache_mk.sh - script: tools/run_tests/sanity/check_owners.sh - script: tools/run_tests/sanity/check_sources_and_headers.py +- script: tools/run_tests/sanity/check_shellcheck.sh - script: tools/run_tests/sanity/check_submodules.sh - script: tools/run_tests/sanity/check_test_filtering.py - script: tools/run_tests/sanity/check_tracer_sanity.py |