Hi! [ Perhaps you already managed to solve this, but just in case. :) ]
On Thu, 2024-11-28 at 12:43:05 +0100, Santiago Vila wrote: > 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). With autotools, there is infrastructure for running the test suite but using the installed binaries in the form of the «installcheck» target. This might need explicit support in the build system, so you'd need to check whether that is the case for each of these upstreams. If it is not, then you could perhaps either ask upstream to add it or provide a patch (it should in general not be be complicated). See for example in dpkg, the upstream part in the files: src/Makefile.am (installcheck-local) build-aux/autotest.am (autotest-installcheck) And the autopkgtest usage in for example: debian/tests/test-not-root Thanks, Guillem