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
This commit is contained in:
Colin Cross
2019-05-13 13:35:45 -07:00
parent e4948c79d3
commit 192e3aa6a8
2 changed files with 11 additions and 0 deletions

View File

@@ -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"],
}

View File

@@ -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,