[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to run the autoconf generated testsuite with `make installcheck`
Re: How to run the autoconf generated testsuite with `make installcheck`?
Fri, 22 Jun 2018 00:51:57 +0200
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Simon Sobisch <address@hidden> writes:
> While the automake manual mentions the installcheck target it doesn't
> leave a note where to find more information about this.
> I assume this is about something like:
> * adding a installcheck-local target to tests/Makefile.am
> * in this target run the check-local target but set an environment
> variable before
> * in tests/atlocal.in check for this variable and adjust the path of the
> tested binaries to use no path at all (=use the ones found in PATH)
> Is this the correct approach?
> Thank you for providing some experience / best practice about the
> installcheck target,
I don't have much experience with ‘installcheck’ target. I have used it
in GNU Mcron to check the location and basic properties of the installed
I would recommend against running unit tests on the installed program
and reserve it for validation tests. For example verifying that default
paths values are properly set to the installed location which can't be
checked from ‘builddir’.
GPG: F2A3 8D7E EB2B 6640 5761 070D 0ADE E100 9460 4D37
|[Prev in Thread]
||[Next in Thread]|
- Re: How to run the autoconf generated testsuite with `make installcheck`?,
Mathieu Lirzin <=