Run libinput_tests on host
These tests are testing the libinput library, so they should run OK on
host.
Compile and run these on host in this CL.
Some tests have been skipped because the corresponding code hardcoded
Android-specific paths. Those can be improved in the future.
Due to the complexity of getting Android device's kernel configs on
host, those tests have been skipped, as well.
Bug: 249591924
Bug: 237835584
Test: atest --no-bazel-mode --host libinput_tests
Change-Id: I110f3ad80823b40b0ec7980c3f1d59e653b4fd8b
diff --git a/libs/input/tests/Android.bp b/libs/input/tests/Android.bp
index c53811a..5aae37d 100644
--- a/libs/input/tests/Android.bp
+++ b/libs/input/tests/Android.bp
@@ -10,6 +10,7 @@
cc_test {
name: "libinput_tests",
+ host_supported: true,
srcs: [
"IdGenerator_test.cpp",
"InputChannel_test.cpp",
@@ -24,6 +25,7 @@
static_libs: [
"libgui_window_info_static",
"libinput",
+ "libui-types",
],
cflags: [
"-Wall",
@@ -35,11 +37,13 @@
"libbinder",
"libcutils",
"liblog",
- "libui",
"libutils",
"libvintf",
],
data: ["data/*"],
+ test_options: {
+ unit_test: true,
+ },
test_suites: ["device-tests"],
}
@@ -60,7 +64,6 @@
"libcutils",
"libutils",
"libbinder",
- "libui",
"libbase",
],
}