From 0a05086f17c72a3614747b1897e95234bcb07260 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 11 Nov 2016 17:26:44 +0000 Subject: 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 --- compile.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'compile.sh') 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" -- cgit v1.2.3