summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2020-02-24 15:57:05 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2020-02-24 06:45:01 +0000
commit6d173f890abe7e87060aa9087dd866091a6ef2e3 (patch)
tree3a17596e0f73954bfa43e4ef73686e87f1cb6db5
parent200fd44439f0754c5dcbf84312dfc707b7683fe5 (diff)
downloadlibinput-6d173f890abe7e87060aa9087dd866091a6ef2e3.tar.gz
test: disable a bunch of tests relying on libwacom
Some of these may have a non-libwacom solution but let's be honest, you shouldn't be skipping libwacom if you rely on tablets to be precise. Fixes #436 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--test/test-tablet.c13
-rw-r--r--test/test-touchpad.c2
2 files changed, 15 insertions, 0 deletions
diff --git a/test/test-tablet.c b/test/test-tablet.c
index e79dbaef..2e604189 100644
--- a/test/test-tablet.c
+++ b/test/test-tablet.c
@@ -5327,6 +5327,7 @@ verify_left_handed_touch_sequence(struct litest_device *finger,
START_TEST(tablet_rotation_left_handed)
{
+#if HAVE_LIBWACOM
struct litest_device *tablet = litest_current_device();
enum litest_device_type other;
struct litest_device *finger;
@@ -5369,11 +5370,13 @@ START_TEST(tablet_rotation_left_handed)
out:
litest_delete_device(finger);
+#endif
}
END_TEST
START_TEST(tablet_rotation_left_handed_configuration)
{
+#if HAVE_LIBWACOM
struct litest_device *tablet = litest_current_device();
enum litest_device_type other;
struct litest_device *finger;
@@ -5421,11 +5424,13 @@ START_TEST(tablet_rotation_left_handed_configuration)
out:
litest_delete_device(finger);
+#endif
}
END_TEST
START_TEST(tablet_rotation_left_handed_while_in_prox)
{
+#if HAVE_LIBWACOM
struct litest_device *tablet = litest_current_device();
enum litest_device_type other;
struct litest_device *finger;
@@ -5512,11 +5517,13 @@ START_TEST(tablet_rotation_left_handed_while_in_prox)
out:
litest_delete_device(finger);
+#endif
}
END_TEST
START_TEST(tablet_rotation_left_handed_while_touch_down)
{
+#if HAVE_LIBWACOM
struct litest_device *tablet = litest_current_device();
enum litest_device_type other;
struct litest_device *finger;
@@ -5578,11 +5585,13 @@ START_TEST(tablet_rotation_left_handed_while_touch_down)
out:
litest_delete_device(finger);
+#endif
}
END_TEST
START_TEST(tablet_rotation_left_handed_add_touchpad)
{
+#if HAVE_LIBWACOM
struct litest_device *tablet = litest_current_device();
enum litest_device_type other;
struct litest_device *finger;
@@ -5630,11 +5639,13 @@ START_TEST(tablet_rotation_left_handed_add_touchpad)
out:
litest_delete_device(finger);
+#endif
}
END_TEST
START_TEST(tablet_rotation_left_handed_add_tablet)
{
+#if HAVE_LIBWACOM
struct litest_device *finger = litest_current_device();
enum litest_device_type other;
struct litest_device *tablet;
@@ -5680,8 +5691,10 @@ START_TEST(tablet_rotation_left_handed_add_tablet)
verify_left_handed_tablet_sequence(tablet, li, enabled_to);
litest_delete_device(tablet);
+#endif
}
END_TEST
+
START_TEST(huion_static_btn_tool_pen)
{
struct litest_device *dev = litest_current_device();
diff --git a/test/test-touchpad.c b/test/test-touchpad.c
index f3aa4f37..030e69d5 100644
--- a/test/test-touchpad.c
+++ b/test/test-touchpad.c
@@ -2608,6 +2608,7 @@ touchpad_has_rotation(struct libevdev *evdev)
START_TEST(touchpad_left_handed_rotation)
{
+#if HAVE_LIBWACOM
struct litest_device *dev = litest_current_device();
struct libinput_device *d = dev->libinput_device;
struct libinput *li = dev->libinput;
@@ -2655,6 +2656,7 @@ START_TEST(touchpad_left_handed_rotation)
libinput_event_destroy(event);
} while ((event = libinput_get_event(li)));
+#endif
}
END_TEST