Merge lp:~iahmad/kubuntu-packaging/qtcreator into lp:~kubuntu-packagers/kubuntu-packaging/qtcreator

Proposed by I Ahmad
Status: Merged
Merged at revision: 126
Proposed branch: lp:~iahmad/kubuntu-packaging/qtcreator
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qtcreator
Diff against target: 101 lines (+47/-0) (has conflicts)
5 files modified
debian/changelog (+10/-0)
debian/control (+2/-0)
debian/patches/series (+1/-0)
debian/patches/skip_failing_unit_tests.diff (+28/-0)
debian/rules (+6/-0)
Text conflict in debian/changelog
To merge this branch: bzr merge lp:~iahmad/kubuntu-packaging/qtcreator
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Dmitry Shachnev Needs Fixing
Review via email: mp+215802@code.launchpad.net

Description of the change

Enabled the unit tests while building package and skipped the ones which are failing.

To post a comment you must log in.
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Thanks, nice to have some tests for QtC! I'll try landing this after u-series opens.

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

Thanks for your work! My comments:

- Please build-depend on xauth. Xvfb only recommends xauth, while it is needed for running the tests.
- Please use dh_auto_test instead of make check. This way the tests will be properly skipped when DEB_BUILD_OPTIONS contains nocheck. See other Qt modules for example of how to do that.
- Instead of "cp -r $(CURDIR)/builddir/lib/*/ $(CURDIR)/lib", you can simply export LD_LIBRARY_PATH or QT_PLUGIN_PATH. Again, see other Qt modules.
- There is something weird with the version number in debian/changelog.

review: Needs Fixing
Revision history for this message
I Ahmad (iahmad) wrote :

Thanks for your comments Dmitry, I ll try fixing them but the one about
export LD_LIBRARY_PATH didn't work for me and that's why I adopted this
work around. Could you please try it locally and let me know if it works
for you. So far I tried exporting as well as setting it inline but none of
them work.

Cheers

On Tue, Apr 15, 2014 at 12:51 PM, Dmitry Shachnev <email address hidden> wrote:

> Review: Needs Fixing
>
> Thanks for your work! My comments:
>
> - Please build-depend on xauth. Xvfb only recommends xauth, while it is
> needed for running the tests.
> - Please use dh_auto_test instead of make check. This way the tests will
> be properly skipped when DEB_BUILD_OPTIONS contains nocheck. See other Qt
> modules for example of how to do that.
> - Instead of "cp -r $(CURDIR)/builddir/lib/*/ $(CURDIR)/lib", you can
> simply export LD_LIBRARY_PATH or QT_PLUGIN_PATH. Again, see other Qt
> modules.
> - There is something weird with the version number in debian/changelog.
> --
>
> https://code.launchpad.net/~iahmad/kubuntu-packaging/qtcreator/+merge/215802
> You are the owner of lp:~iahmad/kubuntu-packaging/qtcreator.
>

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

> the one about export LD_LIBRARY_PATH didn't work for me and that's why I adopted this work around.

If you tried and it didn't work, then no problem, and the workaround looks fine.

125. By I Ahmad

Fixing the changelog version and adding xauth dep as per Dmitry review comments

Revision history for this message
I Ahmad (iahmad) wrote :

Fixed the xauth dep and version number. dh_auto_test is and export
LD_LIBRARY_PATH are not working.

On Tue, Apr 15, 2014 at 8:51 PM, Dmitry Shachnev <email address hidden> wrote:

> > the one about export LD_LIBRARY_PATH didn't work for me and that's why I
> adopted this work around.
>
> If you tried and it didn't work, then no problem, and the workaround looks
> fine.
> --
>
> https://code.launchpad.net/~iahmad/kubuntu-packaging/qtcreator/+merge/215802
> You are the owner of lp:~iahmad/kubuntu-packaging/qtcreator.
>

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

Passes at least on x86, merging (and fixing conflicts). Great to have some tests here! It'll need to be checked how is it on armhf, powerpc, ppc64el and arm64 before publishing for real.

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 2014-04-15 07:23:40 +0000
3+++ debian/changelog 2014-04-15 17:22:16 +0000
4@@ -1,3 +1,4 @@
5+<<<<<<< TREE
6 qtcreator (3.0.1-0ubuntu4) trusty; urgency=medium
7
8 [ Zeller Benjamin ]
9@@ -5,6 +6,15 @@
10
11 -- Zoltán Balogh <zoltan@bakter.hu> Wed, 09 Apr 2014 11:23:44 +0300
12
13+=======
14+qtcreator (3.0.1-0ubuntu4) UNRELEASED; urgency=low
15+
16+ * Enable the unit tests during package build.
17+ * Skip failing tests on unix.
18+
19+ -- Iftikhar Ahmad (QA Engineer) <iftikhar.ahmad@canonical.com> Tue, 15 Apr 2014 14:15:00 +0500
20+
21+>>>>>>> MERGE-SOURCE
22 qtcreator (3.0.1-0ubuntu3) trusty; urgency=medium
23
24 * Rebuild against Qt Webkit 5.1.1
25
26=== modified file 'debian/control'
27--- debian/control 2014-04-15 07:23:40 +0000
28+++ debian/control 2014-04-15 17:22:16 +0000
29@@ -40,6 +40,8 @@
30 qttools5-dev-tools (>= 5.2.0~),
31 qttools5-private-dev (>= 5.2.0~),
32 qtxmlpatterns5-dev-tools (>= 5.2.0~),
33+ xauth,
34+ xvfb,
35 Standards-Version: 3.9.3
36 Homepage: http://qt-project.org/
37 Vcs-Browser: http://git.debian.org/?p=collab-maint/qt-creator.git
38
39=== modified file 'debian/patches/series'
40--- debian/patches/series 2014-04-15 07:23:40 +0000
41+++ debian/patches/series 2014-04-15 17:22:16 +0000
42@@ -1,4 +1,5 @@
43 # Debian patches
44+skip_failing_unit_tests.diff
45 02_use_x-terminal-emulator.diff
46 botan_system_lib.diff
47 no-Werror.diff
48
49=== added file 'debian/patches/skip_failing_unit_tests.diff'
50--- debian/patches/skip_failing_unit_tests.diff 1970-01-01 00:00:00 +0000
51+++ debian/patches/skip_failing_unit_tests.diff 2014-04-15 17:22:16 +0000
52@@ -0,0 +1,28 @@
53+Index: qtcreator/tests/auto/auto.pro
54+===================================================================
55+--- qtcreator.orig/tests/auto/auto.pro 2014-04-08 10:18:58.684264000 +0000
56++++ qtcreator/tests/auto/auto.pro 2014-04-08 10:20:30.671316474 +0000
57+@@ -4,9 +4,7 @@
58+ aggregation \
59+ changeset \
60+ cplusplus \
61+- debugger \
62+ diff \
63+- extensionsystem \
64+ environment \
65+ generichighlighter \
66+ profilewriter \
67+@@ -15,8 +13,11 @@
68+ qtcprocess \
69+ utils \
70+ utils_stringutils \
71+- filesearch \
72+- valgrind
73++ filesearch
74++
75++!unix:SUBDIRS += debugger
76++!unix:SUBDIRS += extensionsystem
77++!unix:SUBDIRS += valgrind
78+
79+ #contains (QT_CONFIG, declarative) {
80+ #SUBDIRS += qml
81
82=== modified file 'debian/rules'
83--- debian/rules 2014-04-15 07:23:40 +0000
84+++ debian/rules 2014-04-15 17:22:16 +0000
85@@ -21,6 +21,7 @@
86 export QMAKE_LFLAGS_RELEASE := $(LDFLAGS)
87 export QMAKE_LFLAGS_DEBUG := $(LDFLAGS)
88 export QT_SELECT := qt5
89+export QT_QPA_PLATFORM := minimal
90
91 # Upstream changelog
92 upstream_changes := $(wildcard dist/changes-*)
93@@ -65,3 +66,8 @@
94
95 override_dh_builddeb:
96 dh_builddeb -- -Zxz
97+
98+override_dh_auto_test:
99+ cp -r $(CURDIR)/builddir/lib/*/ $(CURDIR)/lib
100+ cd tests/auto/ && ( test -e Makefile || qmake auto.pro -o Makefile ) && xvfb-run -a make -f Makefile check
101+

Subscribers

People subscribed via source and target branches

to all changes: