Lintian tag information: override_dh_auto_test-does-not-check-DEB_BUILD_OPTIONS (type: information)

Description (from lintian-explain-tags)

The debian/rules file for this package has an override_dh_auto_test target
that does not appear to check DEB_BUILD_OPTIONS against nocheck.

As this check is not automatically performed by debhelper(1), the
specified testsuite is run regardless of another maintainer using the
nocheck build option.

Please add a check such as:

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
./run-upstream-testsuite
endif

Lintian will ignore comments and other lines such as:

# Disabled
: Disabled
echo "Disabled"
mkdir foo/
ENV=var dh_auto_test -- ARG=value

This check is not required in Debhelper compat level 13 or greater (see
Bug#568897).

Please refer to debian/rules and DEB_BUILD_OPTIONS (Section 4.9.1) in the
Debian Policy Manual and
https://wiki.debian.org/BuildProfileSpec#Registered_profile_names for
details.

Visibility: info
Show-Always: no
Check: debian/rules

Show affected packages