Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 192e3aa6 authored by Colin Cross's avatar Colin Cross
Browse files

Add bpf_test.go to build and fix the tests

bpf_test.go was not listed in testSrcs, which meant it was not run
during the build, but ran and failed with go test android/soong/...

Test: m
Test: go test android/soong/...
Change-Id: I4542640e8ff08e71565ed50617dbe67d86b29b69
parent e4948c79
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21,10 +21,14 @@ bootstrap_go_package {
        "blueprint",
        "blueprint-proptools",
        "soong-android",
        "soong-cc",
        "soong-cc-config",
    ],
    srcs: [
        "bpf.go",
    ],
    testSrcs: [
        "bpf_test.go",
    ],
    pluginFor: ["soong_build"],
}
+7 −0
Original line number Diff line number Diff line
@@ -91,6 +91,13 @@ func testContext(bp string) *android.TestContext {
			src: "",
		}

		toolchain_library {
			name: "libgcc_stripped",
			vendor_available: true,
			recovery_available: true,
			src: "",
		}

		cc_library {
			name: "libc",
			no_libgcc: true,