summaryrefslogtreecommitdiff
path: root/snapcraft.yaml
blob: d5a0609aabed5c845c97308be2ff0348de186dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: test-hello-dbus
version: 1
summary: test-hello-dbus summary
description: |
 Test the dbus interface
confinement: strict
grade: devel

slots:
  session-svc:
    interface: dbus
    bus: session
    name: com.canonical.HelloDBusSession
  system-svc:
    interface: dbus
    bus: system
    name: com.canonical.HelloDBusSystem
  system-nosvc:
    interface: dbus
    bus: system
    name: com.canonical.HelloDBusNone

plugs:
  session:
    interface: dbus
    bus: session
    name: com.canonical.HelloDBusSession
  system:
    interface: dbus
    bus: system
    name: com.canonical.HelloDBusSystem
  nosvc:
    interface: dbus
    bus: system
    name: com.canonical.HelloDBusNone

apps:
  dbusd-session:
    command: ./bin/daemon session
    slots:
    - session-svc
  client-session:
    command: ./bin/client session
    plugs:
    - session
  dbusd-system:
    daemon: simple
    command: ./bin/daemon system
    slots:
    - system-svc
  client-system:
    command: ./bin/client system
    plugs:
    - system
  dbusd-nosvc:
    daemon: simple
    command: ./bin/daemon nosvc
    slots:
    - system-nosvc
  client-nosvc:
    command: ./bin/client nosvc
    plugs:
    - system
  test-hello-dbus:
    command: ./bin/sh
    plugs:
    - system
    - session
    - nosvc

parts:
  test-hello-dbus:
    plugin: make
    source: .
    build-packages:
    - libdbus-1-dev
    - libapparmor-dev
  wrapper:
    plugin: dump
    source: files
    after:
    - test-hello-dbus
    stage-packages:
    - libdbus-1-3
    - libapparmor1