tests: Add unit test for touch event handling
[profile/ivi/clutter.git] / tests / conform / test-conform-main.c
index fd119ab..54afb57 100644 (file)
@@ -116,6 +116,13 @@ clutter_test_init (gint    *argc,
   shared_state->argv_addr = argv;
 }
 
+static int
+can_write_to_uinput ()
+{
+  return g_access ("/dev/uinput", R_OK | W_OK) ||
+         g_access ("/dev/input/uinput", R_OK | W_OK);
+}
+
 int
 main (int argc, char **argv)
 {
@@ -253,6 +260,8 @@ main (int argc, char **argv)
   TEST_CONFORM_SIMPLE ("/cogl/vertex-buffer", test_cogl_vertex_buffer_interleved);
   TEST_CONFORM_SIMPLE ("/cogl/vertex-buffer", test_cogl_vertex_buffer_mutability);
 
+  TEST_CONFORM_SKIP (can_write_to_uinput (), "/events", events_touch);
+
   /* left to the end because they aren't currently very orthogonal and tend to
    * break subsequent tests! */
   TEST_CONFORM_SIMPLE ("/cogl", test_cogl_viewport);