File: main.fmf

package info (click to toggle)
python-dbusmock 0.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 812 kB
  • sloc: python: 7,324; sh: 73; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
summary: smoke test
duration: 1m
require:
  - python3-dbusmock
test: |
  set -eux -o pipefail
  python3 -m dbusmock com.example.Foo / com.example.Foo.Manager &
  MOCK=$!
  trap "kill $MOCK; wait $MOCK || true" EXIT INT QUIT PIPE

  until busctl list --user | grep -q com.example.Foo; do sleep 0.5; done

  busctl call --user com.example.Foo / org.freedesktop.DBus.Mock AddMethod sssss '' 'Ping' '' '' ''
  busctl introspect --user com.example.Foo / com.example.Foo.Manager | grep Ping