~jocave/snapcraft/plainbox-provider-plugin

« back to all changes in this revision

Viewing changes to integration-tests/units/jobs.pxu

  • Committer: Snappy Tarmac
  • Author(s): Michael Terry
  • Date: 2015-08-04 20:51:17 UTC
  • mfrom: (109.1.10 arch-fixes)
  • Revision ID: snappy_tarmac-20150804205117-5zi5d5u3le5n4ti0
Include the multiarch triplet to LD_LIBRARY_PATH and set the 'architecture' key in package.yaml if not present for the user. by mterry approved by rsalveti

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    cp -rT $PLAINBOX_PROVIDER_DATA/assemble .
37
37
    echo "snappy-metadata: snappy" >> snapcraft.yaml
38
38
    ${SNAPCRAFT} assemble
 
39
    test -e "assemble_1.0_$(dpkg-architecture -qDEB_BUILD_ARCH).snap"
 
40
    sed -i "s/@ARCH@/$(dpkg-architecture -qDEB_BUILD_ARCH)/g" package.yaml.after
39
41
    diff -u package.yaml.after snap/meta/package.yaml
 
42
    sed -i "s/@MULTIARCH@/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/g" binary1.after
 
43
    diff -u binary1.after snap/binary1.wrapper
40
44
    export SNAP_APP_PATH=`pwd`/snap
41
45
    test "$(./snap/service-start.wrapper)" = "service-start"
42
46
    test "$(./snap/service-stop.wrapper)" = "service-stop"