diff options
author | 2023-12-07 13:10:56 -0800 | |
---|---|---|
committer | 2023-12-08 13:51:05 -0800 | |
commit | 8ff105860d20f2ccbb8d8044bf562f94100b7f6a (patch) | |
tree | b01575cd628eb36807b7ca274de28fd6a1971e17 /bpf/bpf_test.go | |
parent | e51c6e4109e8063e54cf7d8ced1b7da7f9359c34 (diff) |
Remove ConvertWithBp2build implementations
Remove the ConvertWithBp2build implementations from all the module
types, along with the related code.
Bug: 315353489
Test: m blueprint_tests
Change-Id: I212672286686a318893bc7348ddd5a5ec51e77a7
Diffstat (limited to 'bpf/bpf_test.go')
-rw-r--r-- | bpf/bpf_test.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bpf/bpf_test.go b/bpf/bpf_test.go index a2010ff2f..6e3909680 100644 --- a/bpf/bpf_test.go +++ b/bpf/bpf_test.go @@ -71,26 +71,3 @@ func TestBpfSourceName(t *testing.T) { `\QAndroid.bp:2:3: module "bpf_invalid_name.o" variant "android_common": invalid character '_' in source name\E`)). RunTestWithBp(t, bp) } - -func TestBpfWithBazel(t *testing.T) { - bp := ` - bpf { - name: "bpf.o", - srcs: ["bpf.c"], - bazel_module: { label: "//bpf" }, - } - ` - - result := android.GroupFixturePreparers( - prepareForBpfTest, android.FixtureModifyConfig(func(config android.Config) { - config.BazelContext = android.MockBazelContext{ - OutputBaseDir: "outputbase", - LabelToOutputFiles: map[string][]string{ - "//bpf": []string{"bpf.o"}}} - })).RunTestWithBp(t, bp) - - output := result.Module("bpf.o", "android_common").(*bpf) - - expectedOutputFiles := []string{"outputbase/execroot/__main__/bpf.o"} - android.AssertDeepEquals(t, "output files", expectedOutputFiles, output.objs.Strings()) -} |