Test-Command: d="$AUTOPKGTEST_TMP/check" &&
  install -m0755 -d "$d" &&
  debian/tests/build-tests "$d" &&
  make -C "$d" check
Depends: @builddeps@
Restrictions: allow-stderr
Features: test-name=check

# NOTE: By default `make longcheck` doesn't exit with a non-zero code
# upon failing tests.  This is changed with d/p/longcheck-nofail.patch
Test-Command: d="$AUTOPKGTEST_TMP/longcheck" &&
 service unbound stop &&
 sed -ri 's/@SECLEVEL=[0-9]+/@SECLEVEL=0/' /etc/ssl/openssl.cnf &&
 install -o "$AUTOPKGTEST_NORMAL_USER" -m0755 -d "$d" &&
 runuser -u "$AUTOPKGTEST_NORMAL_USER" -- debian/tests/build-tests "$d" &&
 runuser -u "$AUTOPKGTEST_NORMAL_USER" -- make -C "$d" tests &&
 make -C "$d" longcheck
Depends: @builddeps@,
         dnscrypt-proxy,
         dnsutils,
         ldnsutils,
         netcat-openbsd,
         unbound,
         xxd
# We don't use `Restrictions: build-needed` because that does several
# builds and patches are unapplied afterwards (before running
# Test-Command), so everything needs be built again anyway
Restrictions: allow-stderr,
              isolation-container,
              needs-internet,
              needs-root
Features: test-name=longcheck
