xref: /aosp_15_r20/external/grpc-grpc/tools/run_tests/sanity/check_submodules.sh (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1#!/bin/sh
2
3# Copyright 2015 gRPC authors.
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9#     http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17set -e
18
19export TEST=true
20
21cd "$(dirname "$0")/../../.."
22
23submodules=$(mktemp /tmp/submXXXXXX)
24want_submodules=$(mktemp /tmp/submXXXXXX)
25
26git submodule | sed 's/+//g' | awk '{ print $2 " " $1 }' | sort >"$submodules"
27cat <<EOF | sort >"$want_submodules"
28third_party/abseil-cpp 4a2c63365eff8823a5221db86ef490e828306f9d
29third_party/benchmark 344117638c8ff7e239044fd0fa7085839fc03021
30third_party/bloaty 60209eb1ccc34d5deefb002d1b7f37545204f7f2
31third_party/boringssl-with-bazel e14d29f68c2d1b02e06f10c83b9b8ea4d061f8df
32third_party/cares/cares 6360e96b5cf8e5980c887ce58ef727e53d77243a
33third_party/envoy-api 78f198cf96ecdc7120ef640406770aa01af775c4
34third_party/googleapis 2f9af297c84c55c8b871ba4495e01ade42476c92
35third_party/googletest 2dd1c131950043a8ad5ab0d2dda0e0970596586a
36third_party/opencensus-proto 4aa53e15cbf1a47bc9087e6cfdca214c1eea4e89
37third_party/opentelemetry 60fa8754d890b5c55949a8c68dcfd7ab5c2395df
38third_party/opentelemetry-cpp 4bd64c9a336fd438d6c4c9dad2e6b61b0585311f
39third_party/protobuf 2434ef2adf0c74149b9d547ac5fb545a1ff8b6b5
40third_party/protoc-gen-validate fab737efbb4b4d03e7c771393708f75594b121e4
41third_party/re2 0c5616df9c0aaa44c9440d87422012423d91c7d1
42third_party/xds 3a472e524827f72d1ad621c4983dd5af54c46776
43third_party/zlib 09155eaa2f9270dc4ed1fa13e2b4b2613e6e4851
44EOF
45
46diff -u "$submodules" "$want_submodules"
47
48rm "$submodules" "$want_submodules"
49