# autopkgtest

If you're a package maintainer, you can easily have adequate check your
package(s) with autopkgtest.

Example debian/tests/adequate:

---8<---
#!/bin/sh

adequate --fail $(dh_listpackages) >&2
--->8---

Example debian/tests/control snippet:

---8<---
Tests: adequate
Depends: @, adequate, debhelper
Restrictions: superficial
--->8---

Do note that adequate likely does not suffice as the only test in a package's
autopkgtest suite, but that it might serve well as an additional test.

# sbuild

To have sbuild-built binary packages checked by adequate, put this to
$HOME/.sbuildrc:

$external_commands = {
  "chroot-cleanup-commands" => [
    [ 'apt install -y --install-recommends adequate' ],
    [ '/usr/share/doc/adequate/examples/sbuild-hook %SBUILD_PKGBUILD_DIR' ]
  ]
}
