Hey tocayo,

El 28/11/24 a las 12:43, Santiago Vila escribió:
> Dear mentors:
> 
> Many GNU packages have built-in tests that test the just-built programs.
> 
> Is there a general procedure/trick/idiom to modify them so that they test
> the installed version instead? (so that they can be reused with minimal
> changes).
> 
> (I'd like to do this for several packages without reinventing the wheel).

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`
    dpkg-buildpackage -rfakeroot --target=clean
    dpkg-buildpackage -rfakeroot --target=build

    make -C tests check-am

[0] 
https://salsa.debian.org/debian/grep/-/blob/9f6e70143249f6c92fb7158a74d288332e132df4/debian/tests/upstream-test-suite

HTH,

 -- Santiago

Attachment: signature.asc
Description: PGP signature

Reply via email to