aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross2019-05-14 17:08:10 -0500
committerandroid-build-merger2019-05-14 17:08:10 -0500
commit51cb5ee00424738aad08c3530c37ca67be81fbd2 (patch)
tree571096be37a5fe50ddc1669b0f66c048cacfb677
parent3cb6b2ef280d984b0f9be77ebf396ec25446b435 (diff)
parent192e3aa6a86c486c976cdd8587d5700aeb304241 (diff)
downloadplatform-build-soong-51cb5ee00424738aad08c3530c37ca67be81fbd2.tar.gz
platform-build-soong-51cb5ee00424738aad08c3530c37ca67be81fbd2.tar.xz
platform-build-soong-51cb5ee00424738aad08c3530c37ca67be81fbd2.zip
Add bpf_test.go to build and fix the tests
am: 192e3aa6a8 Change-Id: If8425dc910c3d5cf505364f892cbc7dcbfdfb2d0
-rw-r--r--bpf/Android.bp4
-rw-r--r--bpf/bpf_test.go7
2 files changed, 11 insertions, 0 deletions
diff --git a/bpf/Android.bp b/bpf/Android.bp
index 7bd4d443..882cd8af 100644
--- a/bpf/Android.bp
+++ b/bpf/Android.bp
@@ -21,10 +21,14 @@ bootstrap_go_package {
21 "blueprint", 21 "blueprint",
22 "blueprint-proptools", 22 "blueprint-proptools",
23 "soong-android", 23 "soong-android",
24 "soong-cc",
24 "soong-cc-config", 25 "soong-cc-config",
25 ], 26 ],
26 srcs: [ 27 srcs: [
27 "bpf.go", 28 "bpf.go",
28 ], 29 ],
30 testSrcs: [
31 "bpf_test.go",
32 ],
29 pluginFor: ["soong_build"], 33 pluginFor: ["soong_build"],
30} 34}
diff --git a/bpf/bpf_test.go b/bpf/bpf_test.go
index 1d53e413..2f492748 100644
--- a/bpf/bpf_test.go
+++ b/bpf/bpf_test.go
@@ -91,6 +91,13 @@ func testContext(bp string) *android.TestContext {
91 src: "", 91 src: "",
92 } 92 }
93 93
94 toolchain_library {
95 name: "libgcc_stripped",
96 vendor_available: true,
97 recovery_available: true,
98 src: "",
99 }
100
94 cc_library { 101 cc_library {
95 name: "libc", 102 name: "libc",
96 no_libgcc: true, 103 no_libgcc: true,