Re: [PATCH wayland] tests: disable coredumps on sanity-test

2018-03-15 Thread Pekka Paalanen
On Thu, 15 Mar 2018 10:57:26 + Daniel Stone wrote: > On 14 February 2018 at 12:38, Pekka Paalanen wrote: > > SEGV and ABRT by default cause a core dump, which may create a file, > > launch crash handlers, and so on. sanity-test has 21 processes that > > are expected to crash like this. Disab

Re: [PATCH wayland] tests: disable coredumps on sanity-test

2018-03-15 Thread Daniel Stone
On 14 February 2018 at 12:38, Pekka Paalanen wrote: > SEGV and ABRT by default cause a core dump, which may create a file, > launch crash handlers, and so on. sanity-test has 21 processes that > are expected to crash like this. Disable core dumps on them all. > > I counted 21 entries in coredumpct

Re: [PATCH wayland] tests: fix scanner private-code test reference data

2018-02-26 Thread Derek Foreman
On 2018-02-26 03:44 AM, Pekka Paalanen wrote: From: Pekka Paalanen Commit e501230d1dc8a5015616e104ec0e08886a0b88df "scanner: Fix broken private-code generation" changed the scanner output without updating the reference output for scanner tests. Update the reference data. This fixes 'make check

[PATCH wayland] tests: fix scanner private-code test reference data

2018-02-26 Thread Pekka Paalanen
From: Pekka Paalanen Commit e501230d1dc8a5015616e104ec0e08886a0b88df "scanner: Fix broken private-code generation" changed the scanner output without updating the reference output for scanner tests. Update the reference data. This fixes 'make check'. Signed-off-by: Pekka Paalanen --- tests/da

Re: [PATCH wayland] tests: Test for use after free in resource destruction signals

2018-02-22 Thread Pekka Paalanen
On Wed, 21 Feb 2018 13:08:51 -0600 Derek Foreman wrote: > For years it's been common practice to free the object containing > the wl_listner inside resource destruction notifiers, but not > remove the listener from the list. > > That is: It's been safe to assume that the wl_listener will never b

[PATCH wayland] tests: Test for use after free in resource destruction signals

2018-02-21 Thread Derek Foreman
For years it's been common practice to free the object containing the wl_listner inside resource destruction notifiers, but not remove the listener from the list. That is: It's been safe to assume that the wl_listener will never be touched again, since this is a destruction callback. Recently som

[PATCH wayland] tests: disable coredumps on sanity-test

2018-02-14 Thread Pekka Paalanen
From: Pekka Paalanen SEGV and ABRT by default cause a core dump, which may create a file, launch crash handlers, and so on. sanity-test has 21 processes that are expected to crash like this. Disable core dumps on them all. I counted 21 entries in coredumpctl list, while only 16 functions needed

Re: [PATCH wayland] tests: Add missing file to distribution

2018-01-19 Thread Daniel Stone
On 19 January 2018 at 17:37, Derek Foreman wrote: > In f74c9b98db49ce16e037c3012590c4a24a4fc32e I added tests.xml to the > repository, but not to the distribution. Oops. :( Reviewed-by: Daniel Stone Cheers, Daniel ___ wayland-devel mailing list wayla

[PATCH wayland] tests: Add missing file to distribution

2018-01-19 Thread Derek Foreman
In f74c9b98db49ce16e037c3012590c4a24a4fc32e I added tests.xml to the repository, but not to the distribution. Signed-off-by: Derek Foreman --- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index bceca2a..01ad805 100644 --- a/Makefile.am +++ b/Makefile.

Re: [PATCH wayland] tests: Test wl_argument_from_va_list

2017-01-26 Thread Daniel Stone
Hi Yong, On 23 November 2016 at 15:38, Yong Bakos wrote: > connection-test.c did not cover wl_argument_from_va_list, so add one > test that specifically tests this method. Easy enough, reviewed and pushed: To ssh://git.freedesktop.org/git/wayland/wayland de908658..8fe8a2bb push -> master Th

Re: [PATCH wayland] tests: add a test for mixing up client resources in an event

2017-01-25 Thread Pekka Paalanen
On Mon, 23 Jan 2017 11:49:24 -0600 Derek Foreman wrote: > Tests that the compositor is prevented from sending a resource id > from one client in an event to another client. > > This tests the (rare in practice) subset of the problem where both > clients magically happen to have the same kind of

[PATCH wayland] tests: add a test for mixing up client resources in an event

2017-01-23 Thread Derek Foreman
Tests that the compositor is prevented from sending a resource id from one client in an event to another client. This tests the (rare in practice) subset of the problem where both clients magically happen to have the same kind of object with the same id, so the client has no way to know it's being

[PATCH wayland] tests: Test wl_argument_from_va_list

2016-11-23 Thread Yong Bakos
From: Yong Bakos connection-test.c did not cover wl_argument_from_va_list, so add one test that specifically tests this method. Signed-off-by: Yong Bakos --- tests/connection-test.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/tests/connection-test.c

Re: [PATCH wayland] tests: Add nullable check to wl_message_count_arrays

2016-11-18 Thread Pekka Paalanen
On Fri, 11 Nov 2016 07:08:09 -0800 Yong Bakos wrote: > From: Yong Bakos > > Array argument symbols in a wl_message may be nullable, but the test for > wl_message_count_arrays did not test this. Add one more wl_message with > nullable array arguments. > > Signed-off-by: Yong Bakos > --- > tes

[PATCH wayland] tests: Add nullable check to wl_message_count_arrays

2016-11-11 Thread Yong Bakos
From: Yong Bakos Array argument symbols in a wl_message may be nullable, but the test for wl_message_count_arrays did not test this. Add one more wl_message with nullable array arguments. Signed-off-by: Yong Bakos --- tests/message-test.c | 6 -- 1 file changed, 4 insertions(+), 2 deletion

Re: [PATCH wayland] tests: Test wl_message_count_arrays

2016-11-10 Thread Pekka Paalanen
On Thu, 3 Nov 2016 13:42:54 -0700 Yong Bakos wrote: > From: Yong Bakos > > message-test.c did not cover wl_message_count_arrays, so add one test that > specifically tests this method. Note that this exposes wl_message_count_arrays > in a private header (wayland-private.h), and removes the `sta

Re: [PATCH wayland] tests: Use unique XDG_RUNTIME_DIR

2016-11-10 Thread Pekka Paalanen
On Thu, 10 Nov 2016 11:14:03 + Daniel Stone wrote: > Rather than using a hardcoded 'wayland-tests' directory under > the existing XDG_RUNTIME_DIR to use as the new runtime dir, use mkdtemp > to guarantee uniqueness. This fixes make -jN check, as well as just > happen

[PATCH wayland] tests: Use unique XDG_RUNTIME_DIR

2016-11-10 Thread Daniel Stone
Rather than using a hardcoded 'wayland-tests' directory under the existing XDG_RUNTIME_DIR to use as the new runtime dir, use mkdtemp to guarantee uniqueness. This fixes make -jN check, as well as just happening to run 'make check' twice from the same session. Signed-

[PATCH wayland] tests: Test wl_interface_equal

2016-11-08 Thread Yong Bakos
From: Yong Bakos The test suite did not cover wl_interface_equal, so add one test that specifically tests this method. Add the new test to Makefile.am. Signed-off-by: Yong Bakos --- Makefile.am| 3 +++ tests/interface-test.c | 49 +

[PATCH wayland] tests: Test wl_message_count_arrays

2016-11-03 Thread Yong Bakos
From: Yong Bakos message-test.c did not cover wl_message_count_arrays, so add one test that specifically tests this method. Note that this exposes wl_message_count_arrays in a private header (wayland-private.h), and removes the `static` modifier of the implementation. Signed-off-by: Yong Bakos

Re: [RFC wayland] tests: Test wl_message_count_arrays

2016-11-01 Thread Giulio Camuffo
2016-11-01 18:49 GMT+01:00 Yong Bakos : > On Nov 1, 2016, at 10:35 AM, Giulio Camuffo wrote: >> >> Hi, >> >> I think i would put more messages in the array, just two seems like >> it's not really testing much. Besides that it looks good. >> >> >> Cheers, >> Giulio > > Thanks Giulio, I'll add some

Re: [RFC wayland] tests: Test wl_message_count_arrays

2016-11-01 Thread Yong Bakos
On Nov 1, 2016, at 10:35 AM, Giulio Camuffo wrote: > > Hi, > > I think i would put more messages in the array, just two seems like > it's not really testing much. Besides that it looks good. > > > Cheers, > Giulio Thanks Giulio, I'll add some more. My main concern (hence the RFC) is about ABI

Re: [RFC wayland] tests: Test wl_message_count_arrays

2016-11-01 Thread Giulio Camuffo
Hi, I think i would put more messages in the array, just two seems like it's not really testing much. Besides that it looks good. Cheers, Giulio 2016-10-27 17:58 GMT+02:00 Yong Bakos : > From: Yong Bakos > > message-test.c did not cover wl_message_count_arrays, so add one test that > specifica

[RFC wayland] tests: Test wl_message_count_arrays

2016-10-27 Thread Yong Bakos
From: Yong Bakos message-test.c did not cover wl_message_count_arrays, so add one test that specifically tests this method. Note that this exposes wl_message_count_arrays in a private header (wayland-private.h), and removes the `static` modifier of the implementation. Signed-off-by: Yong Bakos

Re: [PATCH wayland] tests: Check for client/server-core.h inclusion

2016-05-19 Thread Bryce Harrington
On Thu, May 19, 2016 at 10:27:29AM -0600, Yong Bakos wrote: > From: Yong Bakos > > The purpose of wayland-*-protocol-core.h is to mimc the > wayland-*-protocol.h generated by scanner --include-core-only. > The only difference being what wayland-*-protocol.h should include. > > Add an include che

[PATCH wayland] tests: Check for client/server-core.h inclusion

2016-05-19 Thread Yong Bakos
From: Yong Bakos The purpose of wayland-*-protocol-core.h is to mimc the wayland-*-protocol.h generated by scanner --include-core-only. The only difference being what wayland-*-protocol.h should include. Add an include check in the headers-protocol-core-test, to be sure that a wayland-*-protocol

Re: [PATCH wayland] tests: Test creating a shm pool with 0 size

2016-02-26 Thread Pekka Paalanen
*interface, uint32_t > > > >version) > > > >+{ > > > >+ bool *tested = data; > > > >+struct wl_shm *shm; > > > >+int fd, ret; > > > >+struct wl_shm_pool *pool; > > > >+ > > > >+

Re: [PATCH wayland] tests: add test for receiving an error on destroyed object

2016-02-26 Thread Pekka Paalanen
On Mon, 22 Feb 2016 13:25:33 -0800 Bryce Harrington wrote: > On Mon, Feb 22, 2016 at 02:37:00PM +0100, Marek Chalupa wrote: > > test if receiving an error on already destroyed object won't > > do any harm > > > > Signed-off-by: Marek Chalupa > > Confirmed that this test catches the error tha

Re: [PATCH wayland] tests: add test for receiving an error on destroyed object

2016-02-22 Thread Jonas Ådahl
On Mon, Feb 22, 2016 at 02:37:00PM +0100, Marek Chalupa wrote: > test if receiving an error on already destroyed object won't > do any harm > > Signed-off-by: Marek Chalupa Reviewed-by: Jonas Ådahl > --- > tests/display-test.c | 50 ++ > 1 file

Re: [PATCH wayland] tests: Test creating a shm pool with 0 size

2016-02-22 Thread Jonas Ådahl
OTHERWISE, ARISING FROM, OUT OF OR IN > > >+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE > > >+ * SOFTWARE. > > >+ */ > > >+ > > >+#include > > >+#include > > >+#include > > >+#include > > >+#include

Re: [PATCH wayland] tests: Test creating a shm pool with 0 size

2016-02-22 Thread Bryce Harrington
+#include "test-compositor.h" > >+ > >+static void > >+registry_handle_global(void *data, struct wl_registry *registry, > >+ uint32_t id, const char *interface, uint32_t version) > >+{ > >+bool *tested = data; > >+struct wl_shm

Re: [PATCH wayland] tests: add test for receiving an error on destroyed object

2016-02-22 Thread Bryce Harrington
On Mon, Feb 22, 2016 at 02:37:00PM +0100, Marek Chalupa wrote: > test if receiving an error on already destroyed object won't > do any harm > > Signed-off-by: Marek Chalupa Confirmed that this test catches the error that is fixed by https://patchwork.freedesktop.org/patch/74577/, and that the te

Re: [PATCH wayland] tests: Test creating a shm pool with 0 size

2016-02-22 Thread Marek Chalupa
id, &wl_shm_interface, 1); + assert(shm); + + fd = syscall(__NR_memfd_create, "wayland-tests", MFD_CLOEXEC); memfd_create is rather new syscall, I think that this test won't compile on older systems. Shouldn't we guard it somehow? For example: https://g

[PATCH wayland] tests: add test for receiving an error on destroyed object

2016-02-22 Thread Marek Chalupa
test if receiving an error on already destroyed object won't do any harm Signed-off-by: Marek Chalupa --- tests/display-test.c | 50 ++ 1 file changed, 50 insertions(+) diff --git a/tests/display-test.c b/tests/display-test.c index 1a6c345..f9f816

[PATCH wayland] tests: Test creating a shm pool with 0 size

2016-02-21 Thread Jonas Ådahl
, uint32_t version) +{ + bool *tested = data; + struct wl_shm *shm; + int fd, ret; + struct wl_shm_pool *pool; + + if (strcmp (interface, "wl_shm")) + return; + + shm = wl_registry_bind(registry, id, &wl_shm_interface, 1); + asser

[PATCH v2 wayland] tests: Test proxy versions

2016-01-14 Thread Derek Foreman
Add a test that confirms that proxy versions are always 0 for display and correct otherwise. Signed-off-by: Derek Foreman --- Changes from v1: Make the global once at a high version, bind it with different versions create a wl_pointer from the wl_seat to test version inheritance also test the g

Re: [PATCH wayland] tests: add an headers test

2015-05-21 Thread Pekka Paalanen
On Wed, 20 May 2015 15:47:00 -0700 Bill Spitzak wrote: > Please don't duplicate the functions in multiple headers! > > You could achieve the same result this way so that there is only one > copy of each function in the headers: > > wayland-client-protocol-core.h = >(the same as you have it

Re: [PATCH wayland] tests: add an headers test

2015-05-21 Thread Pekka Paalanen
On Wed, 20 May 2015 22:38:53 +0300 Giulio Camuffo wrote: > This test checks that the protocol and library headers include only what > they are supposed to include. That is, that the core headers do not > include the protocol headers and that the core protocol headers do not > include the non core

Re: [PATCH wayland] tests: add an headers test

2015-05-20 Thread Bill Spitzak
Please don't duplicate the functions in multiple headers! You could achieve the same result this way so that there is only one copy of each function in the headers: wayland-client-protocol-core.h = (the same as you have it, generated by wayland-scanner -c) wayland-client-protocol.h = #inc

[PATCH wayland] tests: add an headers test

2015-05-20 Thread Giulio Camuffo
This test checks that the protocol and library headers include only what they are supposed to include. That is, that the core headers do not include the protocol headers and that the core protocol headers do not include the non core library headers. The build process now generates core protocol hea

Re: [PATCH wayland] tests: fix memory leak

2014-12-05 Thread Marek Chalupa
On 4 December 2014 at 12:12, Pekka Paalanen wrote: > On Wed, 3 Dec 2014 11:44:47 +0100 > Marek Chalupa wrote: > > > On 1 December 2014 at 11:42, Pekka Paalanen wrote: > > > > > On Fri, 21 Nov 2014 11:18:33 +0100 > > > Marek Chalupa wrote: > > > > > > > We didn't free the struct client that we

Re: [PATCH wayland] tests: fix memory leak

2014-12-04 Thread Pekka Paalanen
On Wed, 3 Dec 2014 11:44:47 +0100 Marek Chalupa wrote: > On 1 December 2014 at 11:42, Pekka Paalanen wrote: > > > On Fri, 21 Nov 2014 11:18:33 +0100 > > Marek Chalupa wrote: > > > > > We didn't free the struct client that we got from client_connect() > > > > > > Signed-off-by: Marek Chalupa >

Re: [PATCH wayland] tests: fix memory leak

2014-12-03 Thread Marek Chalupa
On 1 December 2014 at 11:42, Pekka Paalanen wrote: > On Fri, 21 Nov 2014 11:18:33 +0100 > Marek Chalupa wrote: > > > We didn't free the struct client that we got from client_connect() > > > > Signed-off-by: Marek Chalupa > > --- > > tests/display-test.c| 23 +-- > > tes

Re: [PATCH wayland] tests: fix memory leak

2014-12-01 Thread Pekka Paalanen
On Fri, 21 Nov 2014 11:18:33 +0100 Marek Chalupa wrote: > We didn't free the struct client that we got from client_connect() > > Signed-off-by: Marek Chalupa > --- > tests/display-test.c| 23 +-- > tests/test-compositor.c | 1 + > 2 files changed, 14 insertions(+), 10

Re: [PATCH wayland] tests: split queue-test testcases

2014-12-01 Thread Pekka Paalanen
On Fri, 21 Nov 2014 11:15:24 +0100 Marek Chalupa wrote: > All the test-cases are in one test atm. It doesn't matter for the > outcome, but when it is split to more tests, the debugging and reading > the output is simpler. > > Signed-off-by: Marek Chalupa > --- > tests/queue-test.c | 20 +++

Re: [PATCH 2 wayland] tests: detect if debugger is attached

2014-11-28 Thread Pekka Paalanen
On Fri, 28 Nov 2014 13:09:59 +0100 Marek Chalupa wrote: > Hi, > > Here it is used to suppress the timeout, which just kills the client during > debugging if you forget to turn it off. > Since it is just a way how to workaround forgetting of humans (read: me xD) > I think that I don't care about

Re: [PATCH 2 wayland] tests: detect if debugger is attached

2014-11-28 Thread Marek Chalupa
Hi, Here it is used to suppress the timeout, which just kills the client during debugging if you forget to turn it off. Since it is just a way how to workaround forgetting of humans (read: me xD) I think that I don't care about this patch much. If no-one else want this, I'm OK with rejecting this

Re: [PATCH 2 wayland] tests: detect if debugger is attached

2014-11-28 Thread Pekka Paalanen
On Wed, 19 Nov 2014 12:20:31 +0100 Marek Chalupa wrote: > Copy function from libinput/test/litest.c is_debugger_detached() > and use it in our test-runner. If debugger is attached, turn off > leak checks and timeouts automatically. > > Revision of libinput: 028513a0a723e97941c39c4aeb174331987239

Re: [PATCH wayland] tests: rename NO_ASSERT_LEAK_CHECK

2014-11-26 Thread Bill Spitzak
On 11/26/2014 06:25 AM, Marek Chalupa wrote: On 20 November 2014 at 23:59, Bryce Harrington mailto:br...@osg.samsung.com>> wrote: On Wed, Nov 19, 2014 at 12:00:10PM +0100, Marek Chalupa wrote: > This env variable is used for turning off the leak checks in tests. > Rename it to WA

Re: [PATCH wayland] tests: rename NO_ASSERT_LEAK_CHECK

2014-11-26 Thread Marek Chalupa
On 20 November 2014 at 23:59, Bryce Harrington wrote: > On Wed, Nov 19, 2014 at 12:00:10PM +0100, Marek Chalupa wrote: > > This env variable is used for turning off the leak checks in tests. > > Rename it to WAYLAND_TESTS_NO_LEAK_CHECK, so that it is consistent > > with WAYLAND_TESTS_NO_TIMEOUTS.

[PATCH wayland] tests: fix memory leak

2014-11-21 Thread Marek Chalupa
We didn't free the struct client that we got from client_connect() Signed-off-by: Marek Chalupa --- tests/display-test.c| 23 +-- tests/test-compositor.c | 1 + 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/tests/display-test.c b/tests/display-test.c i

[PATCH wayland] tests: split queue-test testcases

2014-11-21 Thread Marek Chalupa
All the test-cases are in one test atm. It doesn't matter for the outcome, but when it is split to more tests, the debugging and reading the output is simpler. Signed-off-by: Marek Chalupa --- tests/queue-test.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --g

Re: [PATCH wayland] tests: rename NO_ASSERT_LEAK_CHECK

2014-11-20 Thread Bryce Harrington
On Wed, Nov 19, 2014 at 12:00:10PM +0100, Marek Chalupa wrote: > This env variable is used for turning off the leak checks in tests. > Rename it to WAYLAND_TESTS_NO_LEAK_CHECK, so that it is consistent > with WAYLAND_TESTS_NO_TIMEOUTS. Should these both be 'WAYLAND_TEST_'? In weston there is alre

Re: [PATCH wayland] tests: don't print '\0' character

2014-11-19 Thread Pekka Paalanen
On Wed, 19 Nov 2014 11:58:26 +0100 Marek Chalupa wrote: > print "" (which results in no output) instead of > printing '\0' (which is not visible, but is there) > > Signed-off-by: Marek Chalupa > --- > tests/test-runner.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --g

[PATCH 2 wayland] tests: detect if debugger is attached

2014-11-19 Thread Marek Chalupa
Copy function from libinput/test/litest.c is_debugger_detached() and use it in our test-runner. If debugger is attached, turn off leak checks and timeouts automatically. Revision of libinput: 028513a0a723e97941c39c4aeb17433198723913 Signed-off-by: Marek Chalupa --- tests/test-runner.c | 43

[PATCH wayland] tests: rename NO_ASSERT_LEAK_CHECK

2014-11-19 Thread Marek Chalupa
This env variable is used for turning off the leak checks in tests. Rename it to WAYLAND_TESTS_NO_LEAK_CHECK, so that it is consistent with WAYLAND_TESTS_NO_TIMEOUTS. Signed-off-by: Marek Chalupa --- tests/test-runner.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test

[PATCH wayland] tests: don't print '\0' character

2014-11-19 Thread Marek Chalupa
print "" (which results in no output) instead of printing '\0' (which is not visible, but is there) Signed-off-by: Marek Chalupa --- tests/test-runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-runner.c b/tests/test-runner.c index a6c75a9..1373225 100644

Re: [PATCH v2 wayland] tests: add timeout

2014-11-19 Thread Marek Chalupa
Oh, yes, sure. Thanks, Marek On 17 November 2014 16:02, Pekka Paalanen wrote: > On Wed, 12 Nov 2014 13:16:42 +0100 > Marek Chalupa wrote: > > > Add test_set_timeout() function that allows the test to > > set timeout for its completition. Any other call to the function > > re-sets the timeout t

Re: [PATCH v2 wayland] tests: add timeout

2014-11-17 Thread Pekka Paalanen
On Wed, 12 Nov 2014 13:16:42 +0100 Marek Chalupa wrote: > Add test_set_timeout() function that allows the test to > set timeout for its completition. Any other call to the function > re-sets the timeout to the new value. The timeouts can be turned off > (usefull when debugging) by setting evironm

[PATCH v2 wayland] tests: add timeout

2014-11-12 Thread Marek Chalupa
Add test_set_timeout() function that allows the test to set timeout for its completition. Any other call to the function re-sets the timeout to the new value. The timeouts can be turned off (usefull when debugging) by setting evironment variable WAYLAND_TESTS_NO_TIMEOUTS. v2: rename NO_TIMEOUTS

Re: [PATCH wayland] tests: use our own XDG_RUNTIME_DIR for tests

2014-11-10 Thread Pekka Paalanen
On Fri, 7 Nov 2014 21:37:28 +0200 Giulio Camuffo wrote: > Looks good to me, and it doesn't seem to break any test. ;) > > Reviewed-by: Giulio Camuffo Yup, pushed. Thanks, pq > 2014-09-24 15:07 GMT+03:00 Marek Chalupa : > > Use $XDG_RUNTIME_DIR/wayland-tests for test

Re: [PATCH wayland] tests: use our own XDG_RUNTIME_DIR for tests

2014-11-07 Thread Giulio Camuffo
Looks good to me, and it doesn't seem to break any test. ;) Reviewed-by: Giulio Camuffo 2014-09-24 15:07 GMT+03:00 Marek Chalupa : > Use $XDG_RUNTIME_DIR/wayland-tests for tests. This way we won't be > messing XDG_RUNTIME_DIR and it also fixes a bug, when socket-test >

[PATCH wayland] tests: use our own XDG_RUNTIME_DIR for tests

2014-09-24 Thread Marek Chalupa
Use $XDG_RUNTIME_DIR/wayland-tests for tests. This way we won't be messing XDG_RUNTIME_DIR and it also fixes a bug, when socket-test failed when another compositor was running. Signed-off-by: Marek Chalupa --- tests/test-runner.c | 52 1

Re: [PATCH wayland] tests/resources-test: Fix wl_resource_post_event call

2014-01-06 Thread Jason Ekstrand
On Mon, Jan 6, 2014 at 8:34 AM, Mariusz Ceier wrote: > I think both patches (and original code too obviously) are wrong - > WL_DISPLAY_ERROR (opcode 0) event has signature "ous", so Quentin > patch calls event with too many arguments and ignores types, and Marek > patch calls event with too few ar

Re: [PATCH wayland] tests/resources-test: Fix wl_resource_post_event call

2014-01-06 Thread Mariusz Ceier
I think both patches (and original code too obviously) are wrong - WL_DISPLAY_ERROR (opcode 0) event has signature "ous", so Quentin patch calls event with too many arguments and ignores types, and Marek patch calls event with too few arguments and incorrect type for the second argument. Imo, corre

Re: [PATCH wayland] tests/resources-test: Fix wl_resource_post_event call

2014-01-06 Thread Marek Ch
The call is wrong, I posted it here: http://lists.freedesktop.org/archives/wayland-devel/2013-November/012141.html But without any reaction. Good that somobody else renewed it :) On 05/01/2014, Quentin Glidic wrote: > From: Quentin Glidic > > Signed-off-by: Quentin Glidic > --- > > I do not kno

[PATCH wayland] tests/resources-test: Fix wl_resource_post_event call

2014-01-05 Thread Quentin Glidic
From: Quentin Glidic Signed-off-by: Quentin Glidic --- I do not know if this call is wrong of this the test just reveals a bug but without this, the wl_resource_post_event_array is called with random values tests/resources-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

Wayland tests

2013-11-26 Thread Marek Ch
Hi, I wrote a few tests which test client-display protocol. These tests create it's own display so they are independent on weston. WIll somebody be so kind and look at the code? :) I'd like to get some feedback. The code is here: https://github.com/mchalupa/wayland/tree/wits All comments are wel

RE: [RFC] [tests] Running the wayland tests against compositor-headless

2013-04-23 Thread Eoff, Ullysses A
> -Original Message- > From: Sam Spilsbury [mailto:smspil...@gmail.com] >> >> >> > Ah interesting. I guess the point of the tests is to verify the > backends themselves as opposed to testing the core compositor (well, > it tests that as an incident, but I guess its not the point?). Does it

Re: [RFC] [tests] Running the wayland tests against compositor-headless

2013-04-22 Thread Sam Spilsbury
On Mon, Apr 22, 2013 at 11:02 PM, Eoff, Ullysses A wrote: >> -Original Message- >> From: Sam Spilsbury [mailto:smspil...@gmail.com] >>> >>> >>> > > Yes, it would be trivial to enable the input-based tests to run on the > headless backend... however, it's unclear to me whether the headl

Re: [RFC] [tests] Running the wayland tests against compositor-headless

2013-04-22 Thread Sam Spilsbury
iginal Message- >>> > From: wayland-devel- >>> bounces+ullysses.a.eoff=intel@lists.freedesktop.org >>> > [mailto:wayland-devel- >>> > bounces+ullysses.a.eoff=intel@lists.freedesktop.org] On Behalf Of Sam >>> > Spilsbury >>> &

Re: [RFC] [tests] Running the wayland tests against compositor-headless

2013-04-22 Thread Sam Spilsbury
f, >> Ullysses A >> Sent: Monday, April 22, 2013 1:24 PM >> To: Sam Spilsbury; wayland >> Subject: RE: [RFC] [tests] Running the wayland tests against >> compositor-headless >> >> Changing the tests to run headless is probably not necessary... >> > >

RE: [RFC] [tests] Running the wayland tests against compositor-headless

2013-04-22 Thread Eoff, Ullysses A
am Spilsbury; wayland > Subject: RE: [RFC] [tests] Running the wayland tests against > compositor-headless > > Changing the tests to run headless is probably not necessary... > To clarify... I only meant this in the context of the weston-tests-env script , i.e. it does not need to be

RE: [RFC] [tests] Running the wayland tests against compositor-headless

2013-04-22 Thread Eoff, Ullysses A
uous integration server. U. Artie Eoff > -Original Message- > From: wayland-devel-bounces+ullysses.a.eoff=intel@lists.freedesktop.org > [mailto:wayland-devel- > bounces+ullysses.a.eoff=intel@lists.freedesktop.org] On Behalf Of Sam > Spilsbury > Sent: Monday, April 22

[RFC] [tests] Running the wayland tests against compositor-headless

2013-04-22 Thread Sam Spilsbury
Hi, I'm not sure if this is a work-item that's already in-progress by somebody. I noticed that weston has a "headless" compositor backend and a "no-op" renderer, which effectively do not depend on having OpenGL or *a* windowing system available at the time that weston is run. It would be really g

Re: [PATCH wayland] tests: rename temporary files

2012-12-03 Thread Kristian Høgsberg
On Mon, Dec 03, 2012 at 04:58:25PM +0200, Pekka Paalanen wrote: > This is libwayland, not weston, so call the temporary files > wayland-tests-*, not weston-tests-*. > > This is a candidate for the stable branch. Yeah, thanks, would've made it easier to track this leak down. K

[PATCH wayland] tests: rename temporary files

2012-12-03 Thread Pekka Paalanen
This is libwayland, not weston, so call the temporary files wayland-tests-*, not weston-tests-*. This is a candidate for the stable branch. Signed-off-by: Pekka Paalanen --- tests/connection-test.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/connection

Re: [FYI wayland] tests: add noop to fixed-benchmark

2012-05-15 Thread Kristian Høgsberg
On Tue, May 15, 2012 at 10:29:12AM +0300, Pekka Paalanen wrote: > I was just curious of how much the looping takes time without > conversion, so I added this. > > My results on Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz: > > benchmarked noop: 1.876349827s > benchmarked magic:2.245844470s >

[FYI wayland] tests: add noop to fixed-benchmark

2012-05-15 Thread Pekka Paalanen
I was just curious of how much the looping takes time without conversion, so I added this. My results on Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz: benchmarked noop: 1.876349827s benchmarked magic: 2.245844470s benchmarked div:12.709085309s benchmarked mul:7.504838141s