~lukas-kde/qtmir/betterSessionManagement

« back to all changes in this revision

Viewing changes to tests/check-requires-provides.sh

  • Committer: Lukáš Tinkl
  • Date: 2017-03-24 11:51:00 UTC
  • mfrom: (590.1.35 qtmir)
  • Revision ID: lukas.tinkl@canonical.com-20170324115100-n0itqdupc26qe6g6
merge trunk, resolve conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# don't run the test on the gles build
 
4
dummy=`grep "Package: qtmir-desktop" debian/control`
 
5
if [ $? -ne 0 ]; then
 
6
    exit 0
 
7
fi
 
8
 
 
9
requires=`grep unity-shell-application= CMakeLists.txt | sed -E 's/.*=(.*)\)/\1/'`
 
10
provides=`grep unity-application-impl- debian/control | sed -E 's/.*unity-application-impl-(.*),/\1/'`
 
11
if [ "$requires" -eq "$provides" ]; then
 
12
    exit 0
 
13
else
 
14
    echo "Error: We require unity-shell-application=$requires but provide unity-application-impl-$provides"
 
15
    exit 1
 
16
fi