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

Proposed by Santiago Baldassin
Status: Merged
Approved by: Sergio Cazzolato
Approved revision: 99
Merged at revision: 99
Proposed branch: lp:~sbaldassin/autopilot-qt/snapping_autopilot_qt
Merge into: lp:autopilot-qt
Diff against target: 63 lines (+50/-0)
2 files modified
lib/lib.pro (+1/-0)
snapcraft.yaml (+49/-0)
To merge this branch: bzr merge lp:~sbaldassin/autopilot-qt/snapping_autopilot_qt
Reviewer Review Type Date Requested Status
Sergio Cazzolato Approve
Heber Parrucci (community) Approve
Omer Akram (community) Approve
Review via email: mp+309588@code.launchpad.net

Commit message

Snapping autopilot qt

Description of the change

This mp adds the snapcraft.yaml to snap autopilot-qt

Within the yaml a contant sharing slot has been defined so that any snap aiming to use autopilot_qt to allow the introspection, will have to plug to such a slot

To post a comment you must log in.
Revision history for this message
Omer Akram (om26er) wrote :

The build failed for me http://paste.ubuntu.com/23420692/

Project ERROR: Package xpathselect not found <-- this error is of interest.

review: Needs Fixing
Revision history for this message
Omer Akram (om26er) wrote :

the build was successful after your latest changes. I added minor inline comments.

review: Needs Fixing
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

It works and code lgtm. I compiled and tests that in xenial + overlay.

review: Approve
Revision history for this message
Omer Akram (om26er) wrote :

LGTM as well ;)

review: Approve
Revision history for this message
Heber Parrucci (heber013) wrote :

Code LGTM, I was able to generate and install the snap using --devmode. The testability interface was exposed properly in slots section.

review: Approve
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

g++ is needed to compile qt5 in arm64 architecture

review: Needs Fixing
Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

I am getting this warning when I run snapcraft

Use of pull-properties in the schema is deprecated.
Plugins should now implement get_pull_properties
Use of build-properties in the schema is deprecated.
Plugins should now implement get_build_properties
Use of pull-properties in the schema is deprecated.
Plugins should now implement get_pull_properties
Use of build-properties in the schema is deprecated.
Plugins should now implement get_build_properties

review: Needs Fixing
99. By Santiago Baldassin

Adding g++

Revision history for this message
Sergio Cazzolato (sergio-j-cazzolato) wrote :

with g++ as dep the snap can be created in arm64 and amd 64 as well

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lib.pro'
2--- lib/lib.pro 2013-01-14 12:58:15 +0000
3+++ lib/lib.pro 2017-01-17 13:10:43 +0000
4@@ -12,4 +12,5 @@
5 HEADERS = qttestability.h
6
7 target.file = libtestability*
8+
9 INSTALLS += target
10
11=== added file 'snapcraft.yaml'
12--- snapcraft.yaml 1970-01-01 00:00:00 +0000
13+++ snapcraft.yaml 2017-01-17 13:10:43 +0000
14@@ -0,0 +1,49 @@
15+name: autopilot-qt
16+version: 1.4
17+summary: Autopilot QT
18+grade: stable
19+description: |
20+ This project makes Qt applications introspectable by autopilot when started with the -testability flag.
21+ This allows autopilot to test any existing Qt application, without having to rebuild the application
22+ under test.
23+
24+confinement: strict
25+
26+slots:
27+ testability:
28+ content: testability
29+ interface: content
30+ read:
31+ - usr/lib
32+
33+parts:
34+ autopilot-qt5:
35+ plugin: qmake
36+ qt-version: qt5
37+ source: .
38+ build-packages: ['g++', 'debhelper', 'libgl1-mesa-dev', 'libgles2-mesa-dev', 'libqt4-dev', 'libxpathselect-dev', 'mesa-common-dev', 'pkg-config', 'qt4-qmake', 'qt5-qmake', 'qtbase5-dev', 'qtchooser', 'qtdeclarative5-dev', 'xvfb']
39+ stage-packages:
40+ - libxpathselect1.4v5
41+ filesets:
42+ libs:
43+ - usr/lib/*/libxpathselect*
44+ - usr/lib/libautopilot_driver_qt5.so*
45+ - usr/lib/libqttestability*
46+ stage:
47+ - $libs
48+ snap:
49+ - $libs
50+
51+ autopilot-qt4:
52+ plugin: qmake
53+ qt-version: qt4
54+ source: .
55+ build-packages:
56+ - libxpathselect-dev
57+ filesets:
58+ libs:
59+ - usr/lib/libautopilot_driver_qt4.so*
60+ stage:
61+ - $libs
62+ snap:
63+ - $libs

Subscribers

People subscribed via source and target branches