diff options
Diffstat (limited to 'bp2build/filegroup_conversion_test.go')
-rw-r--r-- | bp2build/filegroup_conversion_test.go | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/bp2build/filegroup_conversion_test.go b/bp2build/filegroup_conversion_test.go index e978fb319..7ce559d9b 100644 --- a/bp2build/filegroup_conversion_test.go +++ b/bp2build/filegroup_conversion_test.go @@ -74,6 +74,7 @@ func TestFilegroupWithAidlSrcs(t *testing.T) { expectedBazelAttrs: AttrNameToString{ "srcs": `["aidl/foo.aidl"]`, "strip_import_prefix": `"aidl"`, + "tags": `["apex_available=//apex_available:anyapex"]`, }, }, { @@ -85,18 +86,21 @@ func TestFilegroupWithAidlSrcs(t *testing.T) { }`, expectedBazelAttrs: AttrNameToString{ "srcs": `["aidl/foo.aidl"]`, + "tags": `["apex_available=//apex_available:anyapex"]`, }, }, } for _, test := range testcases { - expectedBazelTargets := []string{ - MakeBazelTargetNoRestrictions("aidl_library", "foo", test.expectedBazelAttrs), - } - runFilegroupTestCase(t, Bp2buildTestCase{ - Description: test.name, - Blueprint: test.bp, - ExpectedBazelTargets: expectedBazelTargets, + t.Run(test.name, func(t *testing.T) { + expectedBazelTargets := []string{ + MakeBazelTargetNoRestrictions("aidl_library", "foo", test.expectedBazelAttrs), + } + runFilegroupTestCase(t, Bp2buildTestCase{ + Description: test.name, + Blueprint: test.bp, + ExpectedBazelTargets: expectedBazelTargets, + }) }) } } @@ -136,7 +140,11 @@ filegroup { MakeBazelTargetNoRestrictions("proto_library", "foo_bp2build_converted", AttrNameToString{ "srcs": `["proto/foo.proto"]`, "strip_import_prefix": `"proto"`, - "tags": `["manual"]`}), + "tags": `[ + "apex_available=//apex_available:anyapex", + "manual", + ]`, + }), MakeBazelTargetNoRestrictions("filegroup", "foo", AttrNameToString{ "srcs": `["proto/foo.proto"]`}), }}) |