Merge lp:~om26er/kubuntu-packaging/qtmultimedia_unittests into lp:~kubuntu-packagers/kubuntu-packaging/qtmultimedia-opensource-src

Proposed by Omer Akram
Status: Merged
Merged at revision: 59
Proposed branch: lp:~om26er/kubuntu-packaging/qtmultimedia_unittests
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qtmultimedia-opensource-src
Diff against target: 70 lines (+45/-0)
3 files modified
debian/patches/series (+1/-0)
debian/patches/skip_failing_tests.patch (+39/-0)
debian/rules (+5/-0)
To merge this branch: bzr merge lp:~om26er/kubuntu-packaging/qtmultimedia_unittests
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Dmitry Shachnev Abstain
Review via email: mp+198387@code.launchpad.net

Commit message

Run unittests during build, disable flaky tests

Description of the change

Run unittests during build, disable flaky tests

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Thanks for working on it!

> cd tests/auto/unit/ && ( test -e Makefile || qmake unit.pro -o Makefile ) && make -f Makefile check

That looks quite complicated. Take a look at i.e. qtsvg, where a simple dh_auto_test worked (though we explicitly told qmake to enable tests).

dh_auto_test is usually better because it takes care of things like DEB_BUILD_OPTIONS=nocheck.

P.S. Special thanks for adding bug numbers (though you may also want to use the DEP-3 format).

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

I'm fine with this approach since it's hard to find a subset of truly functional tests that run on builders, so this seems to make enough sense.

I'll run a test build and then merge later.

review: Approve
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :
review: Needs Fixing
Revision history for this message
Omer Akram (om26er) wrote :

Can you please suggest a way to reproduce that environment. I tried a 'debuild' locally and it worked fine.

60. By Omer Akram

remove previous patch

61. By Omer Akram

add a single patch to disable failing tests

62. By Omer Akram

merge trunk

Revision history for this message
Omer Akram (om26er) wrote :

The patch is now DEP3 compilant. Also fixed the failure that Timo reported. All the tests pass during build now. However the package still fails to build but that's not related to any of my changes rather a packaging issue.

Revision history for this message
Omer Akram (om26er) wrote :

Full build logs of failure here: http://paste.ubuntu.com/6583508/

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'debian/patches'
2=== added file 'debian/patches/series'
3--- debian/patches/series 1970-01-01 00:00:00 +0000
4+++ debian/patches/series 2013-12-16 13:50:15 +0000
5@@ -0,0 +1,1 @@
6+skip_failing_tests.patch
7
8=== added file 'debian/patches/skip_failing_tests.patch'
9--- debian/patches/skip_failing_tests.patch 1970-01-01 00:00:00 +0000
10+++ debian/patches/skip_failing_tests.patch 2013-12-16 13:50:15 +0000
11@@ -0,0 +1,39 @@
12+Title: qmediaplaylist tests are unreliable, so disable them
13+Forwarded: not-needed
14+Bug: https://bugreports.qt-project.org/browse/QTBUG-23826
15+Bug: https://bugreports.qt-project.org/browse/QTBUG-35420
16+Bug-Ubuntu: https://launchpad.net/bugs/1261384
17+Author: Omer Akram <om26er@ubuntu.com>
18+
19+=== modified file 'tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp'
20+--- a/tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp 2013-09-20 19:21:01 +0000
21++++ b/tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp 2013-12-05 16:30:52 +0000
22+@@ -341,6 +341,7 @@
23+
24+ void tst_QMediaPlaylist::saveAndLoad()
25+ {
26++ QSKIP("QTBUG-23826: test is flaky and has been like that for a while");
27+ QMediaPlaylist playlist;
28+ playlist.addMedia(content1);
29+ playlist.addMedia(content2);
30+@@ -649,6 +650,7 @@
31+
32+ void tst_QMediaPlaylist::testLoaded_signal()
33+ {
34++ QSKIP("QTBUG-35420 test fails at random");
35+ //create an instance of QMediaPlaylist class.
36+ QMediaPlaylist playlist;
37+ playlist.addMedia(content1); //set the media to playlist
38+
39+=== modified file 'tests/auto/unit/multimedia.pro'
40+--- a/tests/auto/unit/multimedia.pro 2013-05-23 19:47:12 +0000
41++++ b/tests/auto/unit/multimedia.pro 2013-12-12 19:46:46 +0000
42+@@ -19,7 +19,7 @@
43+ qmediarecorder \
44+ qmediaresource \
45+ qmediaservice \
46+- qmediaserviceprovider \
47++# qmediaserviceprovider \
48+ qmediatimerange \
49+ qmetadatareadercontrol \
50+ qmetadatawritercontrol \
51
52=== modified file 'debian/rules'
53--- debian/rules 2013-11-14 06:29:52 +0000
54+++ debian/rules 2013-12-16 13:50:15 +0000
55@@ -7,6 +7,7 @@
56 export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
57 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
58 export QT_SELECT := qt5
59+export QT_QPA_PLATFORM := minimal
60
61 %:
62 dh $@ --parallel --with pkgkde_symbolshelper --dbg-package=qtmultimedia5-dbg
63@@ -36,3 +37,7 @@
64 override_dh_builddeb:
65 dh_builddeb -- -Zxz
66
67+override_dh_auto_test:
68+ export LD_LIBRARY_PATH=$(CURDIR)/lib
69+ cd tests/auto/unit/ && ( test -e Makefile || qmake unit.pro -o Makefile ) && make -f Makefile check
70+

Subscribers

People subscribed via source and target branches

to all changes: