Re: Adding autopkgtests to GNU packages
Hi!
On Thu, 2024-11-28 at 09:30:15 -0300, Santiago Ruano Rincón wrote:
> This is what grep does [0]:
>
> #!/bin/sh
> set -e
>
> export DEB_BUILD_PROFILES="nocheck nodoc" DEB_BUILD_OPTIONS="nocheck nodoc"
>
> dpkg-source --before-build `pwd`
Nit: I'd probably use «$(pwd)» here, or perhaps simply «.». :)
> dpkg-buildpackage -rfakeroot --target=clean
> dpkg-buildpackage -rfakeroot --target=build
You should not need to pass -rfakeroot, which has been the default,
if available, since dpkg 1.14.7 (from 2007-10).
> make -C tests check-am
Is this really testing the installed executables? The convention is
for the «check» target to use the built binaries for the tests. If you
had only configured the package (instead of a full build), and the test
suite would not hardcode program pathnames, then I assume that might
implicitly test the installed binaries, but the above looks like might
not be doing what is expected?
Thanks,
Guillem
Reply to: