TEST_MAPPING += libbpf_android_test
Note, this does not add libbpf_load_test as well because this test
requires adding a bpf program to the system image.
Bug: N/A
Test: `atest --test-mapping .`
Change-Id: I770ec4876e1cb93a526e99bcb5a234f964f46971
diff --git a/libbpf_android/Android.bp b/libbpf_android/Android.bp
index 7f8bd38..8c69b24 100644
--- a/libbpf_android/Android.bp
+++ b/libbpf_android/Android.bp
@@ -85,6 +85,7 @@
"libutils",
],
require_root: true,
+ test_suites: ["general-tests"],
}
cc_test {
diff --git a/libbpf_android/TEST_MAPPING b/libbpf_android/TEST_MAPPING
new file mode 100644
index 0000000..9ec8a40
--- /dev/null
+++ b/libbpf_android/TEST_MAPPING
@@ -0,0 +1,7 @@
+{
+ "presubmit": [
+ {
+ "name": "libbpf_android_test"
+ }
+ ]
+}