From 0baff0f51ecbc7956086d21e5c01201bc6672df9 Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Tue, 22 Aug 2017 17:40:37 +0200 Subject: 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 --- WORKSPACE | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'WORKSPACE') 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 # -- cgit v1.2.3