Package: lintian
Version: 2.16.0
Severity: wishlist

A number of packages run cmd --version/--help in their autopkgtests.
This test doesn't really test the functionality of the command, just of the 
command-line and options parsing. autopkgtest has an option called superficial 
for the Restrictions field that can be used to mark a test as not really 
exercising any real functionality. Trivial tests like running a command with 
the --version or --help options should be marked as superficial. Please add a 
lintian warning when a test runs either a command from $PATH or a test script 
with just a --help or --version argument but has not marked the test as 
superficial. There are probably a number of different ways to write a 
superficial that are harder to detect (like the one in uhubctl), but those will 
require manual review.

https://codesearch.debian.net/search?q=path%3Adebian%2Ftests%2Fcontrol+--%28version%7Chelp%29
https://salsa.debian.org/ci-team/autopkgtest/blob/master/doc/README.package-tests.rst#L302
https://codesearch.debian.net/search?q=path%3Adebian%2Ftests%2F+--%28version%7Chelp%29

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to