Merge lp:~aacid/qtmir/provide_what_we_require into lp:qtmir

Proposed by Albert Astals Cid
Status: Merged
Approved by: Lukáš Tinkl
Approved revision: 601
Merged at revision: 603
Proposed branch: lp:~aacid/qtmir/provide_what_we_require
Merge into: lp:qtmir
Prerequisite: lp:~aacid/qtmir/updated_application_impl_provides
Diff against target: 34 lines (+22/-0)
2 files modified
tests/CMakeLists.txt (+6/-0)
tests/check-requires-provides.sh (+16/-0)
To merge this branch: bzr merge lp:~aacid/qtmir/provide_what_we_require
Reviewer Review Type Date Requested Status
Lukáš Tinkl (community) Approve
Unity8 CI Bot (community) continuous-integration Approve
Gerry Boland (community) Approve
Review via email: mp+316673@code.launchpad.net

Commit message

Check we provide the same unity-application-impl that we require

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No, but you need prereq for the test not to fail

 * Did you perform an exploratory manual test run of your code change and any related functionality?
N/A

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

Nice

review: Approve
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

Doesn't quite work, https://launchpadlibrarian.net/305610031/buildlog_ubuntu-xenial-amd64.qtmir-gles_0.5.1+16.04.20170208-0ubuntu1_BUILDING.txt.gz

/<<BUILDDIR>>/qtmir-gles-0.5.1+16.04.20170208/tests/check-requires-provides.sh: line 5: [: : integer expression expected
Error: We require unity-shell-application=26 but only provide unity-application-impl-

review: Needs Fixing
Revision history for this message
Michał Sawicz (saviq) :
599. By Albert Astals Cid

Skip the test for the gles build

600. By Albert Astals Cid

-only

601. By Albert Astals Cid

Fix the workaround for -gles

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:601
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/482/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/4051
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/4079
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3916
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3916/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3916
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3916/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3916
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3916/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3916
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3916/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3916
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3916/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3916
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3916/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-qtmir-ci/482/rebuild

review: Approve (continuous-integration)
Revision history for this message
Lukáš Tinkl (lukas-kde) wrote :

Yup, me and CI happy now

* Did you perform an exploratory manual test run of the code change and any related functionality?

Yes

* Did CI run pass? If not, please explain why.

Yes

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/CMakeLists.txt'
2--- tests/CMakeLists.txt 2017-01-18 21:31:58 +0000
3+++ tests/CMakeLists.txt 2017-02-08 15:52:26 +0000
4@@ -11,3 +11,9 @@
5 COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/convert-to-gles.sh
6 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
7 )
8+
9+add_test(
10+ NAME requires-provides
11+ COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/check-requires-provides.sh
12+ WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
13+)
14
15=== added file 'tests/check-requires-provides.sh'
16--- tests/check-requires-provides.sh 1970-01-01 00:00:00 +0000
17+++ tests/check-requires-provides.sh 2017-02-08 15:52:26 +0000
18@@ -0,0 +1,16 @@
19+#!/bin/bash
20+
21+# don't run the test on the gles build
22+dummy=`grep "Package: qtmir-desktop" debian/control`
23+if [ $? -ne 0 ]; then
24+ exit 0
25+fi
26+
27+requires=`grep unity-shell-application= CMakeLists.txt | sed -E 's/.*=(.*)\)/\1/'`
28+provides=`grep unity-application-impl- debian/control | sed -E 's/.*unity-application-impl-(.*),/\1/'`
29+if [ "$requires" -eq "$provides" ]; then
30+ exit 0
31+else
32+ echo "Error: We require unity-shell-application=$requires but provide unity-application-impl-$provides"
33+ exit 1
34+fi

Subscribers

People subscribed via source and target branches