diff options
author | Colin Cross | 2019-05-13 15:35:45 -0500 |
---|---|---|
committer | Colin Cross | 2019-05-14 13:40:19 -0500 |
commit | 192e3aa6a86c486c976cdd8587d5700aeb304241 (patch) | |
tree | 571096be37a5fe50ddc1669b0f66c048cacfb677 | |
parent | e4948c79d38d91a3678c98e804b27de37e18adbf (diff) | |
download | platform-build-soong-192e3aa6a86c486c976cdd8587d5700aeb304241.tar.gz platform-build-soong-192e3aa6a86c486c976cdd8587d5700aeb304241.tar.xz platform-build-soong-192e3aa6a86c486c976cdd8587d5700aeb304241.zip |
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
-rw-r--r-- | bpf/Android.bp | 4 | ||||
-rw-r--r-- | bpf/bpf_test.go | 7 |
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, |