Merge lp:~bregma/unity-system-compositor/add-autopkgtest into lp:unity-system-compositor

Proposed by Stephen M. Webb
Status: Superseded
Proposed branch: lp:~bregma/unity-system-compositor/add-autopkgtest
Merge into: lp:unity-system-compositor
Diff against target: 203 lines (+56/-11)
10 files modified
debian/control (+25/-10)
debian/tests/control (+2/-0)
debian/tests/mir (+3/-0)
debian/unity-system-compositor-tests.install (+2/-0)
debian/unity-system-compositor.install (+1/-1)
debian/watch (+2/-0)
tests/include/usc/test/mock_display.h (+5/-0)
tests/integration-tests/CMakeLists.txt (+3/-0)
tests/unit-tests/test_mir_input_configuration.cpp (+10/-0)
tests/unit-tests/test_session_switcher.cpp (+3/-0)
To merge this branch: bzr merge lp:~bregma/unity-system-compositor/add-autopkgtest
Reviewer Review Type Date Requested Status
Cemil Azizoglu (community) Needs Fixing
Mir CI Bot continuous-integration Approve
Alan Griffiths Needs Fixing
PS Jenkins bot (community) continuous-integration Needs Fixing
Brandon Schaefer (community) Approve
Kevin DuBois (community) Approve
Chris Halse Rogers Needs Fixing
Review via email: mp+275249@code.launchpad.net

This proposal has been superseded by a proposal from 2017-03-31.

Commit message

added autopkgtest (DEP-8) support and some tests

Description of the change

Added autopkgtest support. Added some tests.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Chris Halse Rogers (raof) wrote :

Almost all of this diff is redundant? Could you please drop all the changes removing the trailing commas from the debian/control lists? Having the trailing commas makes diffs more readable, as all the changed lines are significant.

Other than that, LGTM.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

looks okay to me, although not sure why some of the dependency orderings have changed in control.

review: Approve
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

There are unrelated changes in debian/control - are they there for a reason?

review: Needs Information
Revision history for this message
Stephen M. Webb (bregma) wrote :

The unrelated changes in debian/control are due to running wrap-and-sort on it like a good little Debian packager. It gets hard to remember which packages are good citizens and which are contemptuous of best practices, so I just always run it.

If it really causes a problem, I can revert that change.

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Yay for tests

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

Text conflict in debian/control
1 conflicts encountered.

review: Needs Fixing
262. By Stephen M. Webb

synched with trunk

Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Mir CI Bot (mir-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Cemil Azizoglu (cemil-azizoglu) wrote :

I'm assuming this is unintentional.
8 + libmirclient-dev (>= 0.13.0),
9 + libmirserver-dev (>= 0.13.0),
10 libglm-dev,
11 - libmirclient-dev (>= 0.19.0),
12 - libmirserver-dev (>= 0.19.0),

review: Needs Fixing
263. By Stephen M. Webb

synched with trunk

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2017-01-17 21:10:21 +0000
3+++ debian/control 2017-03-31 02:23:59 +0000
4@@ -13,30 +13,30 @@
5 libboost-system-dev,
6 libdbus-1-dev,
7 libgdk-pixbuf2.0-dev,
8+ libgles2-mesa-dev,
9 libglib2.0-dev,
10- libgles2-mesa-dev,
11 libglm-dev,
12 libmirclient-dev (>= 0.26.0),
13 libmirserver-dev (>= 0.26.0),
14 pkg-config,
15 python3,
16+ python3-pil:native,
17 python3-setuptools,
18- python3-pil:native,
19-Standards-Version: 3.9.7
20+Standards-Version: 3.9.8
21 Homepage: https://launchpad.net/unity-system-compositor
22 # if you don't have have commit access to this branch but would like to upload
23 # directly to Ubuntu, don't worry: your changes will be merged back into the
24 # upstream branch
25-Vcs-Bzr: lp:unity-system-compositor
26+Vcs-Bzr: https://bazaar.launchpad.net/+branch/unity-system-compositor/
27
28 Package: unity-system-compositor
29 Architecture: any
30-Depends: ${misc:Depends},
31+Depends: ubuntu-wallpapers,
32+ ${misc:Depends},
33 ${shlibs:Depends},
34- ubuntu-wallpapers,
35 Suggests: repowerd,
36-Description: System compositor for Ubuntu
37- System compositor used by the Mir display server in Ubuntu. If the Unity
38+Description: Mir System Compositor
39+ This is the system compositor using the Mir display server. If the Unity
40 System Compositor can't start, LightDM will fallback to plain Xorg display
41 server.
42
43@@ -46,5 +46,20 @@
44 unity-system-compositor (>= ${source:Version}),
45 ${misc:Depends},
46 ${python3:Depends},
47-Description: Test package for Unity System Compositor
48- Autopilots tests for Unity System Compositor
49+Description: Mir System Compositor autopilot integration tests
50+ This is the system compositor using the Mir display server.
51+ .
52+ This package contains the Autopilots integration tests for the Unity System
53+ Compositor.
54+
55+Package: unity-system-compositor-tests
56+Architecture: any
57+Depends: unity-system-compositor (>= ${source:Version}),
58+ ${misc:Depends},
59+ ${shlibs:Depends},
60+Description: Mir System Compositor unit tests
61+ This is the system compositor using the Mir display server.
62+ .
63+ General tests for Unity System Compositor targeted at autopkgtest runs when a
64+ dependency has changed.
65+
66
67=== added directory 'debian/tests'
68=== added file 'debian/tests/control'
69--- debian/tests/control 1970-01-01 00:00:00 +0000
70+++ debian/tests/control 2017-03-31 02:23:59 +0000
71@@ -0,0 +1,2 @@
72+Tests: mir
73+Depends: unity-system-compositor-tests
74
75=== added file 'debian/tests/mir'
76--- debian/tests/mir 1970-01-01 00:00:00 +0000
77+++ debian/tests/mir 2017-03-31 02:23:59 +0000
78@@ -0,0 +1,3 @@
79+#!/bin/sh -e
80+/usr/bin/usc_integration_tests
81+exit 0
82
83=== added file 'debian/unity-system-compositor-tests.install'
84--- debian/unity-system-compositor-tests.install 1970-01-01 00:00:00 +0000
85+++ debian/unity-system-compositor-tests.install 2017-03-31 02:23:59 +0000
86@@ -0,0 +1,2 @@
87+usr/bin/usc_integration_tests
88+usr/bin/usc_test_helper_wait_for_signal
89
90=== modified file 'debian/unity-system-compositor.install'
91--- debian/unity-system-compositor.install 2016-05-24 13:56:28 +0000
92+++ debian/unity-system-compositor.install 2017-03-31 02:23:59 +0000
93@@ -3,7 +3,7 @@
94 etc/dbus-1/system.d/com.canonical.Unity.conf
95 usr/bin/unity-system-compositor-spinner
96 usr/sbin/unity-system-compositor
97-usr/share/dbus-1/interfaces/com.canonical.Unity.PowerButton.xml
98 usr/share/dbus-1/interfaces/com.canonical.Unity.Display.xml
99 usr/share/dbus-1/interfaces/com.canonical.Unity.Input.xml
100+usr/share/dbus-1/interfaces/com.canonical.Unity.PowerButton.xml
101 usr/share/dbus-1/interfaces/com.canonical.Unity.UserActivity.xml
102
103=== added file 'debian/watch'
104--- debian/watch 1970-01-01 00:00:00 +0000
105+++ debian/watch 2017-03-31 02:23:59 +0000
106@@ -0,0 +1,2 @@
107+version=3
108+https://launchpad.net/unity-system-compositor/+download .*/unity-system-compositor[-_]([0-9.]+)\.tar\.xz
109
110=== modified file 'tests/include/usc/test/mock_display.h'
111--- tests/include/usc/test/mock_display.h 2016-11-09 18:13:05 +0000
112+++ tests/include/usc/test/mock_display.h 2017-03-31 02:23:59 +0000
113@@ -21,6 +21,7 @@
114
115 #include <mir/graphics/display.h>
116 #include <mir/graphics/virtual_output.h>
117+#include <mir/version.h>
118 #include <gmock/gmock.h>
119
120 namespace usc
121@@ -53,11 +54,15 @@
122
123 void resume() override {};
124
125+#if MIR_SERVER_VERSION < MIR_VERSION_NUMBER(0, 27, 0)
126 std::shared_ptr<mir::graphics::Cursor> create_hardware_cursor(
127 std::shared_ptr<mir::graphics::CursorImage> const&) override
128 {
129 return {};
130 };
131+#else
132+ std::shared_ptr<mir::graphics::Cursor> create_hardware_cursor() override { return {}; }
133+#endif
134
135 std::unique_ptr<mir::graphics::VirtualOutput> create_virtual_output(int, int) override
136 { return std::unique_ptr<mir::graphics::VirtualOutput>{}; }
137
138=== modified file 'tests/integration-tests/CMakeLists.txt'
139--- tests/integration-tests/CMakeLists.txt 2016-04-18 14:58:36 +0000
140+++ tests/integration-tests/CMakeLists.txt 2017-03-31 02:23:59 +0000
141@@ -57,3 +57,6 @@
142
143 add_dependencies(usc_integration_tests GMock)
144 add_dependencies(usc_integration_tests usc_test_helper_wait_for_signal)
145+
146+install(TARGETS usc_integration_tests usc_test_helper_wait_for_signal
147+ RUNTIME DESTINATION bin)
148
149=== modified file 'tests/unit-tests/test_mir_input_configuration.cpp'
150--- tests/unit-tests/test_mir_input_configuration.cpp 2017-01-19 19:49:44 +0000
151+++ tests/unit-tests/test_mir_input_configuration.cpp 2017-03-31 02:23:59 +0000
152@@ -25,6 +25,11 @@
153 #include "mir/input/mir_keyboard_config.h"
154 #include "mir/input/mir_pointer_config.h"
155 #include "mir/input/mir_touchpad_config.h"
156+#include <mir/version.h>
157+
158+#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
159+#include <mir/input/mir_touchscreen_config.h>
160+#endif
161
162 #include <gtest/gtest.h>
163 #include <gmock/gmock.h>
164@@ -54,6 +59,11 @@
165 ON_CALL(*this, capabilities()).WillByDefault(Return(this->caps));
166 }
167
168+#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
169+ mir::optional_value<MirTouchscreenConfig> touchscreen_configuration() const { return {}; }
170+ void apply_touchscreen_configuration(MirTouchscreenConfig const&) {}
171+#endif
172+
173 mi::DeviceCapabilities caps;
174 };
175
176
177=== modified file 'tests/unit-tests/test_session_switcher.cpp'
178--- tests/unit-tests/test_session_switcher.cpp 2017-02-06 12:48:40 +0000
179+++ tests/unit-tests/test_session_switcher.cpp 2017-03-31 02:23:59 +0000
180@@ -20,6 +20,7 @@
181 #include "src/spinner.h"
182
183 #include "mir/frontend/session.h"
184+#include <mir/version.h>
185
186 #include <gtest/gtest.h>
187 #include <gmock/gmock.h>
188@@ -105,6 +106,7 @@
189 {
190 return {};
191 }
192+#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 27, 0)
193 mir::graphics::BufferID create_buffer(mir::geometry::Size, MirPixelFormat) override
194 {
195 return {};
196@@ -113,6 +115,7 @@
197 {
198 return {};
199 }
200+#endif
201 void destroy_buffer(mir::graphics::BufferID) override
202 {
203 }

Subscribers

People subscribed via source and target branches