Re: [PATCH wayland] scanner: Fix oddities in copyright printing

2016-02-02 Thread Jon A. Cruz
the opening /* even if there was whitespace at the start of the very first line. Only emits a */ if a /* was printed. Signed-off-by: Derek Foreman Looks good to me: Reviewed-by: Jon A. Cruz --- src/scanner.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff

[PATCH weston v2] tests: Adding simple waycheck validation tool.

2015-12-23 Thread Jon A. Cruz
Adds an initial implementation of a testing tool that uses the unit test framework to run checks against an arbitrary Wayland compositor. Note that this is not intended for Weston-specific testing, but for generic Wayland testing. Signed-off-by: Jon A. Cruz --- Changes from v1: - Added test

[PATCH weston] tests: cleanup test runner script.

2015-12-21 Thread Jon A. Cruz
Cleaned up test runner script to unify sections launching weston. This makes the sections more legible and differences easier to spot. Signed-off-by: Jon A. Cruz --- tests/weston-tests-env | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/weston

[PATCH] tests: cleanup test runner script.

2015-12-21 Thread Jon A. Cruz
Cleaned up test runner script to unify sections launching weston. This makes the sections more legible and differences easier to spot. Signed-off-by: Jon A. Cruz --- tests/weston-tests-env | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/weston

Re: [PATCH weston] tests: Adding simple waycheck validation tool.

2015-11-05 Thread Jon A. Cruz
On 11/05/2015 10:17 AM, Pekka Paalanen wrote: > On Fri, 16 Oct 2015 12:23:47 -0700 > "Jon A. Cruz" wrote: > >> On 10/15/2015 01:51 AM, Pekka Paalanen wrote: >>> I think it's better to land this stuff in pieces than massage a >>> humongous re

[PATCH v2] cosmetic: fix incorrect whitespace.

2015-10-27 Thread Jon A. Cruz
Fixed instance where spaces were used instead of tabs. Changes since v1: * rebased Signed-off-by: Jon A. Cruz --- src/wayland-server-core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland-server-core.h b/src/wayland-server-core.h index 55a2db0..73f2dd2 100644

[PATCH] cosmetic: fix inconsistent code style with header prototypes.

2015-10-25 Thread Jon A. Cruz
A few of the header files had function prototypes that were not following project conventions, sometimes even in the same file. Corrected these to follow as per wayland-os.h. Signed-off-by: Jon A. Cruz --- src/wayland-client-core.h | 160 ++ src/wayland

[PATCH] scanner: stop adding trailing whitespace to copyright

2015-10-25 Thread Jon A. Cruz
Generated code was unconditionally adding a space to lines in comments for copyright blocks even if the line was blank. Updated to not add trailing whitespace for blank lines. Signed-off-by: Jon A. Cruz --- src/scanner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src

[PATCH] cosmetic: fix incorrect whitespace.

2015-10-25 Thread Jon A. Cruz
Fixed instances where spaces were used instead of tabs. Signed-off-by: Jon A. Cruz --- src/wayland-client-core.h | 2 +- src/wayland-server-core.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland-client-core.h b/src/wayland-client-core.h index dea70d9..d8f7f2e

[PATCH weston] zunitc: made name of test fixture parameter explicit.

2015-10-22 Thread Jon A. Cruz
During review of the addition of waycheck, it was pointed out that there could be problems due to ZUC_TEST_F() creating an input parameter with a hidden implicit name. This change addresses that by making the name of the passed in parameter a required third input on the ZUC_TEST_F() macro. Jon A

[PATCH weston] zunitc: made name of test fixture parameter explicit.

2015-10-22 Thread Jon A. Cruz
Instead of using the implicit name 'data', changed the test with fixture macro ZUC_TEST_F() to use an additional value to explicitly set the name to use for test data from the fixture. Signed-off-by: Jon A. Cruz --- tests/config-parser-test.c

[PATCH weston v2] zunitc: Clarify documentation on return behavior.

2015-10-22 Thread Jon A. Cruz
* Clarify documentation on ZUC_ASSERT_* behavior in regards to return vs. abort() * Added overview section on return behavior. * Fixed spelling * Removed outdated reference to tap function. Changes since v1: * Incorporated grammatical feedback. Signed-off-by: Jon A. Cruz --- tools/zunitc

[PATCH weston v2] zunitc documentation feedback

2015-10-22 Thread Jon A. Cruz
This patch addresses some feedback of review from unrelated changes of adding waycheck. Since that review pointed out some lack of clarity in return behavior, it seemed appropriate to address it independent of adding waycheck. Jon A. Cruz (1): zunitc: Clarify documentation on return behavior

[PATCH weston] zunitc documentation feedback

2015-10-21 Thread Jon A. Cruz
This patch addresses some feedback of review from unrelated changes of adding waycheck. Since that review pointed out some lack of clarity in return behavior, it seemed appropriate to address it independent of adding waycheck. Jon A. Cruz (1): zunitc: Clarify documentation on return behavior

[PATCH weston] zunitc: Clarify documentation on return behavior.

2015-10-21 Thread Jon A. Cruz
* Clarify documentation on ZUC_ASSERT_* behavior in regards to return vs. abort() * Added overview section on return behavior. * Fixed spelling * Removed outdated reference to tap function. Signed-off-by: Jon A. Cruz --- tools/zunitc/doc/zunitc.dox | 80

Re: [PATCH weston] tests: Adding simple waycheck validation tool.

2015-10-16 Thread Jon A. Cruz
l patch in this set? I'd say that running it as a separate set might make juggling git a little easier on me. But not to a degree to outweigh what would make reviewing things easier. -- Jon A. Cruz - Senior Open Source Developer Samsung Open Source Group j...@osg.samsung.com __

[PATCH weston] tests: Adding simple waycheck validation tool.

2015-10-07 Thread Jon A. Cruz
ful in the context of acceptance testing, while leaving the third phase's submission to be useful for unit and/or integration testing. Jon A. Cruz (1): tests: Adding simple waycheck validation tool. .gitignore |1 + Makefile.am

[PATCH weston] tests: Adding simple waycheck validation tool.

2015-10-07 Thread Jon A. Cruz
Adds an initial implementation of a testing tool that uses the unit test framework to run checks against an arbitrary Wayland compositor. Note that this is not intended for Weston-specific testing, but for generic Wayland testing. Signed-off-by: Jon A. Cruz --- .gitignore

[PATCH weston] doc: Correct absolute path in doxygen graphs.

2015-10-05 Thread Jon A. Cruz
Adds a config item to prevent doxygen from using absolute paths in generated diagrams. This trims off the base directory during config to leave just relative paths. Signed-off-by: Jon A. Cruz --- doc/doxygen/tooldev.doxygen.in | 1 + doc/doxygen/tools.doxygen.in | 1 + 2 files changed, 2

Re: [PATCH weston 2/3] drm: port the drm backend to the new init api

2015-08-25 Thread Jon A. Cruz
code using them is minimized. These can also have "_internal" or such as part of their name. Upon occasion I've used a #define of UNIT_TEST to avoid exposing certain things during normal builds. This doesn't necessarily need to expose functions directly, but could be some hook/

Re: Weston test suite

2015-08-24 Thread Jon A. Cruz
ny other groups I've been the main person to deliver fixtures and mocks to allow other people to write tests against them. Ideally we do the heavy lifting once and then allow individual developers to easily test a much wider range of functionality and scenarios. Pragmatically, If I don't m

Re: [PATCH][V3][weston] build: mkdir target weston.ini directories before writing

2015-07-17 Thread Jon A. Cruz
/weston-ivi.ini : $(srcdir)/ivi-shell/weston.ini.in > - $(AM_V_GEN)$(SED) \ > + $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(SED) \ > -e 's|@bindir[@]|$(bindir)|g' \ > -e 's|@abs_top_builddir[@]|$(abs_top_builddir)|g&#

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

2015-07-15 Thread Jon A. Cruz
On 07/07/2015 05:35 AM, Pekka Paalanen wrote: > On Thu, 2 Jul 2015 23:36:47 -0700 > "Jon A. Cruz" wrote: > >> Signed-off-by: Jon A. Cruz >> --- >> .gitignore | 2 + >> Makefile.am| 22

[PATCH weston v7 2/3] Converted the config parser test to the new framework.

2015-07-15 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- Makefile.am| 9 +- tests/config-parser-test.c | 371 + 2 files changed, 319 insertions(+), 61 deletions(-) diff --git a/Makefile.am b/Makefile.am index 0ab5b0a..118bafb 100644 --- a/Makefile.am +++ b

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

2015-07-15 Thread Jon A. Cruz
to non-defaults only. - Relocated Doxygen specific input files to match Wayland structure. Jon A. Cruz (3): Enables output in the JUnit XML format. Converted the config parser test to the new framework. Adding doxygen setup and info for the testing framework. .gitignore

[PATCH weston v7 3/3] Adding doxygen setup and info for the testing framework.

2015-07-15 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- .gitignore | 2 + Makefile.am| 22 +++ README | 6 +++ configure.ac | 20 ++ doc/doxygen/devtools.dox | 51 + doc/doxygen

[PATCH weston v7 1/3] Enables output in the JUnit XML format.

2015-07-15 Thread Jon A. Cruz
: Jon A. Cruz --- Makefile.am | 9 + configure.ac | 25 ++ tools/zunitc/src/zuc_junit_reporter.c | 470 ++ tools/zunitc/src/zuc_junit_reporter.h | 38 +++ tools/zunitc/src/zunitc_impl.c| 17 ++ 5 files

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

2015-07-15 Thread Jon A. Cruz
On 07/07/2015 04:49 AM, Pekka Paalanen wrote: > On Thu, 2 Jul 2015 23:36:45 -0700 > "Jon A. Cruz" wrote: > >> Adds basic support for optionally outputting in the XML format >> commonly used by JUnit compatible tools. >> >> This format is supported

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

2015-07-15 Thread Jon A. Cruz
On 07/07/2015 05:08 AM, Pekka Paalanen wrote: > On Thu, 2 Jul 2015 23:36:46 -0700 > "Jon A. Cruz" wrote: > >> Signed-off-by: Jon A. Cruz >> --- >> Makefile.am| 10 +- >> tests/config-parser-test.c | 371 >>

Re: [PATCH weston] README: introduce libweston

2015-07-15 Thread Jon A. Cruz
Factoring in the comments by Bryce, this looks good to me. Acked-by: Jon A. Cruz On 07/14/2015 03:07 AM, Pekka Paalanen wrote: > From: Pekka Paalanen > > What is libweston and where do we intend to go with it. > > Cc: Giulio Camuffo > Signed-off-by: Pekka Paalanen >

Re: [PATCH weston 04/11] make the backends compositor-neutral

2015-07-13 Thread Jon A. Cruz
ndent building blocks a program can use to build a Wayland compositor"? This doesn't have to be set in stone immediately. However it does go to address the points where there is code not "in libweston" but "in main.c" that is doing work that some would consider the

[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
e. - Updated fixture construction, including being able to specify the Wayland instance to connect to. - Reduced Doxygen config files to non-defaults only. - Relocated Doxygen specific input files to match Wayland structure. Jon A. Cruz (4): Added simple unit/integration test framework and corres

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

2015-07-02 Thread Jon A. Cruz
: Jon A. Cruz --- Makefile.am | 9 + configure.ac | 26 ++ tools/zunitc/src/zuc_junit_reporter.c | 488 ++ tools/zunitc/src/zuc_junit_reporter.h | 38 +++ tools/zunitc/src/zunitc_impl.c| 17 ++ 5 files

[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

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:

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(d

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 >

Re: [PATCH libinput 1/5] util: allow list_remove() on a NULL node

2015-06-29 Thread Jon A. Cruz
e something in perhaps a README/CONTRIBUTING or such. On the other hand, it could be considered non-obvious that the both-null case is the valid uninitialized situation and thus could warrant a comment after all. Given that there already was some misreading of Peter's intent, it might help

Re: [PATCH weston v5 2/6] By default, stop test execution if unrecognized parameters are encountered.

2015-06-25 Thread Jon A. Cruz
On 06/25/2015 05:36 AM, Pekka Paalanen wrote: > On Sat, 20 Jun 2015 15:47:44 -0700 > "Jon A. Cruz" wrote: > >> Signed-off-by: Jon A. Cruz >> --- >> tools/zunitc/src/main.c | 11 ++- >> 1 file changed, 10 insertions(+), 1 deletion(-) >>

Re: [PATCH 14/14] tests: test set for ivi-shell notification with bad condition in server side

2015-06-24 Thread Jon A. Cruz
ith bad parameter > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-internal-test.c | 69 > > 1 file changed, 69 insertions(+) > > diff --

Re: [PATCH 12/14] tests: test set for ivi-shell notification normal use case in server side

2015-06-24 Thread Jon A. Cruz
of creating ivi-layer > - notification of removing ivi-layer > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-internal-test.c | 152 > +++ > 1 file chang

Re: [PATCH 13/14] tests: test set for ivi-shell notification in bad condition with helper client

2015-06-24 Thread Jon A. Cruz
ff-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-test-plugin.c | 22 ++ > tests/ivi_layout-test.c| 1 + > 2 files changed, 23 insertions(+) > > diff --git a/tests/ivi_layout-t

Re: [PATCH 11/14] tests: test set for ivi-shell notification normal use case with helper client

2015-06-24 Thread Jon A. Cruz
ivi-surface configure > - notification of creating ivi-surface > - notification of removing ivi-surface > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-test-plugin.c | 172 > +++

Re: [PATCH 10/14] tests: make the test context persistent

2015-06-24 Thread Jon A. Cruz
e. > > [Pekka: add serialization checks, rename the global, rewrite commit message.] > Signed-off-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-test-plugin.c | 45 > -- > 1 file changed, 35 i

Re: [PATCH 09/14] tests: test set for ivi-screen with bad condition in server side

2015-06-24 Thread Jon A. Cruz
er with bad parameter > - destroy ivi-layer in the ivi-screen and call commit_changes > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-internal-test.c | 102 > +++

Re: [PATCH 09/14] tests: test set for ivi-screen with bad condition in server side

2015-06-24 Thread Jon A. Cruz
er with bad parameter > - destroy ivi-layer in the ivi-screen and call commit_changes > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-internal-test.c | 102 > +++

Re: [PATCH 08/14] tests: test set for ivi-screen normal use case in server side

2015-06-24 Thread Jon A. Cruz
der of ivi-layers in ivi-screen > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-internal-test.c | 105 > ++- > 1 file changed, 104 insertions(+), 1 deletion(-

Re: [PATCH 05/14] tests: test set for ivi-layer normal use case in server side

2015-06-24 Thread Jon A. Cruz
- orientation > - dimension > - position > - destination rectangle > - source rectangle > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-internal-test.c | 277 >

Re: [PATCH 07/14] tests: test set for ivi-layer with bad condition in server side

2015-06-24 Thread Jon A. Cruz
_changes > - call set_source_rectangle, destroy ivi-layer, and commit_changes > - call set_destination_rectangle, destroy ivi-layer, and commit_changes > - create duplicate > - destroy ivi-layer and call get_layer > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalane

Re: [PATCH 06/14] tests: test set for ivi-layer bad condition with helper-client

2015-06-24 Thread Jon A. Cruz
fter a ivi_surface in render order is destoryed > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-test-plugin.c | 113 > + > tests/ivi_layout-test.c

Re: [PATCH 04/14] tests: test set for ivi-layer normal use case with helper client

2015-06-24 Thread Jon A. Cruz
Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi-test.h | 4 > tests/ivi_layout-test-plugin.c | 42 > ++ > tests/ivi_layout-test.c| 27 +++

Re: [PATCH 02/14] tests: test set for ivi-surface bad condition with helper client

2015-06-24 Thread Jon A. Cruz
set_destination_rectangle, destroy ivi-surface, and > commit_changes > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A. Cruz > --- > tests/ivi_layout-test-plugin.c | 134 > + > tes

Re: [PATCH 03/14] tests: test set for ivi-surface with bad condition in server side

2015-06-24 Thread Jon A. Cruz
orientation with bad parameter > - dimension with bad parameter > - position with bad parameter > - source_rectangle with bad parameter > - properties with bad parameter > > Signed-off-by: Nobuhiko Tanibata > Reviewed-by: Pekka Paalanen Looks good. Reviewed-by: Jon A.

Re: [PATCH 01/14] tests: test set for ivi-surface normal use case with helper client

2015-06-24 Thread Jon A. Cruz
With those details explained, this looks good. Reviewed-by: Jon A. Cruz On 06/23/2015 05:56 AM, Pekka Paalanen wrote: > On Mon, 22 Jun 2015 17:28:23 -0700 > "Jon A. Cruz" wrote: > >> On 06/21/2015 11:33 PM, Nobuhiko Tanibata wrote: >>> From: Nobuhiko

Re: [PATCH v4 1/6] Added simple unit/integration test framework and corresponding test program.

2015-06-24 Thread Jon A. Cruz
On 06/24/2015 09:32 AM, Bill Spitzak wrote: > On Tue, Jun 23, 2015 at 9:55 PM, Jon A. Cruz wrote: > >> >> Looking into it more, I think I've figured out much of that on my part >> comes from C++ and other OO languages I've worked in. Especially with >>

Re: [PATCH v4 1/6] Added simple unit/integration test framework and corresponding test program.

2015-06-23 Thread Jon A. Cruz
(either in later revisions or in follow-ups as needed). > More below. > > > On Thu, 11 Jun 2015 22:01:27 -0700 > "Jon A. Cruz" wrote: > >> Added a simple C-based test framework and an example program >> that uses it to run through some simple wayland cli

Re: [PATCH weston 06/11] build a libweston.so used by the weston binary

2015-06-23 Thread Jon A. Cruz
rsions. Nice. I've been in a few situations where this really helps. Looks good. Reviewed-by: Jon A. Cruz > --- > Makefile.am | 59 ++- > configure.ac | 3 +++ > src/input.c | 2 +- > 3 files changed, 42 insertions(+), 2

Re: [PATCH weston 04/11] make the backends compositor-neutral

2015-06-23 Thread Jon A. Cruz
I think it would be quite worth it to complete the final 20% and not punt by hardcoding. Secondary issue is that we've now ended up with overloading the term "compositor" in our code to have "weston_compositor" and "compositor_x11" belonging to different sets. Howe

Re: [PATCH weston 02/11] compositor: add API to manage compositor instances

2015-06-23 Thread Jon A. Cruz
Oh I forgot an item on the placement of comments. On 06/23/2015 04:31 PM, Jon A. Cruz wrote: > > Minor doxygen note: the explicit "\brief" is not needed, and the brief > description should end with a '.' to allow the auto-brief to pick it up. > > Overall

Re: [PATCH weston 04/11] make the backends compositor-neutral

2015-06-23 Thread Jon A. Cruz
Just a few minor low-level items in this feedback... On 06/22/2015 01:02 PM, Giulio Camuffo wrote: > The backends used to have lots of code dealing with weston specific configs. > To allow them to be used by other compositors with their own configurations > remove all the usage of weston_config fr

Re: [PATCH weston 02/11] compositor: add API to manage compositor instances

2015-06-23 Thread Jon A. Cruz
wn by calling the compositor's exit vfunc which is set by the > libweston application. > - weston_compositor_destroy(compositor) is called by the libweston > application when tearing down the compositor. The compositor is destroyed > and the memory freed. > --- Reviewed-by: Jon

Re: [PATCH weston] compositor: Separate hardcoded backend related code from compositor

2015-06-23 Thread Jon A. Cruz
r my backend into main compositor code. not in the plugin >>>> itself. >>>> Since it is kind of hardcode, I thought it doesn't look good. I think >>>> that >>>> plugin should have such information of itself and compositor should load >>>> such information from plugin file. >>>> >>>> (similar case: In case of NPAPI, Web browser can show plugin's >>>> information >>>> by getting/calling "NP_GetMIMEDescription()" from each plugin .so file. >>>> e.g >>>> - about:config in Mozilla) >>>> >>>> So, I created this patch for better (weston specific) backend plugin >>>> management structure. >>>> >>>>> >>>>> AFAIK the Weston SDK (the installed headers) for external plugins never >>>>> supported external backends, so I'm curious. >>>>> >>>> >>>> Since this kind of plugin just need header files for building and >>>> weston.pc >>>> is also already supported, I thought that building external backend >>>> plugin >>>> is supported (and ideally possible in current version of weston)... but >>>> wasn't it?? >>>> If it can be supported, it would be good for like my case. Developer can >>>> create the backend plugin without build all weston source.. (like other >>>> '-dev' pkg supported program) >>>> >>>> >>>>> We are going in the direction of backends becoming libweston internal >>>>> details, not something you can plug and switch arbitrarily, at least >>>>> for the middle-term. >>>>> >>>>> >>>>> >>>>> >>>>> Thanks, >>>>> pq >>>> >>>> >> >> > ___ > wayland-devel mailing list > wayland-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/wayland-devel > -- Jon A. Cruz - Senior Open Source Developer Samsung Open Source Group j...@osg.samsung.com ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [PATCH 01/14] tests: test set for ivi-surface normal use case with helper client

2015-06-22 Thread Jon A. Cruz
_rectangle( > + ivisurf, 20, 30, 200, 300) == IVI_SUCCEEDED); > + > + prop = ctl->get_properties_of_surface(ivisurf); > + runner_assert_or_return(prop); > + runner_assert(prop->source_width == 0); > + runner_assert(prop->source_height == 0); > +

[PATCH weston v5 2/6] By default, stop test execution if unrecognized parameters are encountered.

2015-06-20 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- tools/zunitc/src/main.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/zunitc/src/main.c b/tools/zunitc/src/main.c index cc86185..8179807 100644 --- a/tools/zunitc/src/main.c +++ b/tools/zunitc/src/main.c @@ -41,7 +41,16

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

2015-06-20 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- Makefile.am| 9 +- tests/config-parser-test.c | 368 + 2 files changed, 310 insertions(+), 67 deletions(-) diff --git a/Makefile.am b/Makefile.am index f0ed4d2..8234d2a 100644 --- a/Makefile.am +++ b

[PATCH weston v5 3/6] Enables output in the Test Anything Protocol (TAP) format.

2015-06-20 Thread Jon A. Cruz
Adds basic support for optionally outputting in the Test Anything Protocol (TAP) format. This format is a bit older and simplistic, but certain tools handle it well. https://testanything.org/ Signed-off-by: Jon A. Cruz --- Makefile.am | 2 + tools/zunitc/inc/zunitc

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

2015-06-20 Thread Jon A. Cruz
Doxygen config files to non-defaults only. - Relocated Doxygen specific input files to match Wayland structure. Jon A. Cruz (6): Added simple unit/integration test framework and corresponding test program. By default, stop test execution if unrecognized parameters are encountered

[PATCH weston v5 6/6] Adding doxygen setup and info for the testing framework.

2015-06-20 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- .gitignore| 2 + doc/doxygen/devtools.dox | 55 doc/doxygen/tooldev.doxygen | 11 ++ doc/doxygen/tools.dox | 32 doc/doxygen/tools.doxygen | 11 ++ doc/doxygen

[PATCH weston v5 4/6] Enables output in the JUnit XML format.

2015-06-20 Thread Jon A. Cruz
: Jon A. Cruz --- Makefile.am | 10 + configure.ac | 6 + tools/zunitc/inc/zunitc/zunitc.h | 10 + tools/zunitc/src/zuc_junit_reporter.c | 464 ++ tools/zunitc/src/zuc_junit_reporter.h | 38 +++ tools

Re: [PATCH] tests: Don't increment variables inside an assert()

2015-06-19 Thread Jon A. Cruz
currently state they require DEBUG to be enabled in order to work, it is still very good to avoid modification from assert() wrapped code. Moving to a different framework could fail immediately due to this. Looks good. Reviewed-by: Jon A. Cruz -- Jon A. Cruz - Senior Open Source Develope

Re: [PATCH wayland] build: Use AM_CFLAGS instead of GCC_CFLAGS everywhere

2015-06-18 Thread Jon A. Cruz
\ > -I$(top_srcdir)/src \ > -DICONDIR=\"$(ICONDIR)\" > Looks good. As I mentioned to Derek earlier I had just hit this in the documentation when checking for some other things I was addi

Re: [PATCH weston] build: Use AM_CFLAGS instead of GCC_CFLAGS

2015-06-18 Thread Jon A. Cruz
) > +ivi_layout_internal_test_la_CFLAGS = $(AM_CFLAGS) $(COMPOSITOR_CFLAGS) > ivi_layout_internal_test_la_SOURCES =\ > tests/ivi_layout-internal-test.c > > ivi_layout_test_la_LIBADD = $(COMPOSITOR_LIBS) > ivi_layout_test_la_LDFLAGS = $(test_module_ldflags

Re: [PATCH wayland] cosmetic: gratuitous whitespace changes in event-loop.c

2015-06-18 Thread Jon A. Cruz
> TFD_CLOEXEC | TFD_NONBLOCK); > + TFD_CLOEXEC | TFD_NONBLOCK); > source->func = func; > > return add_source(loop, &source->base, WL_EVENT_READABLE, data); > Looks good. (Seems like someone had tabs

Re: [PATCH weston 2/2] Do not install the new helpers macro header file.

2015-06-18 Thread Jon A. Cruz
ommitted version doesn't match what we want to use, can someone point me to the preferred version? (I had used the text from one of the recent license change patches, but guess I might have missed the final form) -- Jon A. Cruz - Senior Open Source Developer Samsung Open Sour

[PATCH weston 1/2] Added new include file to all SOURCES variables with files that use it.

2015-06-16 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- Makefile.am | 129 1 file changed, 95 insertions(+), 34 deletions(-) diff --git a/Makefile.am b/Makefile.am index 261798c..1cfc982 100644 --- a/Makefile.am +++ b/Makefile.am @@ -86,6 +86,7

[PATCH weston 0/2] Cleanup addition of helpers.h to build.

2015-06-16 Thread Jon A. Cruz
This covers a couple of follow-up items Pekka spotted in the patchset moving a few common macros into the new helpers.h header. Jon A. Cruz (2): Added new include file to all SOURCES variables with files that use it. Do not install the new helpers macro header file. Makefile.am

[PATCH weston 2/2] Do not install the new helpers macro header file.

2015-06-16 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- Makefile.am | 1 - 1 file changed, 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1cfc982..125d8c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -190,7 +190,6 @@ westoninclude_HEADERS = \ src/timeline-object.h

Re: [PATCH weston v3 1/5] Expanded unit test framework to cover base requirements.

2015-06-16 Thread Jon A. Cruz
On 06/16/2015 06:21 AM, Pekka Paalanen wrote: > On Tue, 9 Jun 2015 15:15:52 +1000 > Peter Hutterer wrote: > >> On Thu, Jun 04, 2015 at 12:50:47AM -0700, Jon A. Cruz wrote: >>> On 06/03/2015 10:15 PM, Peter Hutterer wrote: >>>> On Tue, May 26, 2015 at

Re: [PATCH weston v2 2/4] Moved helper macro to a discrete include file.

2015-06-16 Thread Jon A. Cruz
On 06/16/2015 02:48 AM, Pekka Paalanen wrote: > On Mon, 15 Jun 2015 15:37:08 -0700 > "Jon A. Cruz" wrote: > >> To help reduce code duplication and also 'kitchen-sink' includes >> the ARRAY_LENGTH macro was moved to a stand-alone file and >> referen

[PATCH weston v2 1/4] Remove redundant #include path component.

2015-06-15 Thread Jon A. Cruz
Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz --- clients/calibrator.c | 2 +- clients/desktop-shell.c| 4 ++-- clients/dnd.c

[PATCH weston v2 3/4] Moved the MIN() macro to the helper include.

2015-06-15 Thread Jon A. Cruz
Removed multiple definitions of the MIN() macro from existing locations and unified with a single definition. Updated sources to use the shared version. Signed-off-by: Jon A. Cruz --- clients/nested.c | 2 -- clients/weston-info.c | 2 -- clients/window.c | 2 -- desktop-shell

[PATCH weston v2 4/4] Unified multiple definitions of container_of() macro.

2015-06-15 Thread Jon A. Cruz
Removed duplicate definitions of the container_of() macro and refactored sources to use the single implementation. Signed-off-by: Jon A. Cruz --- clients/clickdot.c | 1 + clients/desktop-shell.c | 1 + clients/window.h| 4 desktop-shell

[PATCH weston v2 2/4] Moved helper macro to a discrete include file.

2015-06-15 Thread Jon A. Cruz
To help reduce code duplication and also 'kitchen-sink' includes the ARRAY_LENGTH macro was moved to a stand-alone file and referenced from the sources consuming it. Other macros will be added in subsequent passes. Signed-off-by: Jon A. Cruz --- Makefile.am

[PATCH weston 0/4] Extract common macros to single header.

2015-06-15 Thread Jon A. Cruz
As a follow-up to review feedback from Peter Hutterer this set moves a few duplicated macros into a common header, including ARRAY_LENGTH. Changes since v1: - Added example to container_of() doc comment. Jon A. Cruz (4): Remove redundant #include path component. Moved helper macro to a

[PATCH weston 2/4] Moved helper macro to a discrete include file.

2015-06-12 Thread Jon A. Cruz
To help reduce code duplication and also 'kitchen-sink' includes the ARRAY_LENGTH macro was moved to a stand-alone file and referenced from the sources consuming it. Other macros will be added in subsequent passes. Signed-off-by: Jon A. Cruz --- Makefile.am

[PATCH weston 0/4] Extract common macros to single header.

2015-06-12 Thread Jon A. Cruz
As a follow-up to review feedback from Peter Hutterer this set moves a few duplicated macros into a common header, including ARRAY_LENGTH. Jon A. Cruz (4): Remove redundant #include path component. Moved helper macro to a discrete include file. Moved the MIN() macro to the helper include

[PATCH weston 3/4] Moved the MIN() macro to the helper include.

2015-06-12 Thread Jon A. Cruz
Removed multiple definitions of the MIN() macro from existing locations and unified with a single definition. Updated sources to use the shared version. Signed-off-by: Jon A. Cruz --- clients/nested.c | 2 -- clients/weston-info.c | 2 -- clients/window.c | 2 -- desktop-shell

[PATCH weston 1/4] Remove redundant #include path component.

2015-06-12 Thread Jon A. Cruz
Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz --- clients/calibrator.c | 2 +- clients/desktop-shell.c| 4 ++-- clients/dnd.c

[PATCH weston 4/4] Unified multiple definitions of container_of() macro.

2015-06-12 Thread Jon A. Cruz
Removed duplicate definitions of the container_of() macro and refactored sources to use the single implementation. Signed-off-by: Jon A. Cruz --- clients/clickdot.c | 1 + clients/desktop-shell.c | 1 + clients/window.h| 4 desktop-shell

[PATCH v4 5/6] Converted the config parser test to the new framework.

2015-06-11 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- Makefile.am| 9 +- tests/config-parser-test.c | 368 + 2 files changed, 310 insertions(+), 67 deletions(-) diff --git a/Makefile.am b/Makefile.am index 9bd4b29..81f0f41 100644 --- a/Makefile.am +++ b

[PATCH v4 3/6] Enables output in the Test Anything Protocol (TAP) format.

2015-06-11 Thread Jon A. Cruz
Adds basic support for optionally outputting in the Test Anything Protocol (TAP) format. This format is a bit older and simplistic, but certain tools handle it well. https://testanything.org/ Signed-off-by: Jon A. Cruz --- Makefile.am | 2 + tools/zunitc/inc/zunitc

[PATCH v4 6/6] Adding doxygen setup and info for the testing framework.

2015-06-11 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- .gitignore| 2 ++ doc/doxygen/devtools.dox | 52 +++ doc/doxygen/tooldev.doxygen | 11 ++ doc/doxygen/tools.dox | 29 +++ doc/doxygen/tools.doxygen | 11 ++ doc/doxygen

[PATCH v4 0/6] Refactored simple unit/integration test framework and corresponding test program.

2015-06-11 Thread Jon A. Cruz
. - Reduced Doxygen config files to non-defaults only. - Relocated Doxygen specific input files to match Wayland structure. Jon A. Cruz (6): Added simple unit/integration test framework and corresponding test program. By default, stop test execution if unrecognized parameters are

[PATCH v4 4/6] Enables output in the JUnit XML format.

2015-06-11 Thread Jon A. Cruz
: Jon A. Cruz --- Makefile.am | 2 + tools/zunitc/inc/zunitc/zunitc.h | 8 + tools/zunitc/src/zuc_junit_reporter.c | 473 ++ tools/zunitc/src/zuc_junit_reporter.h | 35 +++ tools/zunitc/src/zunitc_impl.c| 12 + 5 files

[PATCH v4 2/6] By default, stop test execution if unrecognized parameters are encountered.

2015-06-11 Thread Jon A. Cruz
Signed-off-by: Jon A. Cruz --- tools/zunitc/src/main.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/tools/zunitc/src/main.c b/tools/zunitc/src/main.c index 3e155d8..9a110d4 100644 --- a/tools/zunitc/src/main.c +++ b/tools/zunitc/src/main.c @@ -38,7 +38,16

Re: Reminder about Patchwork

2015-06-10 Thread Jon A. Cruz
cking a link to Patchwork from the website, not to > mention an explanation on how to use Patchwork... Plus I think Patchwork is missing a password reset. Currently that's what is blocking me from updating. -- Jon A. Cruz - Senior Open Source Developer Samsung Open Source Group j...@o

Re: [PATCH v2 weston] compositor: Respect WESTON_BUILD_DIR env var in weston_load_module

2015-06-09 Thread Jon A. Cruz
On 06/09/2015 04:55 PM, Derek Foreman wrote: > On 09/06/15 06:24 PM, Jon A. Cruz wrote: >> On 06/08/2015 09:46 AM, Derek Foreman wrote: >>> We were loading modules out of the system dirs unconditionally, so >>> tests that loaded modules would use the system ones,

Re: [PATCH v2 weston] compositor: Respect WESTON_BUILD_DIR env var in weston_load_module

2015-06-09 Thread Jon A. Cruz
} > > module = dlopen(path, RTLD_NOW | RTLD_NOLOAD); > if (module) { After the calls to snprintf, for safety the last byte of the 'path' buffer should be explicitly zeroed as technically null-termination is not guaranteed. -- Jon A. Cruz - Senior Open Source Developer Sam

Re: [PATCH weston] don't attempt to start input method if path is empty

2015-06-09 Thread Jon A. Cruz
t_method(struct text_backend *text_backend) > if (!text_backend->input_method.path) > return; > > + if (strcmp(text_backend->input_method.path, "") == 0) > + return; > + > if (text_backend->input_method.process.pid !=

  1   2   >