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
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-12-18 06:58:29 +0000
3+++ debian/changelog 2014-01-14 21:31:57 +0000
4@@ -1,9 +1,18 @@
5 qt3d-opensource-src (5.0~git20130731-0ubuntu2) UNRELEASED; urgency=medium
6
7+ [ Timo Jyrinki ]
8 * Rebuild against Qt 5.2.0, bump dependencies
9 * Use QT_SELECT instead of depending on qt5-default
10 * Add syncqt_create_headers.patch to fix build against 5.2.0
11
12+ [ Allan LeSage ]
13+ * Add tests to QT_BUILD_PARTS.
14+ * Depend on xvfb for existing tests requiring a display.
15+ * Add dh_override_auto_test to dh_auto_test under xvfb-run.
16+ * debian/patches/skip_failing_tests.patch
17+ - Skip some failing tests pending investigation.
18+ * Depend on xauth, needed in some configurations.
19+
20 -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Tue, 17 Dec 2013 10:54:56 +0000
21
22 qt3d-opensource-src (5.0~git20130731-0ubuntu1) saucy; urgency=low
23
24=== modified file 'debian/control'
25--- debian/control 2013-12-18 06:58:29 +0000
26+++ debian/control 2014-01-14 21:31:57 +0000
27@@ -7,6 +7,8 @@
28 pkg-kde-tools,
29 qtbase5-private-dev (>= 5.2.0+dfsg~),
30 qtdeclarative5-private-dev (>= 5.2.0~),
31+ xauth,
32+ xvfb,
33 zlib1g-dev,
34 Standards-Version: 3.9.3
35 Homepage: http://qt-project.org/
36
37=== modified file 'debian/patches/series'
38--- debian/patches/series 2013-12-18 06:58:29 +0000
39+++ debian/patches/series 2014-01-14 21:31:57 +0000
40@@ -1,3 +1,4 @@
41 link_against_system_zlib.patch
42 workaround_zlib_linking_issue.patch
43 syncqt_create_headers.patch
44+skip_failing_tests.patch
45
46=== added file 'debian/patches/skip_failing_tests.patch'
47--- debian/patches/skip_failing_tests.patch 1970-01-01 00:00:00 +0000
48+++ debian/patches/skip_failing_tests.patch 2014-01-14 21:31:57 +0000
49@@ -0,0 +1,61 @@
50+Description: Skip failing tests
51+ While enabling tests during build, skip those found failing pending
52+ investigation.
53+ .
54+Author: Allan LeSage <allan.lesage@canonical.com>
55+Forwarded: no
56+Last-Updated: 2014-01-07
57+
58+--- a/tests/auto/threed/threed.pro
59++++ b/tests/auto/threed/threed.pro
60+@@ -5,8 +5,9 @@
61+ qbox3d \
62+ qcolor4ub \
63+ qcustomdataarray \
64+- qgeometrydata \
65+- qglabstractsurface \
66++ # skip these failing tests
67++ #qgeometrydata \
68++ #qglabstractsurface \
69+ qglattributedescription \
70+ qglattributeset \
71+ qglattributevalue \
72+@@ -18,7 +19,8 @@
73+ qglindexbuffer \
74+ qgllightmodel \
75+ qgllightparameters \
76+- qglmaterial \
77++ # skip this failing test
78++ #qglmaterial \
79+ qglmaterialcollection \
80+ qglpainter \
81+ qglpickcolors \
82+@@ -26,7 +28,8 @@
83+ qglscenenode \
84+ qglsection \
85+ qglsphere \
86+- qglvertexbundle \
87++ # skip this failing test
88++ #qglvertexbundle \
89+ qgraphicstransform3d \
90+ qplane3d \
91+ qray3d \
92+--- a/tests/auto/auto.pro
93++++ b/tests/auto/auto.pro
94+@@ -3,9 +3,10 @@
95+ cmake
96+
97+ qtHaveModule(qml): SUBDIRS += imports
98+-qtHaveModule(qmltest) {
99+- SUBDIRS += qml3d
100+-
101+- !win32 : SUBDIRS += qml3d_visual \
102+- qml3d_cpp
103+-}
104++# skip these failing tests
105++#qtHaveModule(qmltest) {
106++# SUBDIRS += qml3d
107++#
108++# !win32 : SUBDIRS += qml3d_visual \
109++# qml3d_cpp
110++#}
111
112=== modified file 'debian/rules'
113--- debian/rules 2013-12-18 06:58:29 +0000
114+++ debian/rules 2014-01-14 21:31:57 +0000
115@@ -13,7 +13,7 @@
116 dh $@ --fail-missing --parallel --with pkgkde_symbolshelper --dbg-package=qt3d5-dbg
117
118 override_dh_auto_configure:
119- qmake
120+ qmake QT_BUILD_PARTS+=tests
121
122 override_dh_auto_install:
123 dh_auto_install
124@@ -24,6 +24,9 @@
125 # Remove libtool-like files
126 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
127
128+override_dh_auto_test:
129+ xvfb-run -a dh_auto_test -- QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
130+
131 override_dh_builddeb:
132 dh_builddeb -- -Zxz
133

Subscribers

People subscribed via source and target branches