profile/ivi/weston.git
11 years agoUpdated package changelog. accepted/2.0alpha-wayland/20130304.234726 submit/2.0alpha-wayland/20130228.195915 submit/2.0alpha-wayland/20130305.001616
Ossama Othman [Thu, 28 Feb 2013 19:57:33 +0000 (11:57 -0800)]
Updated package changelog.

Change-Id: Ife8d804ccea4484927ae98f6352adabaa3d5be09
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoAllow clicking on top panel to return to home screen 91/2791/1
Jimmy Huang [Thu, 28 Feb 2013 00:06:39 +0000 (16:06 -0800)]
Allow clicking on top panel to return to home screen

This is a work-around solution to allow us to return to the home screen in wayland since
there's no home button.

1. Defined new 'show_homescreen' request in desktop shell protocol.
2. Added handling in weston-shell to handle when show_homesreen is called, it raises
the surface belongs to the home screen (which is the org.tizen.menu-screen).
3. Registered click event when you click on the top launcher panel in the desktop shell,
it will return to the home screen, since the top launcher panel is always present in the
desktop shell client.

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
11 years agoAdded handling for the new shell_surface_raise request in compositor 90/2790/1
Jimmy Huang [Wed, 27 Feb 2013 23:59:50 +0000 (15:59 -0800)]
Added handling for the new shell_surface_raise request in compositor

Added implementation for raise request for the shell surface interface in wayland
client protocol.  It will call activate to raise the shell surface to the top
of the window stack.

Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
11 years agoUpdated package changelog. accepted/2.0alpha-wayland/20130215.220742 submit/2.0alpha-wayland/20130215.214833
Ossama Othman [Fri, 15 Feb 2013 21:46:45 +0000 (13:46 -0800)]
Updated package changelog.

Change-Id: I37c31fdd2c1abc9b39aa9db601c8e44e892f5aea
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUpdate to 1.0.5 release.
Ossama Othman [Fri, 15 Feb 2013 21:23:34 +0000 (13:23 -0800)]
Update to 1.0.5 release.

Change-Id: Ie9be8670d0115120db6be76498fdf5adb129b68c
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoELM/VAS engine env vars should be 'wayland_egl'. Removed unused env vars.
Ossama Othman [Fri, 15 Feb 2013 21:03:45 +0000 (13:03 -0800)]
ELM/VAS engine env vars should be 'wayland_egl'.  Removed unused env vars.

Change-Id: Ib4ff7b1f1795758147e26c9ed42f58976210b1aa
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoPrefer '%{?_smp_mflag' to '%{?jobs:-j%jobs}' in spec file.
Ossama Othman [Fri, 15 Feb 2013 21:00:54 +0000 (13:00 -0800)]
Prefer '%{?_smp_mflag' to '%{?jobs:-j%jobs}' in spec file.

Change-Id: I78ba6612dd7b19e00f00e4115362e1707e2ebaec
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoCorrected option passed to autogen RPM macro. s/-disable/--disable/
Ossama Othman [Fri, 15 Feb 2013 20:58:59 +0000 (12:58 -0800)]
Corrected option passed to autogen RPM macro.  s/-disable/--disable/

Change-Id: Ide5d79d32379dcfb0c2b7dd673b9bd5b80cf0b6c
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUpdated packaging changelog.
Ossama Othman [Wed, 6 Feb 2013 23:15:37 +0000 (15:15 -0800)]
Updated packaging changelog.

Change-Id: I8ecad022ef2074bcc6fdd6dc51b756eeed4ac28d
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoWait for existence of wayland socket before changing its permissions.
Ossama Othman [Wed, 6 Feb 2013 23:07:12 +0000 (15:07 -0800)]
Wait for existence of wayland socket before changing its permissions.

Change-Id: If0128ac1b1ec533d7112692f5ce1a35da3099392
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoTighten up permissions on Weston run-time dir.
Ossama Othman [Wed, 6 Feb 2013 23:05:00 +0000 (15:05 -0800)]
Tighten up permissions on Weston run-time dir.

Change-Id: Ief1afb71efcad7df12897d8797f8017e8c1a9df4
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUpdated packaging change log.
Ossama Othman [Wed, 30 Jan 2013 07:00:03 +0000 (23:00 -0800)]
Updated packaging change log.

Change-Id: I5d1e0ec048a57eabf5e40d52fbd6da8352db876e
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUse Wayland EGL as ELM and e-core evas engine, not Wayland SHM.
Ossama Othman [Wed, 30 Jan 2013 00:07:11 +0000 (16:07 -0800)]
Use Wayland EGL as ELM and e-core evas engine, not Wayland SHM.

Change-Id: Ia28a7473c1c441fd96c91f9f38dd3e651de08490
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoWork around insufficient access permissions for unprivileged users.
Ossama Othman [Sat, 26 Jan 2013 00:55:11 +0000 (16:55 -0800)]
Work around insufficient access permissions for unprivileged users.

Change-Id: I35f6693316cbd5b68c4695607210b25aa087bca4
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoEnable Weston to start at boot.
Ossama Othman [Fri, 25 Jan 2013 00:27:17 +0000 (16:27 -0800)]
Enable Weston to start at boot.

Change-Id: I87f849b1ef510edea4f6cf81a34dc8a72faedd89
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
11 years agoUpdate packaging to 1.0.2
Rob Bradford [Thu, 6 Dec 2012 18:59:11 +0000 (18:59 +0000)]
Update packaging to 1.0.2

11 years agoDisable weston-launch (requires pam which we don't have)
Rob Bradford [Thu, 15 Nov 2012 17:38:11 +0000 (17:38 +0000)]
Disable weston-launch (requires pam which we don't have)

11 years agoDisable vpx support
Rob Bradford [Thu, 15 Nov 2012 17:33:45 +0000 (17:33 +0000)]
Disable vpx support

11 years agoUpdate to 1.0.0 packaging
Rob Bradford [Thu, 15 Nov 2012 17:29:32 +0000 (17:29 +0000)]
Update to 1.0.0 packaging

11 years agoRelease mechanics for TIVI-107 udev rules
Rob Bradford [Tue, 18 Sep 2012 17:36:38 +0000 (18:36 +0100)]
Release mechanics for TIVI-107 udev rules

11 years agopackaging: Add udev rule to quirk the touchscreen on VTC1000
Rob Bradford [Tue, 18 Sep 2012 16:51:15 +0000 (17:51 +0100)]
packaging: Add udev rule to quirk the touchscreen on VTC1000

11 years agoRelease to include changes needed for TIVI-107
Rob Bradford [Tue, 18 Sep 2012 15:50:20 +0000 (16:50 +0100)]
Release to include changes needed for TIVI-107

11 years agocompositor-drm: Add quirk loading from udev
Rob Bradford [Mon, 17 Sep 2012 17:07:00 +0000 (18:07 +0100)]
compositor-drm: Add quirk loading from udev

Look at udev properties and then set the quirk flags based on the udev
properties that are set on the device node.

11 years agoevdev: Add support for device quirks and implement axes swapping
Rob Bradford [Mon, 17 Sep 2012 17:02:22 +0000 (18:02 +0100)]
evdev: Add support for device quirks and implement axes swapping

This quirk is designed for hardware that has the X and Y axes swapped for
absolute events.

11 years agoupdate the changelog
Rusty Lynch [Mon, 17 Sep 2012 23:49:30 +0000 (16:49 -0700)]
update the changelog

11 years agoAdd HOME to the list of env varialbes set in the systemd config
Rusty Lynch [Mon, 17 Sep 2012 23:47:41 +0000 (16:47 -0700)]
Add HOME to the list of env varialbes set in the systemd config

11 years agoIntroduce patch to fix TIVI-191
Rob Bradford [Fri, 14 Sep 2012 22:10:02 +0000 (23:10 +0100)]
Introduce patch to fix TIVI-191

11 years agocompositor-drm: Don't try and scan out a SHM buffer directly
Rob Bradford [Fri, 14 Sep 2012 22:02:47 +0000 (23:02 +0100)]
compositor-drm: Don't try and scan out a SHM buffer directly

gbm_bo_import will fail to produce a valid bo since the buffer is an SHM
buffer. This cause a crash when the NULL bo returned by gbm_bo_import is
dereferenced later.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
11 years agoAdd manpage to spec file
Rob Bradford [Thu, 13 Sep 2012 17:55:25 +0000 (18:55 +0100)]
Add manpage to spec file

11 years agoUpdate snapshot
Rob Bradford [Thu, 13 Sep 2012 17:46:00 +0000 (18:46 +0100)]
Update snapshot

11 years agoUpdate to force rebuild
Rob Bradford [Thu, 16 Aug 2012 17:22:22 +0000 (18:22 +0100)]
Update to force rebuild

11 years agoUpdate snapshot
Rob Bradford [Thu, 16 Aug 2012 08:56:48 +0000 (09:56 +0100)]
Update snapshot

11 years agoAdd new installed file - weston-info
Rob Bradford [Thu, 16 Aug 2012 08:56:33 +0000 (09:56 +0100)]
Add new installed file - weston-info

11 years agoUpdate snapshot
Rob Bradford [Thu, 16 Aug 2012 08:47:38 +0000 (09:47 +0100)]
Update snapshot

11 years agoRemove file from .spec
Rob Bradford [Thu, 16 Aug 2012 08:45:42 +0000 (09:45 +0100)]
Remove file from .spec

11 years agoUpdate snapshot
Rob Bradford [Thu, 16 Aug 2012 08:39:09 +0000 (09:39 +0100)]
Update snapshot

11 years agoDisable xwayland
Rob Bradford [Tue, 14 Aug 2012 17:30:10 +0000 (18:30 +0100)]
Disable xwayland

11 years agoBump .changes and spec for update
Rob Bradford [Tue, 14 Aug 2012 15:51:32 +0000 (16:51 +0100)]
Bump .changes and spec for update

11 years agoFix some lint errors in the spec file
Rob Bradford [Tue, 14 Aug 2012 15:53:51 +0000 (16:53 +0100)]
Fix some lint errors in the spec file

11 years agobuild: Disable the X11 compositor
Rob Bradford [Mon, 13 Aug 2012 13:43:04 +0000 (14:43 +0100)]
build: Disable the X11 compositor

Fixes: https://bugs.tizen.org/jira/browse/TIVI-76

11 years agoUpdate changelog and bump version
Rob Bradford [Fri, 3 Aug 2012 15:23:12 +0000 (16:23 +0100)]
Update changelog and bump version

11 years agodelete weston-mode patch from packaging dir
Wang Quanxian [Tue, 24 Jul 2012 02:19:43 +0000 (10:19 +0800)]
delete weston-mode patch from packaging dir

Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

11 years agoAdd PATH to weston.service
Rusty Lynch [Wed, 11 Jul 2012 22:23:04 +0000 (15:23 -0700)]
Add PATH to weston.service

11 years agoUse SHM backend for Ecore & Elementary
Rob Bradford [Mon, 9 Jul 2012 17:34:59 +0000 (18:34 +0100)]
Use SHM backend for Ecore & Elementary

11 years agoUpdate changelog & spec version
Rob Bradford [Mon, 9 Jul 2012 10:49:12 +0000 (11:49 +0100)]
Update changelog & spec version

11 years agoTIZEN: Add logging to the weston.service file to facilitate debugging
Rob Bradford [Mon, 9 Jul 2012 10:45:41 +0000 (11:45 +0100)]
TIZEN: Add logging to the weston.service file to facilitate debugging

11 years agoBug fix CrownBay resolution issue
Wang Quanxian [Fri, 6 Jul 2012 11:25:50 +0000 (19:25 +0800)]
Bug fix CrownBay resolution issue

  Use the first mode as preferred mode in weston

Signed-Off-By Quanxian Wang <quanxian.wang@intel.com>

11 years agoAdd default mode for NexCom and Crossiville
Wang Quanxian [Fri, 6 Jul 2012 09:04:27 +0000 (17:04 +0800)]
Add default mode for NexCom and Crossiville

The platform has no EDID information. The mode could not be gotten
from emgd driver interfaces.

Signed-Off-By Wang Quanxian <quanxian.wang@intel.com>

11 years agoUpdate to latest snapshot
Rob Bradford [Wed, 4 Jul 2012 11:37:39 +0000 (12:37 +0100)]
Update to latest snapshot

11 years agoUpdate .changes
Graydon, Tracy [Mon, 2 Jul 2012 17:59:18 +0000 (10:59 -0700)]
Update .changes

11 years agoupdate service untis to be installed in /usr/lib vs /lib
Chris E Ferron [Mon, 2 Jul 2012 17:55:19 +0000 (10:55 -0700)]
update service untis to be installed in /usr/lib vs /lib

11 years agoRemove the --with-cairo-glesv2 argument since we do not build cairo with gl or gles...
Rusty Lynch [Thu, 21 Jun 2012 17:51:54 +0000 (10:51 -0700)]
Remove the --with-cairo-glesv2 argument since we do not build cairo with gl or gles support

11 years agoAdd packaging files for Tizen
Rusty Lynch [Wed, 13 Jun 2012 00:26:06 +0000 (17:26 -0700)]
Add packaging files for Tizen

11 years agoconfigure.ac: Bump version to 1.0.5
Kristian Høgsberg [Fri, 25 Jan 2013 01:32:30 +0000 (20:32 -0500)]
configure.ac: Bump version to 1.0.5

11 years agowindow.c: Don't allow moving a maximized window
Kristian Høgsberg [Thu, 14 Feb 2013 21:31:42 +0000 (16:31 -0500)]
window.c: Don't allow moving a maximized window

Ideally the shell would send an unmaximize event to the client when
we try to move a maximized window, but for now, let's just prevent
moving maximized windows.

https://bugs.freedesktop.org/show_bug.cgi?id=56296

11 years agoshell: Bypass fullscreen scaling if surface width and height match output
Rob Bradford [Tue, 12 Feb 2013 11:53:47 +0000 (11:53 +0000)]
shell: Bypass fullscreen scaling if surface width and height match output

If our surface has width and height set to the same dimensions as the output
then we can bypassing the scale factor calculation and addition of the
transformation.

The use case that led to this optimisation is the playback of video using
gstreamer-vaapi with the "scale" method. The video is the same dimensions as
the output (1080p.)

11 years agoweston-launcher: Add missing newline in error message
Martin Andersson [Tue, 12 Feb 2013 23:11:12 +0000 (00:11 +0100)]
weston-launcher: Add missing newline in error message

11 years agoconfigure.ac: Add version to bug URL as well
Kristian Høgsberg [Thu, 14 Feb 2013 17:09:41 +0000 (12:09 -0500)]
configure.ac: Add version to bug URL as well

11 years agoconfigure.ac: Change bugs.freedesktop.org product to Wayland
Scott Moreau [Wed, 13 Feb 2013 21:29:35 +0000 (14:29 -0700)]
configure.ac: Change bugs.freedesktop.org product to Wayland

Update the bug link. Thanks to Rune K. Svendsen for spotting this.

https://bugs.freedesktop.org/show_bug.cgi?id=60818

Conflicts:
configure.ac

11 years agocompositor: Init fade surface color properly
Ander Conselvan de Oliveira [Wed, 13 Feb 2013 14:06:37 +0000 (16:06 +0200)]
compositor: Init fade surface color properly

When fading in, if a repaint was triggered after a call to
weston_compositor_fade() but before the first call to fade_frame(),
the fade surface wouldn't be drawn because its alpha channel wasn't
initialized properly.

11 years agoscreenshot: Print warning if we're not launched from weston
Kristian Høgsberg [Wed, 13 Feb 2013 18:40:58 +0000 (13:40 -0500)]
screenshot: Print warning if we're not launched from weston

weston-screenshooter is a helper binary that weston launches to write the
screenshot to disk.  If somebody tries to launch it by hand, print a
warning and mention the screenshot keybinding.

11 years agotests: fix assignment typo, should be comparison
U. Artie Eoff [Tue, 29 Jan 2013 23:30:09 +0000 (15:30 -0800)]
tests: fix assignment typo, should be comparison

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agoAdd --version option
Scott Moreau [Wed, 29 Aug 2012 21:15:58 +0000 (15:15 -0600)]
Add --version option

11 years agoweston-launch: Clear environment and set it up from scratch
Kristian Høgsberg [Tue, 29 Jan 2013 19:14:06 +0000 (14:14 -0500)]
weston-launch: Clear environment and set it up from scratch

With recent systemd[1] XDG_VTNR will leak through to pam, which ends up
setting a vtnr pam argument with the wrong value.  The fix is to clear
XDG_VTNR first, but what we should have been doing all along is resetting
the environment.

Thanks to Ray Strode for helping debug this.

[1] http://cgit.freedesktop.org/systemd/systemd/commit/?id=a8573ccc35a4efe8900be5d48c6c803670540c2b

11 years agotoytoolkit: Remove left-over pixman dependency
Kristian Høgsberg [Mon, 28 Jan 2013 21:03:51 +0000 (16:03 -0500)]
toytoolkit: Remove left-over pixman dependency

toytoolkit doesn't use pixman.  Remove the pixman.h include and the
LDADD.

https://bugs.freedesktop.org/show_bug.cgi?id=57812

11 years agoAdd new shared/image-loader.h to separate include dependencies
Kristian Høgsberg [Mon, 28 Jan 2013 21:01:22 +0000 (16:01 -0500)]
Add new shared/image-loader.h to separate include dependencies

Before, cairo-util.h would combine pixman and cairo includes.  X11 and
Wayland compositors uses this to load an image as a pixman_image_t but are
forced to include cairo headers.  Clients use load_cairo_surface to
load images as cairo_surface_t's, but are forced to include pixman.h.

We move the load_image pixman prototype to its own header, so compositors
can get at the pixman prototype without including cairo.h and clients
can include the cairo based function without including pixman.h.

Conflicts:
src/compositor-wayland.c

11 years agoclients: Make libtoytoolkit a libtool library
Kristian Høgsberg [Mon, 28 Jan 2013 20:35:03 +0000 (15:35 -0500)]
clients: Make libtoytoolkit a libtool library

This way libtool will remember the libtoytoolkit LIBADD libraries.
We can drop the toolkit_libs hack and just link to libtoytoolkit.la and
libtool will add the dependencies.

Conflicts:
clients/Makefile.am

11 years agoterminal: Handle the window close event
Dima Ryazanov [Mon, 28 Jan 2013 09:11:06 +0000 (01:11 -0800)]
terminal: Handle the window close event

There may be multiple windows open, so destroy the terminal instead of exiting.

Signed-off-by: Dima Ryazanov <dima@gmail.com>
11 years agoconfigure.ac: Bump version to 1.0.4
Kristian Høgsberg [Fri, 25 Jan 2013 01:32:30 +0000 (20:32 -0500)]
configure.ac: Bump version to 1.0.4

11 years agoweston-launch: Use "weston-launch" for --help instead of "weston".
Scott Moreau [Tue, 22 Jan 2013 06:40:59 +0000 (23:40 -0700)]
weston-launch: Use "weston-launch" for --help instead of "weston".

The output of weston-launch --help was "Usage: weston [args...] ...".
This changes it to read "Usage: weston-launch [args...] ...".

11 years agotests: make signal other than ABRT a hard failure
Pekka Paalanen [Tue, 18 Dec 2012 15:30:16 +0000 (17:30 +0200)]
tests: make signal other than ABRT a hard failure

We handle FAIL_TEST tests by simply inverting the success flag. The
problem with this is, that if a FAIL_TEST fails by a SIGSEGV, it will be
interpreted as passed. However, no code should ever cause a SEGV, or any
other signal than ABRT. And even ABRT only in the case of an assert()
that is meant to fail. We would probably need more sophistication for the
FAIL_TEST cases.

For now, just interpret any other signal than ABRT as a hard failure,
regardless whether it is a TEST or FAIL_TEST. At least segfaults do not
cause false passes anymore.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agoWeston: weston.ini.man page
Martin Minarik [Fri, 18 Jan 2013 17:44:29 +0000 (18:44 +0100)]
Weston: weston.ini.man page

changes:
 - launcher path, passing environment variables and parameter
 - indent modeline example

11 years agocompositor-drm: Remove drm_disable_unused_sprites()
Ning Tang [Thu, 27 Dec 2012 07:36:35 +0000 (15:36 +0800)]
compositor-drm: Remove drm_disable_unused_sprites()

If a sprite is no longer used, it is disabled on the call to
drmModeSetPlane() when doing the output repaint, since its
pending_fb_id is 0.

This patch is a backport patch on weston 1.0.
Originally from Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
commit 3b2bd44d924744fa4635390e91afe569351e7d8d

Some platform has a heavy CPU load caused by redundant drmModeRmFB,
which is called in drm_disable_unused_sprites and would trigger drm_err.

Signed-off-by: Ning Tang <ning.tang@intel.com>
11 years agoconfigure.ac: Bump version to 1.0.3
Kristian Høgsberg [Fri, 14 Dec 2012 21:32:34 +0000 (16:32 -0500)]
configure.ac: Bump version to 1.0.3

11 years agotests: Pass --backend so the test suite runs with the right modules
Kristian Høgsberg [Fri, 14 Dec 2012 21:19:43 +0000 (16:19 -0500)]
tests: Pass --backend so the test suite runs with the right modules

Without this we try to load the installed backends, which is nasty for
regular runs, and just doesn't work for make distcheck, which sets
prefix to $PWD/_inst.  This makes sure we load the right backend
and make distcheck pass.  Other modules (xwayland, shells etc) just don't
get loaded for distcheck and for make check we still try to load the
installed modules.

11 years agotests: remove test logs on 'make clean'
Pekka Paalanen [Thu, 13 Dec 2012 08:01:25 +0000 (10:01 +0200)]
tests: remove test logs on 'make clean'

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agotext-test: Remove left-over WAYLAND_DEBUG setenv call
Kristian Høgsberg [Fri, 14 Dec 2012 19:40:50 +0000 (14:40 -0500)]
text-test: Remove left-over WAYLAND_DEBUG setenv call

11 years agoclients: Add screenshooter-client-protocol.h to screenshooter sources
Kristian Høgsberg [Fri, 14 Dec 2012 15:18:39 +0000 (10:18 -0500)]
clients: Add screenshooter-client-protocol.h to screenshooter sources

11 years agoupdate git ignores
Pekka Paalanen [Wed, 12 Dec 2012 12:26:39 +0000 (14:26 +0200)]
update git ignores

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agotests: check wl_display_roundtrip() for errors
Pekka Paalanen [Wed, 12 Dec 2012 12:26:41 +0000 (14:26 +0200)]
tests: check wl_display_roundtrip() for errors

Add a macro that wraps wl_display_roundtrip() and check for errors. It
is a macro, so that the assert would show the relevant file and line
number.

This will also catch protocol errors, that would go unnoticed otherwise.

All roundtrips in tests are replaced with the check.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agotests: set client log handler
Pekka Paalanen [Wed, 12 Dec 2012 12:26:40 +0000 (14:26 +0200)]
tests: set client log handler

Otherwise we cannot normally see protocol errors etc. in the test
output.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
11 years agotests: write logs to files
Pekka Paalanen [Wed, 12 Dec 2012 12:26:38 +0000 (14:26 +0200)]
tests: write logs to files

This cleans up the 'make check' output considerably. When all goes well,
you will only see the "PASS" line for each of $TESTS.

Weston logs into a separate file than stdout and stderr, so server logs
end up in one file per test, and other output to another file per test.

'make distclean' does not remove the tests/logs/ directory.

Also changes the weston-tests-env interpreter to bash, since I think &>
and ${1/.la/.so} might be bashisms.

11 years agotests: Convert remaining module tests to not use test-runner.c
Kristian Høgsberg [Wed, 12 Dec 2012 04:22:16 +0000 (23:22 -0500)]
tests: Convert remaining module tests to not use test-runner.c

The remaining module tests don't need to fork and talk to a test client,
so just convert them to regular modules and let them handle running their
tests themselves.  Then drop test-runner.[ch].

11 years agotests: Remove client-test test
Kristian Høgsberg [Wed, 12 Dec 2012 04:16:11 +0000 (23:16 -0500)]
tests: Remove client-test test

This test case is the last user of the test-client code and it only
tests launching the test-client.  In other words it's a minimal test
of the framework we're dropping, so just drop this test.

11 years agotests: Port text-test to new test framework
Kristian Høgsberg [Wed, 12 Dec 2012 04:03:56 +0000 (23:03 -0500)]
tests: Port text-test to new test framework

So much simpler this way and the test suite is now back too 100% pass.

11 years agotests: Drop yield() helper function
Kristian Høgsberg [Wed, 12 Dec 2012 03:17:35 +0000 (22:17 -0500)]
tests: Drop yield() helper function

Remaining use case was when we move the pointer.  This doesn't change
geometry so we can just use a wl_display_roundtrip() to make sure
we get the request to the server and receive the resulting events.

11 years agokeyboard-test: Use wl_display_roundtrip() instead of yield()
Kristian Høgsberg [Wed, 12 Dec 2012 03:00:50 +0000 (22:00 -0500)]
keyboard-test: Use wl_display_roundtrip() instead of yield()

As for button-test, a wl_display_roundtrip is sufficient here.  The
yield() between wl_test_activate_surface() and wl_test_send_key() is
also not needed, since the two requests will arrive at the server in
order, and will activate the surface first, then send a key event.

11 years agobutton-test: Use wl_display_roundtrip instead of yield()
Kristian Høgsberg [Wed, 12 Dec 2012 02:56:13 +0000 (21:56 -0500)]
button-test: Use wl_display_roundtrip instead of yield()

A round trip is sufficient here.  We need to make sure that the server
has received the wl_test request and that we've received the event
that the request triggers.  The wl_display_roundtrip() helper does
exactly that: it sends a wl_display.sync request, which will hit the
server after the wl_test requests and thus the wl_callback.done event
will come back after the server has seen all the previous requests and
after we've handled all preceeding event.

11 years agoweston-test-client-helper: Use a frame callback to flush surface geometry
Kristian Høgsberg [Wed, 12 Dec 2012 02:49:13 +0000 (21:49 -0500)]
weston-test-client-helper: Use a frame callback to flush surface geometry

When moving a test surface, use a frame callback to make sure the
surface has been moved and the geometry updated.  The compositor may
delay updating the transform matrices, but once we get the frame
callback we know the surface has been repainted and the geometry
updated.

11 years agotests: Convert button-test to new test extension
U. Artie Eoff [Fri, 7 Dec 2012 21:50:34 +0000 (13:50 -0800)]
tests: Convert button-test to new test extension

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56821

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agotests: Convert event-test to new test extension
U. Artie Eoff [Fri, 7 Dec 2012 21:50:33 +0000 (13:50 -0800)]
tests: Convert event-test to new test extension

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56819

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agotests: Convert keyboard-test to new test extension
U. Artie Eoff [Fri, 7 Dec 2012 21:50:32 +0000 (13:50 -0800)]
tests: Convert keyboard-test to new test extension

This adds a weston-test-runner for the weston test extension and
some weston test client helper methods.

Converted keyboard-test to use the new test interface, runner,
and helper methods.

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56822

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agotests: Allow weston-tests-env to process different test types
U. Artie Eoff [Fri, 7 Dec 2012 21:50:31 +0000 (13:50 -0800)]
tests: Allow weston-tests-env to process different test types

The weston-tests-env script needs to be able to handle weston
test extension style tests as well as module style tests.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agotests: Rename weston-test to weston-tests-env
U. Artie Eoff [Fri, 7 Dec 2012 21:50:30 +0000 (13:50 -0800)]
tests: Rename weston-test to weston-tests-env

Renamed weston-test test environment script to weston-tests-env
to avoid ambiguity with weston-test.c (the weston test extension).

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agotests: Define and implement a test protocol extension.
U. Artie Eoff [Fri, 7 Dec 2012 21:50:29 +0000 (13:50 -0800)]
tests: Define and implement a test protocol extension.

The weston test extension, called weston-test.so, can be loaded
from the "modules" configuration option on the command line
or in the .ini file.

Clients can bind to the "wl_test" interface to interact with
the weston test extension.

Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
11 years agoshell: Remove confusing case fall-through
Rob Bradford [Thu, 6 Dec 2012 12:07:48 +0000 (12:07 +0000)]
shell: Remove confusing case fall-through

This avoids calling weston_surface_set_position twice on the same surface. The
second call has no effect in many cases because sx and sy
are usually zero on this path.

This change now means that any sx/sy values passed into ::attach will be
ignored on the first attach for popup surfaces. This similar to the behaviour
for other surface types.

11 years agoweston-launch: Add some error reporting for weston-launch
Rob Bradford [Wed, 5 Dec 2012 18:47:11 +0000 (18:47 +0000)]
weston-launch: Add some error reporting for weston-launch

This also avoids us passing (size_t)(-1 * sizeof(gid_t)) into malloc

11 years agocompositor: Cleanup if we can't find the symbol in the module
Rob Bradford [Wed, 5 Dec 2012 18:47:10 +0000 (18:47 +0000)]
compositor: Cleanup if we can't find the symbol in the module

11 years agobacklight: Revamp error handling code to not leak the directory
Rob Bradford [Wed, 5 Dec 2012 18:47:09 +0000 (18:47 +0000)]
backlight: Revamp error handling code to not leak the directory

To neatly free the directory pointer allocated by opendir(), adjust the error
handling paths to go through to the err label.

11 years agotty: Clean up completely if switching vt fails
Rob Bradford [Wed, 5 Dec 2012 18:47:08 +0000 (18:47 +0000)]
tty: Clean up completely if switching vt fails

The code under the "err" label closes the file descriptor and frees the
allocated memory.