Merge lp:~iahmad/kubuntu-packaging/enable-unit-tests into lp:~kubuntu-packagers/kubuntu-packaging/qtsensors-opensource-src

Proposed by I Ahmad
Status: Merged
Merged at revision: 48
Proposed branch: lp:~iahmad/kubuntu-packaging/enable-unit-tests
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qtsensors-opensource-src
Diff against target: 77 lines (+24/-5)
4 files modified
debian/changelog (+6/-2)
debian/patches/enable-make-check.patch (+13/-0)
debian/patches/series (+1/-0)
debian/rules (+4/-3)
To merge this branch: bzr merge lp:~iahmad/kubuntu-packaging/enable-unit-tests
Reviewer Review Type Date Requested Status
Dmitry Shachnev Abstain
Timo Jyrinki Pending
Review via email: mp+198382@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

- xvfb-run -a dh_auto_test -- QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
+ cd tests/auto/ && ( test -e Makefile || qmake auto.pro -o Makefile ) && xvfb-run -a make -f Makefile check

Any reason why you did that?

That dh_auto_test was there for purpose, i.e. it will make sure tests are skipped when building with DEB_BUILD_OPTIONS=nocheck.

I think the previous command should work fine here.

P.S. Also, the failing tests should be fixed, not skipped :)

Revision history for this message
Dmitry Shachnev (mitya57) :
review: Abstain

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-10 07:24:37 +0000
3+++ debian/changelog 2013-12-10 12:50:09 +0000
4@@ -1,10 +1,14 @@
5-qtsensors-opensource-src (5.2.0~rc1+dfsg-0ubuntu1) UNRELEASED; urgency=low
6+qtsensors-opensource-src (5.2.0~rc1+dfsg-0ubuntu2) UNRELEASED; urgency=low
7
8+ [ Timo Jyrinki ]
9 * New upstream version
10 * Reduce delta to Debian by dropping private headers too
11 * Re-enable tests
12
13- -- Timo Jyrinki <timo-jyrinki@ubuntu.com> Tue, 03 Dec 2013 10:33:09 +0000
14+ [ Iftikhar Ahmad (QA Engineer) ]
15+ * Enabled the unit tests and skipped the failing ones.
16+
17+ -- Iftikhar Ahmad (QA Engineer) <iftikhar.ahmad@canonical.com> Tue, 10 Dec 2013 17:01:20 +0500
18
19 qtsensors-opensource-src (5.1.1+dfsg-2ubuntu2) trusty; urgency=low
20
21
22=== added directory 'debian/patches'
23=== added file 'debian/patches/enable-make-check.patch'
24--- debian/patches/enable-make-check.patch 1970-01-01 00:00:00 +0000
25+++ debian/patches/enable-make-check.patch 2013-12-10 12:50:09 +0000
26@@ -0,0 +1,13 @@
27+--- a/tests/auto/auto.pro
28++++ b/tests/auto/auto.pro
29+@@ -5,8 +5,8 @@ SUBDIRS += sensors2qmlapi
30+ #SUBDIRS += legacy_sensors
31+ SUBDIRS += qtsensors5
32+ SUBDIRS += qsensorgestures
33+-SUBDIRS += qsensorgestureplugins
34++!unix:SUBDIRS += qsensorgestureplugins
35+ SUBDIRS += cmake
36+
37+-!mac:!win32:SUBDIRS += qsensorgestures_gestures
38++!mac:!win32:!unix:SUBDIRS += qsensorgestures_gestures
39+
40
41=== added file 'debian/patches/series'
42--- debian/patches/series 1970-01-01 00:00:00 +0000
43+++ debian/patches/series 2013-12-10 12:50:09 +0000
44@@ -0,0 +1,1 @@
45+enable-make-check.patch
46
47=== modified file 'debian/rules'
48--- debian/rules 2013-12-10 06:58:33 +0000
49+++ debian/rules 2013-12-10 12:50:09 +0000
50@@ -7,6 +7,7 @@
51 export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
52 export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
53 export QT_SELECT := qt5
54+export QT_QPA_PLATFORM := minimal
55
56 %:
57 dh $@ --parallel --with pkgkde_symbolshelper --dbg-package=qtsensors5-dbg
58@@ -14,9 +15,6 @@
59 override_dh_auto_configure:
60 qmake "CONFIG+=debug" QT_BUILD_PARTS+=tests
61
62-override_dh_auto_test:
63- xvfb-run -a dh_auto_test -- QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
64-
65 override_dh_auto_install:
66 dh_auto_install
67
68@@ -39,6 +37,9 @@
69 override_dh_builddeb:
70 dh_builddeb -- -Zxz
71
72+override_dh_auto_test:
73+ cd tests/auto/ && ( test -e Makefile || qmake auto.pro -o Makefile ) && xvfb-run -a make -f Makefile check
74+
75 prune-nonfree:
76 # Remove minified jquery without source.
77 rm -fv doc/config/scripts/jquery.js

Subscribers

People subscribed via source and target branches

to all changes: