aboutsummaryrefslogtreecommitdiffhomepage
path: root/WORKSPACE
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2017-08-22 17:40:37 +0200
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2017-08-23 13:27:04 +0200
commit0baff0f51ecbc7956086d21e5c01201bc6672df9 (patch)
treee09dabf5827526de65e3033824d2035398c7bd87 /WORKSPACE
parentab58a9244bfccbc80fc3970329a36ce6ee3d4006 (diff)
Make the srcs test be a Bazel test
./compile.sh srcs has been broken at several time because this test cannot run on our internal presubmit (more precisely, don't see most breakage on our internal presubmit). Making this test a Bazel test should fix that at the same time reducing the scope of ./compile.sh (with the other move of the determinism test, this make compile.sh being only the bootstrapping script). To do so, we fetch the list of sources in the repository through a skylark repository and use genquery to interrogate the list of sources in //:srcs filegroup. Change-Id: If83af28a366cc0c52a7327ce9ed2489c7e88532f PiperOrigin-RevId: 166064682
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE4
1 files changed, 4 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index e9665ae9a2..20dac815cc 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -39,6 +39,10 @@ docker_repository()
load("//src/test/docker:flavours.bzl", "pull_images_for_docker_tests")
pull_images_for_docker_tests()
+# For src/test/shell/bazel:test_srcs
+load("//src/test/shell/bazel:list_source_repository.bzl", "list_source_repository")
+list_source_repository(name = "local_bazel_source_list")
+
# To run the Android integration tests in //src/test/shell/bazel/android:all or
# build the Android sample app in //examples/android/java/bazel:hello_world
#