Merge lp:~allanlesage/kubuntu-packaging/qt3d-enable-tests into lp:~kubuntu-packagers/kubuntu-packaging/qt3d-opensource-src

Proposed by Allan LeSage
Status: Merged
Merged at revision: 36
Proposed branch: lp:~allanlesage/kubuntu-packaging/qt3d-enable-tests
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qt3d-opensource-src
Diff against target: 132 lines (+77/-1)
5 files modified
debian/changelog (+9/-0)
debian/control (+2/-0)
debian/patches/series (+1/-0)
debian/patches/skip_failing_tests.patch (+61/-0)
debian/rules (+4/-1)
To merge this branch: bzr merge lp:~allanlesage/kubuntu-packaging/qt3d-enable-tests
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Dmitry Shachnev Needs Fixing
Review via email: mp+199875@code.launchpad.net

This proposal supersedes a proposal from 2013-12-20.

Description of the change

Enable testing: run tests under debian build (using xvfb), skip some failing tests, enable our standard coverage reporting.

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

Thanks for your work here. We usually prefer when:

- tests are built in build target, not in override_dh_auto_test (i.e. use QT_BUILD_PARTS+=tests);
- you actually use dh_auto_test (i.e. 'dh_auto_test -- -C tests/auto/' is a much simplier command than yours);
- and if dh_auto_test for some reason doesn't work for you, make sure DEB_BUILD_OPTIONS=nocheck is honored.

Check qtsvg-opensource-src for an example of a good implementation.

review: Needs Fixing
Revision history for this message
Allan LeSage (allanlesage) wrote :

Thanks Dmitry, fixes in progress.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I think the correct command would be just "xvfb-run -a dh_auto_test". Also, please add build-dependency on xauth (needed in some configurations) and DEP-3 headers to the patch.

38. By Allan LeSage

Correct patch series, removing enable_coverage.patch.

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
=== modified file 'debian/changelog'
--- debian/changelog 2013-12-18 06:58:29 +0000
+++ debian/changelog 2014-01-14 21:31:57 +0000
@@ -1,9 +1,18 @@
1qt3d-opensource-src (5.0~git20130731-0ubuntu2) UNRELEASED; urgency=medium1qt3d-opensource-src (5.0~git20130731-0ubuntu2) UNRELEASED; urgency=medium
22
3 [ Timo Jyrinki ]
3 * Rebuild against Qt 5.2.0, bump dependencies4 * Rebuild against Qt 5.2.0, bump dependencies
4 * Use QT_SELECT instead of depending on qt5-default5 * Use QT_SELECT instead of depending on qt5-default
5 * Add syncqt_create_headers.patch to fix build against 5.2.06 * Add syncqt_create_headers.patch to fix build against 5.2.0
67
8 [ Allan LeSage ]
9 * Add tests to QT_BUILD_PARTS.
10 * Depend on xvfb for existing tests requiring a display.
11 * Add dh_override_auto_test to dh_auto_test under xvfb-run.
12 * debian/patches/skip_failing_tests.patch
13 - Skip some failing tests pending investigation.
14 * Depend on xauth, needed in some configurations.
15
7 -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Tue, 17 Dec 2013 10:54:56 +000016 -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Tue, 17 Dec 2013 10:54:56 +0000
817
9qt3d-opensource-src (5.0~git20130731-0ubuntu1) saucy; urgency=low18qt3d-opensource-src (5.0~git20130731-0ubuntu1) saucy; urgency=low
1019
=== modified file 'debian/control'
--- debian/control 2013-12-18 06:58:29 +0000
+++ debian/control 2014-01-14 21:31:57 +0000
@@ -7,6 +7,8 @@
7 pkg-kde-tools,7 pkg-kde-tools,
8 qtbase5-private-dev (>= 5.2.0+dfsg~),8 qtbase5-private-dev (>= 5.2.0+dfsg~),
9 qtdeclarative5-private-dev (>= 5.2.0~),9 qtdeclarative5-private-dev (>= 5.2.0~),
10 xauth,
11 xvfb,
10 zlib1g-dev,12 zlib1g-dev,
11Standards-Version: 3.9.313Standards-Version: 3.9.3
12Homepage: http://qt-project.org/14Homepage: http://qt-project.org/
1315
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-12-18 06:58:29 +0000
+++ debian/patches/series 2014-01-14 21:31:57 +0000
@@ -1,3 +1,4 @@
1link_against_system_zlib.patch1link_against_system_zlib.patch
2workaround_zlib_linking_issue.patch2workaround_zlib_linking_issue.patch
3syncqt_create_headers.patch3syncqt_create_headers.patch
4skip_failing_tests.patch
45
=== 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 2014-01-14 21:31:57 +0000
@@ -0,0 +1,61 @@
1Description: Skip failing tests
2 While enabling tests during build, skip those found failing pending
3 investigation.
4 .
5Author: Allan LeSage <allan.lesage@canonical.com>
6Forwarded: no
7Last-Updated: 2014-01-07
8
9--- a/tests/auto/threed/threed.pro
10+++ b/tests/auto/threed/threed.pro
11@@ -5,8 +5,9 @@
12 qbox3d \
13 qcolor4ub \
14 qcustomdataarray \
15- qgeometrydata \
16- qglabstractsurface \
17+ # skip these failing tests
18+ #qgeometrydata \
19+ #qglabstractsurface \
20 qglattributedescription \
21 qglattributeset \
22 qglattributevalue \
23@@ -18,7 +19,8 @@
24 qglindexbuffer \
25 qgllightmodel \
26 qgllightparameters \
27- qglmaterial \
28+ # skip this failing test
29+ #qglmaterial \
30 qglmaterialcollection \
31 qglpainter \
32 qglpickcolors \
33@@ -26,7 +28,8 @@
34 qglscenenode \
35 qglsection \
36 qglsphere \
37- qglvertexbundle \
38+ # skip this failing test
39+ #qglvertexbundle \
40 qgraphicstransform3d \
41 qplane3d \
42 qray3d \
43--- a/tests/auto/auto.pro
44+++ b/tests/auto/auto.pro
45@@ -3,9 +3,10 @@
46 cmake
47
48 qtHaveModule(qml): SUBDIRS += imports
49-qtHaveModule(qmltest) {
50- SUBDIRS += qml3d
51-
52- !win32 : SUBDIRS += qml3d_visual \
53- qml3d_cpp
54-}
55+# skip these failing tests
56+#qtHaveModule(qmltest) {
57+# SUBDIRS += qml3d
58+#
59+# !win32 : SUBDIRS += qml3d_visual \
60+# qml3d_cpp
61+#}
062
=== modified file 'debian/rules'
--- debian/rules 2013-12-18 06:58:29 +0000
+++ debian/rules 2014-01-14 21:31:57 +0000
@@ -13,7 +13,7 @@
13 dh $@ --fail-missing --parallel --with pkgkde_symbolshelper --dbg-package=qt3d5-dbg13 dh $@ --fail-missing --parallel --with pkgkde_symbolshelper --dbg-package=qt3d5-dbg
1414
15override_dh_auto_configure:15override_dh_auto_configure:
16 qmake16 qmake QT_BUILD_PARTS+=tests
1717
18override_dh_auto_install:18override_dh_auto_install:
19 dh_auto_install19 dh_auto_install
@@ -24,6 +24,9 @@
24 # Remove libtool-like files24 # Remove libtool-like files
25 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la25 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
2626
27override_dh_auto_test:
28 xvfb-run -a dh_auto_test -- QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
29
27override_dh_builddeb:30override_dh_builddeb:
28 dh_builddeb -- -Zxz31 dh_builddeb -- -Zxz
2932

Subscribers

People subscribed via source and target branches