Merge lp:~sbaldassin/autopilot-qt/removing_qt4 into lp:autopilot-qt

Proposed by Santiago Baldassin
Status: Needs review
Proposed branch: lp:~sbaldassin/autopilot-qt/removing_qt4
Merge into: lp:autopilot-qt
Diff against target: 118 lines (+7/-33)
3 files modified
debian/control (+3/-21)
debian/rules (+0/-8)
tests/unittests/tst_introspection.cpp (+4/-4)
To merge this branch: bzr merge lp:~sbaldassin/autopilot-qt/removing_qt4
Reviewer Review Type Date Requested Status
Autopilot Hackers Pending
Review via email: mp+314871@code.launchpad.net

Commit message

This mp removes qt4 deps from autopilot-qt

Description of the change

This mp removes qt4 deps from autopilot-qt

To post a comment you must log in.

Unmerged revisions

95. By Santiago Baldassin

Removing Qt4 deps

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/control'
--- debian/control 2015-08-24 16:09:33 +0000
+++ debian/control 2017-01-16 19:34:26 +0000
@@ -5,11 +5,9 @@
5Build-Depends: debhelper (>= 9),5Build-Depends: debhelper (>= 9),
6 libgl1-mesa-dev,6 libgl1-mesa-dev,
7 libgles2-mesa-dev,7 libgles2-mesa-dev,
8 libqt4-dev,
9 libxpathselect-dev (>= 1.4),8 libxpathselect-dev (>= 1.4),
10 mesa-common-dev,9 mesa-common-dev,
11 pkg-config,10 pkg-config,
12 qt4-qmake,
13 qt5-qmake,11 qt5-qmake,
14 qtbase5-dev,12 qtbase5-dev,
15 qtchooser,13 qtchooser,
@@ -27,8 +25,7 @@
27Package: libautopilot-qt25Package: libautopilot-qt
28Section: libs26Section: libs
29Architecture: any27Architecture: any
30Depends: autopilot-qt4,28Depends: autopilot-qt5,
31 autopilot-qt5,
32 qttestability-autopilot,29 qttestability-autopilot,
33 ${misc:Depends},30 ${misc:Depends},
34 ${shlibs:Depends},31 ${shlibs:Depends},
@@ -36,22 +33,7 @@
36 autopilot-qt allows autopilot to test any existing Qt application, without33 autopilot-qt allows autopilot to test any existing Qt application, without
37 having to rebuild the application under test.34 having to rebuild the application under test.
38 .35 .
39 This is a compatibility package depending on both the Qt4 and Qt5 drivers.36 This is a compatibility package depending on Qt5 drivers.
40
41Package: autopilot-qt4
42Section: libs
43Architecture: any
44Depends: ${misc:Depends},
45 ${shlibs:Depends},
46Replaces: autopilot-qt, libautopilot-qt (<< 1.4+14.10.20140724.1-0ubuntu2)
47Conflicts: autopilot-qt
48Breaks: libautopilot-qt (<< 1.4+14.10.20140724.1-0ubuntu2)
49Provides: autopilot-qt
50Description: make Qt applications introspectable by autopilot - Qt4 plugin
51 autopilot-qt allows autopilot to test any existing Qt application, without
52 having to rebuild the application under test.
53 .
54 This package provides the driver used for packages built against Qt4.
5537
56Package: autopilot-qt538Package: autopilot-qt5
57Section: libs39Section: libs
@@ -70,7 +52,7 @@
70Section: libs52Section: libs
71Architecture: any53Architecture: any
72Depends: python3-autopilot (>= 1.4),54Depends: python3-autopilot (>= 1.4),
73 autopilot-qt5 | autopilot-qt455 autopilot-qt5
74 ${misc:Depends},56 ${misc:Depends},
75 ${shlibs:Depends}57 ${shlibs:Depends}
76Replaces: libautopilot-qt (<< 1.4+14.10.20140724.1-0ubuntu2)58Replaces: libautopilot-qt (<< 1.4+14.10.20140724.1-0ubuntu2)
7759
=== modified file 'debian/rules'
--- debian/rules 2014-08-03 03:02:18 +0000
+++ debian/rules 2017-01-16 19:34:26 +0000
@@ -6,29 +6,21 @@
6 dh $@6 dh $@
77
8override_dh_auto_configure:8override_dh_auto_configure:
9 mkdir qt4
10 mkdir qt59 mkdir qt5
11 cd qt4 && \
12 qmake -qt=qt4 QMAKE_CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
13 QMAKE_CXXFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
14 QMAKE_LFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" ../autopilot-qt.pro
15 cd qt5 && \10 cd qt5 && \
16 qmake -qt=qt5 QMAKE_CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \11 qmake -qt=qt5 QMAKE_CFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
17 QMAKE_CXXFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \12 QMAKE_CXXFLAGS="$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)" \
18 QMAKE_LFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" ../autopilot-qt.pro13 QMAKE_LFLAGS="$(shell dpkg-buildflags --get LDFLAGS)" ../autopilot-qt.pro
1914
20override_dh_auto_build:15override_dh_auto_build:
21 cd qt4 && make
22 cd qt5 && make16 cd qt5 && make
2317
24override_dh_clean:18override_dh_clean:
25 dh_clean19 dh_clean
26 rm -rf qt4
27 rm -rf qt520 rm -rf qt5
2821
29override_dh_install:22override_dh_install:
30 dh_install --fail-missing23 dh_install --fail-missing
3124
32override_dh_auto_test:25override_dh_auto_test:
33 cd qt4 && xvfb-run -a make check
34 cd qt5 && xvfb-run -a make check26 cd qt5 && xvfb-run -a make check
3527
=== modified file 'tests/unittests/tst_introspection.cpp'
--- tests/unittests/tst_introspection.cpp 2015-08-24 23:54:49 +0000
+++ tests/unittests/tst_introspection.cpp 2017-01-16 19:34:26 +0000
@@ -112,8 +112,8 @@
112 )112 )
113 );113 );
114114
115 QTest::newRow("//QWidget[id=8]")115 QTest::newRow("//QWidget[id=7]")
116 << "//QWidget[id=8]"116 << "//QWidget[id=7]"
117 << 1117 << 1
118 << "/tst_introspection/QMainWindow/QWidget"118 << "/tst_introspection/QMainWindow/QWidget"
119 << "objectName"119 << "objectName"
@@ -123,8 +123,8 @@
123 << "centralTestWidget"123 << "centralTestWidget"
124 );124 );
125125
126 QTest::newRow("//QPushButton[id=11]")126 QTest::newRow("//QPushButton[id=10]")
127 << "//QPushButton[id=11]"127 << "//QPushButton[id=10]"
128 << 1128 << 1
129 << "/tst_introspection/QMainWindow/QWidget/QPushButton"129 << "/tst_introspection/QMainWindow/QWidget/QPushButton"
130 << "objectName"130 << "objectName"

Subscribers

People subscribed via source and target branches