# Check that the binary runs and links correctly.
Tests: smoke
Depends: @
Restrictions: superficial

# Run a private instance (dummy output backend, own config, session bus) in
# classic AirPlay mode and exercise RTSP, D-Bus, MPRIS and the metadata pipe.
Tests: daemon
Depends: @, dbus-bin, dbus-daemon, python3

# As above but forcing AirPlay 2, which requires a running nqptp with a
# matching shared memory interface version (see Breaks: nqptp-smi in
# debian/control). Listing nqptp here also makes nqptp uploads trigger these
# tests, so an incompatible nqptp cannot migrate without being noticed.
Tests: airplay2
Depends: @, nqptp, dbus-bin, dbus-daemon, python3
Restrictions: isolation-container

# Check the installed systemd service: the service user, the runtime
# directory, the system bus policy, the RTSP listener and a restart.
Tests: service
Depends: @, dbus-bin, python3
Restrictions: isolation-container, needs-root

# Check that the installed service is advertised over mDNS. Multicast is not
# reliable in every CI environment, so this test is marked flaky.
Tests: mdns
Depends: @, avahi-utils, dbus-bin
Restrictions: isolation-container, flaky
