summaryrefslogtreecommitdiff
path: root/test/test-load.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-08-05 13:43:27 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-03-19 14:32:04 +1000
commit2e89a9d6b20c244d506764830c34b1c2cf184aee (patch)
treee9c70f20a26c6c818daec9ee86fdaa8b6ec632ee /test/test-load.c
parentc5809200ef6d7938d5f679b19c714c613d237848 (diff)
downloadlibwacom-2e89a9d6b20c244d506764830c34b1c2cf184aee.tar.gz
test: add a load test for the dell canvas
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test/test-load.c')
-rw-r--r--test/test-load.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test-load.c b/test/test-load.c
index 9cfcc35..fc6b7ae 100644
--- a/test/test-load.c
+++ b/test/test-load.c
@@ -238,6 +238,19 @@ test_bamboopen(struct fixture *f, gconstpointer user_data)
g_assert_cmpint(libwacom_get_button_evdev_code(device, 'C'), ==, BTN_LEFT);
g_assert_cmpint(libwacom_get_button_evdev_code(device, 'D'), ==, BTN_RIGHT);
g_assert_cmpstr(libwacom_get_model_name(device), ==, "MTE-450");
+
+ libwacom_destroy(device);
+}
+
+static void
+test_dellcanvas(struct fixture *f, gconstpointer user_data)
+{
+ WacomDevice *device = libwacom_new_from_name(f->db, "Dell Canvas 27", NULL);
+
+ g_assert_nonnull(device);
+ g_assert_true(libwacom_get_integration_flags(device) & WACOM_DEVICE_INTEGRATED_DISPLAY);
+ g_assert_false(libwacom_get_integration_flags(device) & WACOM_DEVICE_INTEGRATED_SYSTEM);
+
libwacom_destroy(device);
}
@@ -286,6 +299,9 @@ int main(int argc, char **argv)
g_test_add("/load/056a:0065", struct fixture, NULL,
fixture_setup, test_bamboopen,
fixture_teardown);
+ g_test_add("/load/056a:4200", struct fixture, NULL,
+ fixture_setup, test_dellcanvas,
+ fixture_teardown);
g_test_add("/load/056a:WACf004", struct fixture, NULL,
fixture_setup, test_wacf004,
fixture_teardown);