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

Subscribers

People subscribed via source and target branches

to all changes: