Tests: copy-file
Restrictions: needs-root, skip-not-installable, superficial, allow-stderr
Depends: linux-image-generic, zstd, @

Tests: unmkinitramfs
Restrictions: superficial
Depends: bzip2, xz-utils, lzop, lz4, zstd, @

Test-Command: ./tests/run-tests
Depends: netplan.io, udev
Restrictions: allow-stderr
Features: test-name=unit-tests

Tests: qemu-klibc
Architecture: amd64 armhf s390x
Restrictions: needs-root
Depends: e2fsprogs,
         genext2fs,
         ipxe-qemu,
         klibc-utils,
         linux-image-generic,
         qemu-efi-arm [armhf],
         qemu-system-native,
         zstd,
         @

Tests: qemu-busybox
Architecture: amd64 armhf s390x
Restrictions: needs-root
Depends: busybox | busybox-initramfs,
         e2fsprogs,
         genext2fs,
         ipxe-qemu,
         klibc-utils,
         linux-image-generic,
         qemu-efi-arm [armhf],
         qemu-system-native,
         zstd,
         @

Tests: qemu-ata-only
Architecture: amd64
Restrictions: needs-root
Depends: e2fsprogs,
         genext2fs,
         klibc-utils,
         linux-image-generic,
         qemu-system-native,
         zstd,
         @

Tests: qemu-virtio-only qemu-separate-usr qemu-panic-shell
Architecture: amd64 arm64 armhf ppc64el s390x
Restrictions: needs-root
Depends: e2fsprogs,
         genext2fs,
         ipxe-qemu,
         klibc-utils,
         linux-image-generic,
         qemu-efi-aarch64 [arm64],
         qemu-efi-arm [armhf],
         qemu-system-native,
         seabios [ppc64el],
         zstd,
         @

Tests: qemu-net
Architecture: amd64 arm64 armhf ppc64el s390x
Restrictions: needs-root
Depends: e2fsprogs,
         genext2fs,
         iproute2,
         ipxe-qemu,
         klibc-utils,
         linux-image-generic,
         procps,
         python3,
         qemu-efi-aarch64 [arm64],
         qemu-efi-arm [armhf],
         qemu-system-native,
         seabios [ppc64el],
         zstd,
         @

Tests: qemu-net-dnsmasq
Architecture: amd64 armhf s390x
Restrictions: needs-root
Depends: e2fsprogs,
         dnsmasq,
         genext2fs,
         iproute2,
         ipxe-qemu,
         klibc-utils,
         linux-image-generic,
         procps,
         python3,
         qemu-efi-arm [armhf],
         qemu-system-native,
         zstd,
         @

# qemu-net-iscsi fails on arm64: https://launchpad.net/bugs/2097568
Tests: qemu-net-iscsi
Architecture: amd64 armhf ppc64el s390x
Restrictions: needs-root
Depends: busybox | busybox-initramfs,
         dnsmasq,
         e2fsprogs,
         genext2fs,
         iproute2,
         ipxe-qemu,
         klibc-utils,
         linux-image-generic,
         open-iscsi,
         procps,
         python3,
         qemu-efi-aarch64 [arm64],
         qemu-efi-arm [armhf],
         qemu-system-native,
         seabios [ppc64el],
         tgt,
         zstd,
         @

# Dummy test so that linux-firmware updates trigger our other autopkgtests
Features: test-name=hint-testsuite-triggers
Test-Command: false
Depends: linux-firmware
Restrictions: hint-testsuite-triggers
