aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-11-11 17:26:44 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-11-14 14:51:40 +0000
commit0a05086f17c72a3614747b1897e95234bcb07260 (patch)
tree7aadd38ee828a595f7718e9f6e2d033852b2dc70
parentfab84872276291dc8ed24e1638f743595df0e722 (diff)
In the //:srcs completeness test, ignore derived
The compile.sh script contains a test verifying that all sources of Bazel are contained in the //:srcs target. As reference, the list of files reachable from the top-level directory is taken. In this check, ignore all derived sources, i.e., the content of the derived subdirectory to make this test pass as well when executed from the distribution artifact. -- Change-Id: I590bc9f424ed5b9f87ed07166ecb75b5aeac9fb3 Reviewed-on: https://bazel-review.googlesource.com/#/c/7136 MOS_MIGRATED_REVID=138884271
-rwxr-xr-xcompile.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
index 484b043a57..c9aa36439c 100755
--- a/compile.sh
+++ b/compile.sh
@@ -155,6 +155,7 @@ if [ $DO_SRCS_TEST ]; then
find . -type f | sed 's|./||' \
| grep -v '^bazel-' | grep -v '^WORKSPACE.user.bzl' \
| grep -v '^\.' | grep -v '^out/' | grep -v '^output/' \
+ | grep -v '^derived' \
| grep -Ev "${SRCS_EXCLUDES}" \
| grep -v '^tools/defaults/BUILD' \
| sort -u >"${OUTPUT_DIR}/srcs-find"