diff options
author | 2021-03-10 02:05:59 -0500 | |
---|---|---|
committer | 2021-03-24 02:27:19 -0400 | |
commit | 12b4c2706de31a61ae1c935fd4865aec822d1595 (patch) | |
tree | c0c8ac91696bcb48c34941dfacaa8e9821f51e9f /bp2build/conversion_test.go | |
parent | dca349a7823e6efdfd15965342235077f0d77c60 (diff) |
bp2build: add allowlist for package-level conversions.
This CL adds the support for specifying lists of directories in
build/soong/android/bazel.go, which are then written into
out/soong/bp2build/MANIFEST. Using this configuration,
modules/directories can either default to bp2build_available: true or
false, while still retaining the ability to opt-in or out at the module level.
It also ensures that ConvertWithBp2Build returns true iff the module
type has a registered bp2build converter.
Test: go tests
Test: demo.sh full
Test: TreeHugger presubmits for bp2build and mixed builds.
Change-Id: I0e0f6f4b1b2ec045f2f1c338f7084defc5d23a55
Diffstat (limited to 'bp2build/conversion_test.go')
-rw-r--r-- | bp2build/conversion_test.go | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/bp2build/conversion_test.go b/bp2build/conversion_test.go index ec5f27e21..a115ddcd6 100644 --- a/bp2build/conversion_test.go +++ b/bp2build/conversion_test.go @@ -89,16 +89,8 @@ func TestCreateBazelFiles_Bp2Build_AddsTopLevelFiles(t *testing.T) { expectedFilePaths := []filepath{ { dir: "", - basename: "BUILD", - }, - { - dir: "", basename: "WORKSPACE", }, - { - dir: bazelRulesSubDir, - basename: "BUILD", - }, } assertFilecountsAreEqual(t, files, expectedFilePaths) |