diff options
author | 2015-09-08 16:56:00 +0000 | |
---|---|---|
committer | 2015-09-08 17:26:24 +0000 | |
commit | f3a2032307187d5e1f229426e0d571e349c50863 (patch) | |
tree | 1d27fdb2c4ce30e9489324c674b537e3f6e3e4cb /src | |
parent | def70167c86c8dbc37d4ac8832e6fa12bdf3baa8 (diff) |
Add an "embedded_scripts" filegroup that can be used to easily get all the necessary tools for integration tests.
--
MOS_MIGRATED_REVID=102564985
Diffstat (limited to 'src')
-rw-r--r-- | src/test/java/BUILD | 13 | ||||
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java | 6 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/test/java/BUILD b/src/test/java/BUILD index 0e89213a23..8315e1ccc0 100644 --- a/src/test/java/BUILD +++ b/src/test/java/BUILD @@ -1,3 +1,15 @@ +# This should correspond to the list of "EMBEDDED_TOOLS" in TestConstants.java.bazel. +filegroup( + name = "embedded_scripts", + testonly = 1, + data = [ + "//src/main/tools:build-runfiles", + "//src/main/tools:build_interface_so", + "//src/main/tools:namespace-sandbox", + "//src/main/tools:process-wrapper", + ], +) + java_library( name = "testutil", srcs = glob(["com/google/devtools/build/lib/testutil/*.java"]), @@ -572,6 +584,7 @@ java_test( name = "sandbox-tests", srcs = glob(["com/google/devtools/build/lib/sandbox/*.java"]), args = ["com.google.devtools.build.lib.AllTests"], + data = [":embedded_scripts"], deps = [ ":analysis_testutil", ":testutil", diff --git a/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java b/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java index 7a91f21620..dfcbfcd358 100644 --- a/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java +++ b/src/test/java/com/google/devtools/build/lib/testutil/TestConstants.java @@ -27,16 +27,16 @@ public class TestConstants { * A list of all embedded binaries that go into the regular Bazel binary. */ public static final ImmutableList<String> EMBEDDED_TOOLS = ImmutableList.of( + "build_interface_so", "build-runfiles", - "process-wrapper", "namespace-sandbox", - "build_interface_so"); + "process-wrapper"); /** * Location in the bazel repo where embedded binaries come from. */ public static final ImmutableList<String> EMBEDDED_SCRIPTS_PATHS = ImmutableList.of( - "DOES-NOT-WORK-YET"); + "src/main/tools"); /** * Path within runfiles tree for finding everything else. |