# Not i386. Ubuntu runs i386 tests in an amd64 testbed, i386 foreign.
# No i386 pkg-config, so meson cannot resolve gstreamer-1.0.
Tests: build-and-test
Depends: @builddeps@
Restrictions: allow-stderr
Architecture: !riscv64 !i386

Test-Command: gst-transcoder-1.0 --help
Depends: gstreamer1.0-plugins-bad-apps
Restrictions: superficial

Tests: libgstreamer-plugins-bad1.0-dev
Depends: build-essential,
         libgstreamer-plugins-bad1.0-dev,
Restrictions: superficial, allow-stderr

# Not i386. amd64 python3-gi cannot load i386 typelibs.
# gir1.2-gst-plugins-extra-1.0 is for GstPlay, moved there by the split.
Tests: gir1.2-gst-plugins-bad-1.0
Depends: gir1.2-gst-plugins-bad-1.0,
         gir1.2-gst-plugins-extra-1.0,
         python3-gi,
Restrictions: superficial
Architecture: !i386

# The tests below guard the Ubuntu -extra split. Each installs one side
# alone where it can, so a file left in, or needing, -bad fails.
Tests: libgstreamer-plugins-extra1.0-dev
Depends: build-essential,
         libgstreamer-plugins-extra1.0-dev,
Restrictions: allow-stderr

# libgstreamer-plugins-extra1.0-dev, not libgstreamer1.0-dev and pkgconf:
# cross testing qualifies only this source's binaries with the host arch,
# so on i386 those two arrived as amd64 and i686-linux-gnu-pkgconf was
# missing. Ours pulls both in for the host arch, and still no -bad.
Tests: gstreamer1.0-plugins-extra
Depends: build-essential,
         gstreamer1.0-plugins-extra,
         libgstreamer-plugins-extra1.0-dev,
Restrictions: allow-stderr

# Not i386. amd64 python3-gi cannot load i386 typelibs.
Tests: gir1.2-gst-plugins-extra-1.0
Depends: gir1.2-gst-plugins-extra-1.0,
         python3-gi,
Architecture: !i386

Tests: plugins-extra-split
Depends: build-essential,
         gir1.2-gst-plugins-bad-1.0,
         gir1.2-gst-plugins-extra-1.0,
         gstreamer1.0-plugins-bad,
         gstreamer1.0-plugins-extra,
         libgstreamer-plugins-bad1.0-dev,
         libgstreamer-plugins-extra1.0-dev,

# NOTE: gstreamer1.0-validate is, at the time of writing, not
# available in Debian. Mark this test as skip-not-installable for now.
Tests: validate
Depends: gstreamer1.0-plugins-bad, gstreamer1.0-validate, xauth, xvfb
Restrictions: superficial, allow-stderr, needs-internet, skip-not-installable
