Merge lp:~allanlesage/kubuntu-packaging/qtlocation-amend-test-enablement into lp:~kubuntu-packagers/kubuntu-packaging/qtlocation-opensource-src

Proposed by Allan LeSage
Status: Merged
Merged at revision: 51
Proposed branch: lp:~allanlesage/kubuntu-packaging/qtlocation-amend-test-enablement
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qtlocation-opensource-src
Diff against target: 282 lines (+16/-210)
5 files modified
debian/changelog (+2/-3)
debian/patches/enable_coverage_reporting.patch (+0/-156)
debian/patches/series (+0/-1)
debian/patches/skip_failing_tests.patch (+12/-47)
debian/rules (+2/-3)
To merge this branch: bzr merge lp:~allanlesage/kubuntu-packaging/qtlocation-amend-test-enablement
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Review via email: mp+200903@code.launchpad.net

Description of the change

Sorry to make us do this again but a review of changes to qt3d made me want to clean up my earlier changes to qtlocation.

I'm aware that some tests were failing specifically on arm but I don't have an environment to reproduce those failures; I propose to try under this new method to see if there's improvement.

Also note that we're setting aside the coverage bit as we'll just apply the necessary changes during a Jenkins build.

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Hi. Armhf still fails a bit:

https://launchpadlibrarian.net/162911783/buildlog_ubuntu-trusty-armhf.qtlocation-opensource-src_5.2.0-0ubuntu1~trusty1~test9_FAILEDTOBUILD.txt.gz

But I'll merge this anyhow and do test disabling those three tests that are failing to see if it then is ok.

review: Approve
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

As an update, it was enough to disable the three individual tests and now tests pass also on arm.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-12-18 13:04:40 +0000
3+++ debian/changelog 2014-01-08 20:13:27 +0000
4@@ -14,12 +14,11 @@
5 - Skip additional tests that fail on armhf.
6
7 [ Allan LeSage ]
8+ * Add tests to QT_BUILD_PARTS.
9 * Depend on xvfb for existing tests requiring a display.
10- * Add dh_override_auto_test to make check under xvfb-run.
11+ * Add dh_override_auto_test to make dh_auto_test under xvfb-run.
12 * debian/patches/skip_failing_tests.patch
13 - Skip some failing tests pending investigation.
14- * debian/patches/enable_coverage_reporting.patch
15- - Enable standard coverage reporting for Jenkins consumption.
16
17 -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Thu, 14 Nov 2013 05:14:27 +0000
18
19
20=== removed file 'debian/patches/enable_coverage_reporting.patch'
21--- debian/patches/enable_coverage_reporting.patch 2013-12-17 22:08:15 +0000
22+++ debian/patches/enable_coverage_reporting.patch 1970-01-01 00:00:00 +0000
23@@ -1,156 +0,0 @@
24---- a/qtlocation.pro
25-+++ b/qtlocation.pro
26-@@ -1,3 +1,4 @@
27-+include(coverage.pri)
28- load(configure)
29- qtCompileTest(geoclue)
30- qtCompileTest(geoclue-satellite)
31---- a/src/3rdparty/3rdparty.pro
32-+++ b/src/3rdparty/3rdparty.pro
33-@@ -1,2 +1,4 @@
34-+include(../../coverage.pri)
35-+
36- TEMPLATE = subdirs
37- SUBDIRS += poly2tri
38---- a/src/3rdparty/poly2tri/poly2tri.pro
39-+++ b/src/3rdparty/poly2tri/poly2tri.pro
40-@@ -1,3 +1,5 @@
41-+include(../../../coverage.pri)
42-+
43- TEMPLATE = lib
44- TARGET = poly2tri
45-
46---- a/src/imports/location/location.pro
47-+++ b/src/imports/location/location.pro
48-@@ -1,3 +1,5 @@
49-+include(../../../coverage.pri)
50-+
51- QT += quick-private network positioning-private location-private qml-private 3d core-private gui-private
52-
53- INCLUDEPATH += ../../location
54---- a/src/location/location.pro
55-+++ b/src/location/location.pro
56-@@ -1,3 +1,5 @@
57-+include(../../coverage.pri)
58-+
59- TARGET = QtLocation
60- QT = core-private positioning
61-
62---- a/src/location/maps/maps.pri
63-+++ b/src/location/maps/maps.pri
64-@@ -1,3 +1,4 @@
65-+include(../../../coverage.pri)
66-
67- INCLUDEPATH += maps
68-
69---- a/src/plugins/geoservices/osm/osm.pro
70-+++ b/src/plugins/geoservices/osm/osm.pro
71-@@ -1,3 +1,5 @@
72-+include(../../../../coverage.pri)
73-+
74- TARGET = qtgeoservices_osm
75- QT += location-private network
76-
77---- a/src/plugins/position/geoclue/geoclue.pro
78-+++ b/src/plugins/position/geoclue/geoclue.pro
79-@@ -1,3 +1,5 @@
80-+include(../../../../coverage.pri)
81-+
82- TARGET = qtposition_geoclue
83- QT = core positioning
84-
85---- a/src/plugins/position/gypsy/gypsy.pro
86-+++ b/src/plugins/position/gypsy/gypsy.pro
87-@@ -1,3 +1,5 @@
88-+include(../../../../coverage.pri)
89-+
90- TARGET = qtposition_gypsy
91- QT = core positioning
92-
93---- a/src/plugins/position/position.pro
94-+++ b/src/plugins/position/position.pro
95-@@ -1,3 +1,5 @@
96-+include(../../coverage.pri)
97-+
98- TEMPLATE = subdirs
99-
100- config_geoclue:SUBDIRS += geoclue
101---- a/src/plugins/position/simulator/simulator.pro
102-+++ b/src/plugins/position/simulator/simulator.pro
103-@@ -1,3 +1,5 @@
104-+include(../../../../coverage.pri)
105-+
106- TARGET = qtposition_simulator
107- QT += positioning gui
108-
109---- a/src/plugins/position/ubuntu/ubuntu.pro
110-+++ b/src/plugins/position/ubuntu/ubuntu.pro
111-@@ -1,3 +1,5 @@
112-+include(../../../../coverage.pri)
113-+
114- TARGET = qtposition_ubuntu
115- QT += location gui
116-
117---- a/src/src.pro
118-+++ b/src/src.pro
119-@@ -1,3 +1,5 @@
120-+include(../coverage.pri)
121-+
122- TEMPLATE = subdirs
123- CONFIG += ordered
124-
125---- /dev/null
126-+++ b/coverage.pri
127-@@ -0,0 +1,44 @@
128-+# Coverage
129-+CONFIG(coverage) {
130-+ LIBS += -lgcov
131-+ QMAKE_CXXFLAGS += --coverage
132-+ QMAKE_LDFLAGS += --coverage
133-+
134-+ QMAKE_EXTRA_TARGETS += clean-gcno clean-gcda coverage-html \
135-+ generate-coverage-html clean-coverage-html coverage-gcovr \
136-+ generate-gcovr generate-coverage-gcovr clean-coverage-gcovr
137-+
138-+ clean-gcno.commands = \
139-+ "@echo Removing old coverage instrumentation"; \
140-+ "find -name '*.gcno' -print | xargs -r rm"
141-+
142-+ clean-gcda.commands = \
143-+ "@echo Removing old coverage results"; \
144-+ "find -name '*.gcda' -print | xargs -r rm"
145-+
146-+ coverage-html.depends = clean-gcda check generate-coverage-html
147-+
148-+ generate-coverage-html.commands = \
149-+ "@echo Collecting coverage data"; \
150-+ "lcov --directory $${TOP_SRC_DIR} --capture --output-file coverage.info --no-checksum --compat-libtool"; \
151-+ "lcov --extract coverage.info \"*/src/*.cpp\" -o coverage.info"; \
152-+ "lcov --remove coverage.info \"moc_*.cpp\" -o coverage.info"; \
153-+ "LANG=C genhtml --prefix $${TOP_SRC_DIR} --output-directory coverage-html --title \"Code Coverage\" --legend --show-details coverage.info"
154-+
155-+ clean-coverage-html.depends = clean-gcda
156-+ clean-coverage-html.commands = \
157-+ "lcov --directory $${TOP_SRC_DIR} -z"; \
158-+ "rm -rf coverage.info coverage-html"
159-+
160-+ coverage-gcovr.depends = clean-gcda check generate-coverage-gcovr
161-+
162-+ generate-coverage-gcovr.commands = \
163-+ "@echo Generating coverage GCOVR report"; \
164-+ "gcovr -x -r $${TOP_SRC_DIR} -o $${TOP_SRC_DIR}/coverage.xml -e \".*/moc_.*\" -e \"tests/.*\" -e \".*\\.h\""
165-+
166-+ clean-coverage-gcovr.depends = clean-gcda
167-+ clean-coverage-gcovr.commands = \
168-+ "rm -rf $${TOP_SRC_DIR}/coverage.xml"
169-+
170-+ QMAKE_CLEAN += *.gcda *.gcno coverage.info coverage.xml
171-+}
172---- a/src/plugins/geoservices/nokia/nokia.pro
173-+++ b/src/plugins/geoservices/nokia/nokia.pro
174-@@ -1,3 +1,5 @@
175-+include(../../../../coverage.pri)
176-+
177- TARGET = qtgeoservices_nokia
178- QT += location-private network
179-
180
181=== modified file 'debian/patches/series'
182--- debian/patches/series 2013-12-17 22:08:15 +0000
183+++ debian/patches/series 2014-01-08 20:13:27 +0000
184@@ -1,3 +1,2 @@
185 add_support_for_ubuntu_platform.patch
186 skip_failing_tests.patch
187-enable_coverage_reporting.patch
188
189=== modified file 'debian/patches/skip_failing_tests.patch'
190--- debian/patches/skip_failing_tests.patch 2013-12-18 13:04:40 +0000
191+++ debian/patches/skip_failing_tests.patch 2014-01-08 20:13:27 +0000
192@@ -1,55 +1,20 @@
193+Description: Skip failing tests
194+ While enabling tests during build, skip those found failing pending
195+ investigation.
196+ .
197+Author: Allan LeSage <allan.lesage@canonical.com>
198+Forwarded: no
199+Last-Updated: 2014-01-08
200+
201 --- a/tests/auto/auto.pro
202 +++ b/tests/auto/auto.pro
203-@@ -24,9 +24,10 @@
204- qplacesearchreply \
205- qplacesearchsuggestionreply \
206- qplaceuser \
207-- qplacemanager \
208-- qplacemanager_nokia \
209-- qplacemanager_unsupported \
210-+ # skip some failling tests
211-+ #qplacemanager \
212-+ #qplacemanager_nokia \
213-+ #qplacemanager_unsupported \
214- placesplugin_unsupported
215-
216- #misc tests
217-@@ -47,13 +48,15 @@
218- qgeoroutereply \
219- qgeorouterequest \
220- qgeoroutesegment \
221-- qgeoroutingmanager \
222-+ # skip some failing tests
223-+ #qgeoroutingmanager \
224- qgeoroutingmanagerplugins \
225- qgeotilespec \
226- qgeoroutexmlparser \
227- qgeomapcontroller \
228- maptype \
229-- nokia_services \
230-+ # skip some failing tests
231-+ #nokia_services \
232- qgeocameratiles
233-
234- qtHaveModule(quick) {
235-@@ -68,14 +71,15 @@
236- positionplugin \
237- positionplugintest \
238- qgeoaddress \
239-- qgeoareamonitor \
240-+ #qgeoareamonitor \
241- qgeoshape \
242- qgeorectangle \
243- qgeocircle \
244-- qgeocoordinate \
245-+ #qgeocoordinate \
246+@@ -75,7 +75,8 @@
247+ qgeocoordinate \
248 qgeolocation \
249 qgeopositioninfo \
250 - qgeopositioninfosource \
251-+ # skip some failing tests
252++ # skip this failing test
253 + #qgeopositioninfosource \
254 qgeosatelliteinfo \
255 qgeosatelliteinfosource \
256-- qnmeapositioninfosource
257-+ #qnmeapositioninfosource
258-
259+ qnmeapositioninfosource
260
261=== modified file 'debian/rules'
262--- debian/rules 2013-12-17 22:08:15 +0000
263+++ debian/rules 2014-01-08 20:13:27 +0000
264@@ -12,7 +12,7 @@
265 dh $@ --fail-missing --parallel --with pkgkde_symbolshelper --dbg-package=qtlocation5-dbg
266
267 override_dh_auto_configure:
268- qmake "CONFIG+=debug"
269+ qmake "CONFIG+=debug" QT_BUILD_PARTS+=tests
270
271 override_dh_auto_install:
272 dh_auto_install
273@@ -27,8 +27,7 @@
274 rm -f debian/tmp/usr/lib/*/qt5/examples/qtlocation/declarative/mapviewer/qml_location_mapviewer
275
276 override_dh_auto_test:
277- export LD_LIBRARY_PATH=$(CURDIR)/lib
278- cd tests/auto/ && ( test -e Makefile || qmake auto.pro -o Makefile ) && xvfb-run -a make -f Makefile check
279+ xvfb-run -a dh_auto_test -- QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
280
281 override_dh_builddeb:
282 dh_builddeb -- -Zxz

Subscribers

People subscribed via source and target branches