U. Artie Eoff | 65e7e7a | 2012-12-07 13:50:29 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Derek Foreman | f6a6592 | 2015-02-24 09:32:14 -0600 | [diff] [blame] | 2 | <protocol name="weston_test"> |
U. Artie Eoff | 65e7e7a | 2012-12-07 13:50:29 -0800 | [diff] [blame] | 3 | |
| 4 | <copyright> |
| 5 | Copyright © 2012 Intel Corporation |
| 6 | |
| 7 | Permission to use, copy, modify, distribute, and sell this |
| 8 | software and its documentation for any purpose is hereby granted |
| 9 | without fee, provided that the above copyright notice appear in |
| 10 | all copies and that both that copyright notice and this permission |
| 11 | notice appear in supporting documentation, and that the name of |
| 12 | the copyright holders not be used in advertising or publicity |
| 13 | pertaining to distribution of the software without specific, |
| 14 | written prior permission. The copyright holders make no |
| 15 | representations about the suitability of this software for any |
| 16 | purpose. It is provided "as is" without express or implied |
| 17 | warranty. |
| 18 | |
| 19 | THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS |
| 20 | SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND |
| 21 | FITNESS, IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 22 | SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 23 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN |
| 24 | AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, |
| 25 | ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF |
| 26 | THIS SOFTWARE. |
| 27 | </copyright> |
| 28 | |
Derek Foreman | f6a6592 | 2015-02-24 09:32:14 -0600 | [diff] [blame] | 29 | <interface name="weston_test" version="1"> |
| 30 | <description summary="weston internal testing"> |
| 31 | Internal testing facilities for the weston compositor. |
| 32 | |
| 33 | It can't be stressed enough that these should never ever be used |
| 34 | outside of running weston's tests. The weston-test.so module should |
| 35 | never be installed. |
| 36 | |
| 37 | These requests may allow clients to do very bad things. |
| 38 | </description> |
U. Artie Eoff | 65e7e7a | 2012-12-07 13:50:29 -0800 | [diff] [blame] | 39 | <request name="move_surface"> |
| 40 | <arg name="surface" type="object" interface="wl_surface"/> |
| 41 | <arg name="x" type="int"/> |
| 42 | <arg name="y" type="int"/> |
| 43 | </request> |
| 44 | <request name="move_pointer"> |
| 45 | <arg name="x" type="int"/> |
| 46 | <arg name="y" type="int"/> |
| 47 | </request> |
| 48 | <request name="send_button"> |
| 49 | <arg name="button" type="int"/> |
| 50 | <arg name="state" type="uint"/> |
| 51 | </request> |
| 52 | <request name="activate_surface"> |
| 53 | <arg name="surface" type="object" interface="wl_surface" allow-null="true"/> |
| 54 | </request> |
| 55 | <request name="send_key"> |
| 56 | <arg name="key" type="uint"/> |
| 57 | <arg name="state" type="uint"/> |
| 58 | </request> |
Marek Chalupa | c8daf77 | 2015-03-30 06:37:55 -0400 | [diff] [blame] | 59 | <request name="device_release"> |
| 60 | <arg name="device" type="string"/> |
| 61 | </request> |
| 62 | <request name="device_add"> |
| 63 | <arg name="device" type="string"/> |
| 64 | </request> |
U. Artie Eoff | 65e7e7a | 2012-12-07 13:50:29 -0800 | [diff] [blame] | 65 | <event name="pointer_position"> |
| 66 | <arg name="x" type="fixed"/> |
| 67 | <arg name="y" type="fixed"/> |
| 68 | </event> |
Neil Roberts | 40c0c3f | 2013-10-29 20:13:45 +0000 | [diff] [blame] | 69 | <request name="get_n_egl_buffers"> |
| 70 | <!-- causes a n_egl_buffers event to be sent which reports how many |
| 71 | buffer objects are live for the client --> |
| 72 | </request> |
| 73 | <event name="n_egl_buffers"> |
| 74 | <arg name="n" type="uint"/> |
| 75 | </event> |
U. Artie Eoff | 65e7e7a | 2012-12-07 13:50:29 -0800 | [diff] [blame] | 76 | </interface> |
Pekka Paalanen | f5b74f7 | 2015-03-25 12:50:31 +0200 | [diff] [blame] | 77 | |
| 78 | <interface name="weston_test_runner" version="1"> |
| 79 | <description summary="weston internal testing"> |
| 80 | This is a global singleton interface for Weston internal tests. |
| 81 | |
| 82 | This interface allows a test client to trigger compositor-side |
| 83 | test procedures. This is useful for cases, where the actual tests |
| 84 | are in compositor plugins, but they also require the presence of |
| 85 | a particular client. |
| 86 | |
| 87 | This interface is implemented by the compositor plugins containing |
| 88 | the testing code. |
| 89 | |
| 90 | A test client starts a test with the "run" request. It must not send |
| 91 | another "run" request until receiving the "finished" event. If the |
| 92 | compositor-side test succeeds, the "finished" event is sent. If the |
| 93 | compositor-side test fails, the compositor should send the protocol |
| 94 | error "test_failed", but it may also exit with an error (e.g. SEGV). |
| 95 | |
| 96 | Unknown test name will raise "unknown_test" protocol error. |
| 97 | </description> |
| 98 | |
| 99 | <enum name="error"> |
| 100 | <entry name="test_failed" value="0" summary="compositor test failed"/> |
| 101 | <entry name="unknown_test" value="1" summary="unrecognized test name"/> |
| 102 | </enum> |
| 103 | |
| 104 | <request name="destroy" type="destructor"/> |
| 105 | |
| 106 | <request name="run"> |
| 107 | <arg name="test_name" type="string"/> |
| 108 | </request> |
| 109 | |
| 110 | <event name="finished"/> |
| 111 | </interface> |
U. Artie Eoff | 65e7e7a | 2012-12-07 13:50:29 -0800 | [diff] [blame] | 112 | </protocol> |