Merge lp:~chris.gagnon/kubuntu-packaging/qtpim-opensource-src-fix-headers-in-tests into lp:~kubuntu-packagers/kubuntu-packaging/qtpim-opensource-src

Proposed by Chris Gagnon
Status: Merged
Merged at revision: 32
Proposed branch: lp:~chris.gagnon/kubuntu-packaging/qtpim-opensource-src-fix-headers-in-tests
Merge into: lp:~kubuntu-packagers/kubuntu-packaging/qtpim-opensource-src
Diff against target: 77 lines (+43/-4)
3 files modified
debian/patches/fix_5.2_test_headers.patch (+41/-0)
debian/patches/series (+1/-0)
debian/rules (+1/-4)
To merge this branch: bzr merge lp:~chris.gagnon/kubuntu-packaging/qtpim-opensource-src-fix-headers-in-tests
Reviewer Review Type Date Requested Status
Timo Jyrinki Approve
Review via email: mp+201971@code.launchpad.net

Commit message

fix headers in tests so they build and run

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

Seems to fix the tests properly: https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-daily/+sourcepub/3830468/+listing-archive-extra

It's still a problem these patches are needed, but at least passing the tests makes it more comfortable to trust Qt PIM again.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'debian/patches/fix_5.2_test_headers.patch'
2--- debian/patches/fix_5.2_test_headers.patch 1970-01-01 00:00:00 +0000
3+++ debian/patches/fix_5.2_test_headers.patch 2014-01-16 17:42:32 +0000
4@@ -0,0 +1,41 @@
5+Index: qtpim-opensource-src-5.0~git20130828/tests/auto/versit/qversitcontactimporter/tst_qversitcontactimporter.cpp
6+===================================================================
7+--- qtpim-opensource-src-5.0~git20130828.orig/tests/auto/versit/qversitcontactimporter/tst_qversitcontactimporter.cpp 2013-08-22 15:36:13.000000000 +0000
8++++ qtpim-opensource-src-5.0~git20130828/tests/auto/versit/qversitcontactimporter/tst_qversitcontactimporter.cpp 2014-01-16 16:07:32.370873000 +0000
9+@@ -43,7 +43,7 @@
10+
11+ #include "tst_qversitcontactimporter.h"
12+ #include <qversitcontactimporter.h>
13+-#include <private/qversitcontactimporter_p.h>
14++#include <../../../../src/versit/qversitcontactimporter_p.h>
15+ #include <qversitproperty.h>
16+ #include <qversitdocument.h>
17+ #include <qcontacts.h>
18+Index: qtpim-opensource-src-5.0~git20130828/tests/auto/versit/qversitproperty/tst_qversitproperty.cpp
19+===================================================================
20+--- qtpim-opensource-src-5.0~git20130828.orig/tests/auto/versit/qversitproperty/tst_qversitproperty.cpp 2013-08-22 15:36:13.000000000 +0000
21++++ qtpim-opensource-src-5.0~git20130828/tests/auto/versit/qversitproperty/tst_qversitproperty.cpp 2014-01-16 16:10:15.710873000 +0000
22+@@ -43,7 +43,7 @@
23+
24+ #include "tst_qversitproperty.h"
25+ #include <qversitproperty.h>
26+-#include <private/qversitproperty_p.h>
27++#include <../../../../src/versit/qversitproperty_p.h>
28+ #include <qversitdocument.h>
29+ #include <QtTest/QtTest>
30+
31+Index: qtpim-opensource-src-5.0~git20130828/tests/auto/versit/qversitreader/tst_qversitreader.cpp
32+===================================================================
33+--- qtpim-opensource-src-5.0~git20130828.orig/tests/auto/versit/qversitreader/tst_qversitreader.cpp 2013-08-22 15:36:13.000000000 +0000
34++++ qtpim-opensource-src-5.0~git20130828/tests/auto/versit/qversitreader/tst_qversitreader.cpp 2014-01-16 16:11:57.918873000 +0000
35+@@ -43,8 +43,8 @@
36+
37+ #include "tst_qversitreader.h"
38+ #include <qversitproperty.h>
39+-#include <private/qversitreader_p.h>
40+-#include <private/qversitutils_p.h>
41++#include <../../../../src/versit/qversitreader_p.h>
42++#include <../../../../src/versit/qversitutils_p.h>
43+ #include <QtTest/QtTest>
44+ #include <QSignalSpy>
45+
46
47=== modified file 'debian/patches/series'
48--- debian/patches/series 2013-12-18 13:10:03 +0000
49+++ debian/patches/series 2014-01-16 17:42:32 +0000
50@@ -4,3 +4,4 @@
51 0001-Update-QDeclarativeContact-contactId-field-after-cre.patch
52 syncqt_create_headers.patch
53 fix_headers_building_against_qt52.patch
54+fix_5.2_test_headers.patch
55
56=== modified file 'debian/rules'
57--- debian/rules 2014-01-15 06:17:11 +0000
58+++ debian/rules 2014-01-16 17:42:32 +0000
59@@ -18,8 +18,6 @@
60 rm -f qml/*/*.so
61
62 override_dh_auto_configure:
63- # Disabled until qtpim is properly fixed again
64- rm -rf tests
65 qmake QT_BUILD_PARTS+=tests
66
67 override_dh_auto_install:
68@@ -30,8 +28,7 @@
69 rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/qt5/plugins/organizer/libqtorganizer_skeleton.so
70
71 override_dh_auto_test:
72- # Disabled until qtpim is properly fixed again
73- #xvfb-run -a make check QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
74+ xvfb-run -a make check QT_PLUGIN_PATH=$(CURDIR)/plugins LD_LIBRARY_PATH=$(CURDIR)/lib
75
76 override_dh_builddeb:
77 dh_builddeb -- -Zxz

Subscribers

People subscribed via source and target branches