[PATCH weston v6 4/4] Adding doxygen setup and info for the testing framework.

2015-07-02 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- .gitignore | 2 + Makefile.am| 22 +++ configure.ac | 20 ++ doc/doxygen/devtools.dox | 51 + doc/doxygen/tooldev.doxygen.in | 11 ++ doc/doxygen/tools.dox

[PATCH weston v6 0/4] Refactored simple unit/integration test framework and corresponding test program.

2015-07-02 Thread Jon A. Cruz
Here is yet another re-worked version of the patch adding unit testing framework and corresponding separation. This drops the higher-level waycheck program and focuses on the first two steps of adding zunitc and converting the config-parser test. Changes since v5: - Reduced to just the core framew

[PATCH weston v6 2/4] Enables output in the JUnit XML format.

2015-07-02 Thread Jon A. Cruz
Adds basic support for optionally outputting in the XML format commonly used by JUnit compatible tools. This format is supported by default by many tools, including the Jenkins build system. It also is more detailed and captures more information than the more simplistic TAP format. Signed-off-by:

[PATCH weston v6 3/4] Converted the config parser test to the new framework.

2015-07-02 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- Makefile.am| 10 +- tests/config-parser-test.c | 371 + 2 files changed, 320 insertions(+), 61 deletions(-) diff --git a/Makefile.am b/Makefile.am index 89d9e4c..42f0ed4 100644 --- a/Makefile.am +++ b/Mak

Re: [PATCH weston v5 5/6] Converted the config parser test to the new framework.

2015-07-02 Thread Jon A. Cruz
On 07/02/2015 11:02 PM, Pekka Paalanen wrote: > On Thu, 02 Jul 2015 18:12:21 -0700 > "Jon A. Cruz" wrote: > >> On 06/25/2015 07:18 AM, Pekka Paalanen wrote: >>> On Sat, 20 Jun 2015 15:47:47 -0700 >>> "Jon A. Cruz" wrote: >>> > +static void *setup_test_config(void *data) > +{ > + stru

Re: [PATCH weston v5 5/6] Converted the config parser test to the new framework.

2015-07-02 Thread Pekka Paalanen
On Thu, 02 Jul 2015 18:12:21 -0700 "Jon A. Cruz" wrote: > On 06/25/2015 07:18 AM, Pekka Paalanen wrote: > > On Sat, 20 Jun 2015 15:47:47 -0700 > > "Jon A. Cruz" wrote: > > > >> > +static void *setup_test_config(void *data) > >> > +{ > >> > +struct weston_config *config = load_config(dat

[PATCH libinput 11/11] doc: add documentation for touchpad gestures

2015-07-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer --- doc/Makefile.am | 4 + doc/gestures.dox | 91 ++ doc/svg/pinch-gestures.svg | 612 +++ doc/svg/swipe-gestures.svg | 512 doc/svg/touchscreen-g

[PATCH libinput 10/11] tools: handle pinch event in event-gui

2015-07-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- tools/event-gui.c | 69 ++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/tools/event-gui.c b/tools/event-gui.c index 0c484cb..058c42d 100644 --- a/tools/event-gui.c +

[PATCH libinput 02/11] touchpad: Add support for swipe gestures

2015-07-02 Thread Peter Hutterer
From: Hans de Goede Add support for swipe gestures. Signed-off-by: Hans de Goede Reviewed-by: Peter Hutterer Acked-by: Jason Gerecke --- src/evdev-mt-touchpad-gestures.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/src/evdev-mt-touchpad-gesture

[PATCH libinput 01/11] touchpad: Add an API for touchpad gesture events

2015-07-02 Thread Peter Hutterer
From: Hans de Goede For touchscreens we always send raw touch events to the compositor, and the compositor or application toolkits do gesture recognition. This makes sense because on a touchscreen which window / widget the touches are over is important context to know to interpret gestures. On t

[PATCH libinput 00/11] Touchpad gestures final version

2015-07-02 Thread Peter Hutterer
This is the set of patches on the touchpad-gestures branch that I intend to merge next week. Short of a bunch of minor cleanups and fixes, they are mostly the same that Hans sent out to the list ages ago. Notable changes are: * *GESTURE_*_START was renamed to *GESTURE_*_BEGIN * get_angle was rena

[PATCH libinput 03/11] touchpad: Extend the touchpad gesture API with pinch gestures

2015-07-02 Thread Peter Hutterer
From: Hans de Goede Extend the touchpad gesture API with pinch gestures. Note that this new API offers a single event stream for both pinch and rotate data, this is deliberate as some applications may be interested in getting both at the same time. Applications which are only interested in one or

[PATCH libinput 06/11] touchpad: split tp_gesture_stop into stop and cancel

2015-07-02 Thread Peter Hutterer
No functional changes Signed-off-by: Peter Hutterer --- src/evdev-mt-touchpad-gestures.c | 22 +- src/evdev-mt-touchpad.c | 6 +++--- src/evdev-mt-touchpad.h | 5 - 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/src/evdev-mt-touchpad-g

[PATCH libinput 04/11] touchpad: Implement pinch gesture support

2015-07-02 Thread Peter Hutterer
From: Hans de Goede Implement touchpad pinch (and rotate) gesture support. Note that two two-finger scrolling tests are slightly tweaked to assure that there is enough touch movement to allow the scroll-or-pinch detect code to do its work. Signed-off-by: Hans de Goede Acked-by: Jason Gerecke

[PATCH libinput 09/11] tools: add swipe support to the event-gui

2015-07-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- tools/event-gui.c | 59 +++ 1 file changed, 59 insertions(+) diff --git a/tools/event-gui.c b/tools/event-gui.c index 3806014..0c484cb 100644 --- a/tools/event-gui.c +++ b/tools/even

[PATCH libinput 08/11] gestures: allow any gesture event type for gesture_get_dx/dy and get_angle

2015-07-02 Thread Peter Hutterer
For start/end, dx/dy is always 0.0, and there is no need to make calling this function for start/end a caller bug. It just unnecessarily complicates the caller's codepath. Same for get_angle Signed-off-by: Peter Hutterer --- src/libinput.c | 28 +++- src/libinput.h | 19

[PATCH libinput 05/11] touchpad: Allow querying whether a gesture ended normally or was cancelled

2015-07-02 Thread Peter Hutterer
From: Hans de Goede Signed-off-by: Hans de Goede --- src/evdev-mt-touchpad-gestures.c | 20 src/evdev-mt-touchpad.c | 6 +++--- src/evdev-mt-touchpad.h | 2 +- src/libinput-private.h | 11 +++ src/libinput.c | 37 +

[PATCH libinput 07/11] gestures: check for valid types on the gesture event API

2015-07-02 Thread Peter Hutterer
Signed-off-by: Peter Hutterer Reviewed-by: Hans de Goede --- src/evdev-mt-touchpad-gestures.c | 3 +- src/libinput-private.h | 1 + src/libinput.c | 65 +++- src/libinput.h | 13 ++-- 4 files changed, 78 inse

Re: [PATCH weston v5 5/6] Converted the config parser test to the new framework.

2015-07-02 Thread Jon A. Cruz
On 06/25/2015 07:18 AM, Pekka Paalanen wrote: > On Sat, 20 Jun 2015 15:47:47 -0700 > "Jon A. Cruz" wrote: > >> > +static void *setup_test_config(void *data) >> > +{ >> > + struct weston_config *config = load_config(data, true); >> > + >> > + if (zuc_has_failure()) >> > + ZUC_MARK_FATAL

Re: [PATCH weston v5 5/6] Converted the config parser test to the new framework.

2015-07-02 Thread Jon A. Cruz
On 06/25/2015 07:18 AM, Pekka Paalanen wrote: > On Sat, 20 Jun 2015 15:47:47 -0700 > "Jon A. Cruz" wrote: > >> > Signed-off-by: Jon A. Cruz >> > --- >> > Makefile.am| 9 +- >> > tests/config-parser-test.c | 368 >> > + >> > 2 file

Re: [PATCH 05/10] desktop-shell: Allow fullscreen windows to mode-switch their output.

2015-07-02 Thread Pekka Paalanen
On Sun, 21 Jun 2015 21:25:12 +0200 Mario Kleiner wrote: > Fix desktop-shell's activate() method to only restore the output > mode on the single output on which a shell surface gets activated. > > This way toplevel fullscreen surfaces can mode-switch their output > via method WL_SHELL_SURFACE_FUL

Re: [PATCH 03/10] cms-helper/static: Add "identity" builtin cms profile (v2)

2015-07-02 Thread Pekka Paalanen
On Thu, 02 Jul 2015 09:36:47 +0200 Mario Kleiner wrote: > On 06/29/2015 06:09 PM, Derek Foreman wrote: > > On 28/06/15 10:17 PM, Mario Kleiner wrote: > >> On 06/26/2015 08:29 PM, Derek Foreman wrote: > >>> On 21/06/15 02:25 PM, Mario Kleiner wrote: > Allows to force loading an identity gamma

Re: [PATCH libinput 1/3] test: wait for the uinput_monitor on test devices

2015-07-02 Thread Hans de Goede
Hi, On 02-07-15 09:46, Peter Hutterer wrote: Set up a udev_monitor before each device creation and wait for the monitor to notify us of the newly created device. This should take the place of the various sleep loops we currently have sprinkled around the code and provide a reliability when test

[PATCH] build: always build wayland-scanner

2015-07-02 Thread Ross Burton
The previous idiom for building a cross-compiled Wayland is to build once for the build host (with --enable-scanner --disable-libraries) to get a wayland-scanner binary that can then be used in a cross-compile (with --disable-scanner). The problem with this is that the cross wayland is missing a w

[PATCH libinput 3/3] test: use poll instead of a busy wait

2015-07-02 Thread Peter Hutterer
Drop the busy loop we had waiting for an event to appear and just call poll on the libinput fd. This actually makes the tests more correct, if we now time out where we didn't before it means we're not setting the timers correctly. Signed-off-by: Peter Hutterer --- test/litest.c | 7 ++- 1 f

[PATCH libinput 2/3] test: up the default test timeout to 10s

2015-07-02 Thread Peter Hutterer
3s is too easy to hit on congested systems. 10s is overkill, but it's still better to pass a test late than having to restart the whole test-suite again. Signed-off-by: Peter Hutterer --- test/litest.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/litest.c b/test/litest.c index a5ee

[PATCH libinput 1/3] test: wait for the uinput_monitor on test devices

2015-07-02 Thread Peter Hutterer
Set up a udev_monitor before each device creation and wait for the monitor to notify us of the newly created device. This should take the place of the various sleep loops we currently have sprinkled around the code and provide a reliability when testing. Signed-off-by: Peter Hutterer --- test/l

Re: [PATCH 03/10] cms-helper/static: Add "identity" builtin cms profile (v2)

2015-07-02 Thread Mario Kleiner
On 06/29/2015 06:09 PM, Derek Foreman wrote: On 28/06/15 10:17 PM, Mario Kleiner wrote: On 06/26/2015 08:29 PM, Derek Foreman wrote: On 21/06/15 02:25 PM, Mario Kleiner wrote: Allows to force loading an identity gamma table if option icc_profile=identity is given in weston.ini for an output.