[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#976669: lintian: please warn about autopkgtests that test rebuilt source, not as-installed, where possible



On Wed, 23 Dec 2020, Andrius Merkys wrote:

> false-positives. Even dh_auto_configure appears to be used legitimately

dh_auto_configure is the one I’d expect to be used (with autotools).

dh_auto_build is the one that raises red flags, and for *some*
buildsystems dh_auto_test invokes a make/maven/whatever target
that implies build if it was not built before. These uses, when
it can be done reliably, should also flag.

Examples for dh_auto_test:

• Many Makefiles for autotools-using packages contain lines like:

	check: all

  If this is present, it should warn. But since this is not present
  everywhere, we can probably not warn due to too many false positives.

• With Maven, calling “mvn test” will *always* build the source
  if it was not already built and test the just-compiled sources.
  Here we CAN reliably flag.

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

*************************************************

Mit unserem Consulting bieten wir Unternehmen maßgeschneiderte Angebote in
Form von Beratung, Trainings sowie Workshops in den Bereichen
Softwaretechnologie, IT Strategie und Architektur, Innovation und Umsetzung
sowie Agile Organisation.

Besuchen Sie uns auf https://www.tarent.de/consulting .
Wir freuen uns auf Ihren Kontakt.

*************************************************


Reply to: