diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-09-01 07:08:01 -0700 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-09-01 07:08:01 -0700 |
commit | 6277569023f5ab25a2c5e6563ecbd366f7e4ce58 (patch) | |
tree | 6d85f32062fb5283002a50f2a777693a72d886f3 /tools/run_tests | |
parent | bd4e378445395bc752139e190bc21fd3b5182a11 (diff) |
Fix sanity
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-x | tools/run_tests/run_sanity.sh | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/tools/run_tests/run_sanity.sh b/tools/run_tests/run_sanity.sh index 2737e564c6..dd096ce2c2 100755 --- a/tools/run_tests/run_sanity.sh +++ b/tools/run_tests/run_sanity.sh @@ -36,13 +36,11 @@ export TEST=true cd `dirname $0`/../.. -./tools/buildgen/generate_projects.sh - -submodules=`mktemp` - -git submodule > $submodules +submodules=`mktemp /tmp/submXXXXXX` +want_submodules=`mktemp /tmp/submXXXXXX` -diff -u $submodules - << EOF +git submodule | awk '{ print $1 }' | sort > $submodules +cat << EOF | awk '{ print $1 }' | sort > $want_submodules 05b155ff59114735ec8cd089f669c4c3d8f59029 third_party/gflags (v2.1.0-45-g05b155f) c99458533a9b4c743ed51537e25989ea55944908 third_party/googletest (release-1.7.0) 33dd08320648ac71d7d9d732be774ed3818dccc5 third_party/openssl (OpenSSL_1_0_2d) @@ -50,7 +48,11 @@ diff -u $submodules - << EOF 50893291621658f355bc5b4d450a8d06a563053d third_party/zlib (v1.2.8) EOF -if [ -f cache.mk ] ; then +diff -u $submodules $want_submodules + +if git ls-files cache.mk --error-unmatch &> /dev/null ; then echo "Please don't commit cache.mk" exit 1 fi + +./tools/buildgen/generate_projects.sh |