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
=== modified file 'debian/changelog'
--- debian/changelog 2014-04-15 07:23:40 +0000
+++ debian/changelog 2014-04-15 17:22:16 +0000
@@ -1,3 +1,4 @@
1<<<<<<< TREE
1qtcreator (3.0.1-0ubuntu4) trusty; urgency=medium2qtcreator (3.0.1-0ubuntu4) trusty; urgency=medium
23
3 [ Zeller Benjamin ]4 [ Zeller Benjamin ]
@@ -5,6 +6,15 @@
56
6 -- Zoltán Balogh <zoltan@bakter.hu> Wed, 09 Apr 2014 11:23:44 +03007 -- Zoltán Balogh <zoltan@bakter.hu> Wed, 09 Apr 2014 11:23:44 +0300
78
9=======
10qtcreator (3.0.1-0ubuntu4) UNRELEASED; urgency=low
11
12 * Enable the unit tests during package build.
13 * Skip failing tests on unix.
14
15 -- Iftikhar Ahmad (QA Engineer) <iftikhar.ahmad@canonical.com> Tue, 15 Apr 2014 14:15:00 +0500
16
17>>>>>>> MERGE-SOURCE
8qtcreator (3.0.1-0ubuntu3) trusty; urgency=medium18qtcreator (3.0.1-0ubuntu3) trusty; urgency=medium
919
10 * Rebuild against Qt Webkit 5.1.120 * Rebuild against Qt Webkit 5.1.1
1121
=== modified file 'debian/control'
--- debian/control 2014-04-15 07:23:40 +0000
+++ debian/control 2014-04-15 17:22:16 +0000
@@ -40,6 +40,8 @@
40 qttools5-dev-tools (>= 5.2.0~),40 qttools5-dev-tools (>= 5.2.0~),
41 qttools5-private-dev (>= 5.2.0~),41 qttools5-private-dev (>= 5.2.0~),
42 qtxmlpatterns5-dev-tools (>= 5.2.0~),42 qtxmlpatterns5-dev-tools (>= 5.2.0~),
43 xauth,
44 xvfb,
43Standards-Version: 3.9.345Standards-Version: 3.9.3
44Homepage: http://qt-project.org/46Homepage: http://qt-project.org/
45Vcs-Browser: http://git.debian.org/?p=collab-maint/qt-creator.git47Vcs-Browser: http://git.debian.org/?p=collab-maint/qt-creator.git
4648
=== modified file 'debian/patches/series'
--- debian/patches/series 2014-04-15 07:23:40 +0000
+++ debian/patches/series 2014-04-15 17:22:16 +0000
@@ -1,4 +1,5 @@
1# Debian patches1# Debian patches
2skip_failing_unit_tests.diff
202_use_x-terminal-emulator.diff302_use_x-terminal-emulator.diff
3botan_system_lib.diff4botan_system_lib.diff
4no-Werror.diff5no-Werror.diff
56
=== added file 'debian/patches/skip_failing_unit_tests.diff'
--- debian/patches/skip_failing_unit_tests.diff 1970-01-01 00:00:00 +0000
+++ debian/patches/skip_failing_unit_tests.diff 2014-04-15 17:22:16 +0000
@@ -0,0 +1,28 @@
1Index: qtcreator/tests/auto/auto.pro
2===================================================================
3--- qtcreator.orig/tests/auto/auto.pro 2014-04-08 10:18:58.684264000 +0000
4+++ qtcreator/tests/auto/auto.pro 2014-04-08 10:20:30.671316474 +0000
5@@ -4,9 +4,7 @@
6 aggregation \
7 changeset \
8 cplusplus \
9- debugger \
10 diff \
11- extensionsystem \
12 environment \
13 generichighlighter \
14 profilewriter \
15@@ -15,8 +13,11 @@
16 qtcprocess \
17 utils \
18 utils_stringutils \
19- filesearch \
20- valgrind
21+ filesearch
22+
23+!unix:SUBDIRS += debugger
24+!unix:SUBDIRS += extensionsystem
25+!unix:SUBDIRS += valgrind
26
27 #contains (QT_CONFIG, declarative) {
28 #SUBDIRS += qml
029
=== modified file 'debian/rules'
--- debian/rules 2014-04-15 07:23:40 +0000
+++ debian/rules 2014-04-15 17:22:16 +0000
@@ -21,6 +21,7 @@
21export QMAKE_LFLAGS_RELEASE := $(LDFLAGS)21export QMAKE_LFLAGS_RELEASE := $(LDFLAGS)
22export QMAKE_LFLAGS_DEBUG := $(LDFLAGS)22export QMAKE_LFLAGS_DEBUG := $(LDFLAGS)
23export QT_SELECT := qt523export QT_SELECT := qt5
24export QT_QPA_PLATFORM := minimal
2425
25# Upstream changelog26# Upstream changelog
26upstream_changes := $(wildcard dist/changes-*)27upstream_changes := $(wildcard dist/changes-*)
@@ -65,3 +66,8 @@
6566
66override_dh_builddeb:67override_dh_builddeb:
67 dh_builddeb -- -Zxz68 dh_builddeb -- -Zxz
69
70override_dh_auto_test:
71 cp -r $(CURDIR)/builddir/lib/*/ $(CURDIR)/lib
72 cd tests/auto/ && ( test -e Makefile || qmake auto.pro -o Makefile ) && xvfb-run -a make -f Makefile check
73

Subscribers

People subscribed via source and target branches

to all changes: