On Tue, Apr 25, 2017 at 12:26 PM, Alan Somers <
aso...@freebsd.org> wrote:
> It sounds like you want to use a Kyua configuration variable.
Well... configuration variables are intended for user-facing tunables,
and in this case, it seems Johnny wants a way to tune the tests so
that they can run in two different scenarios: one before installation
and one after installation. This is not something the end user should
be messing around with.
Kyua's own test suite does this so "make check" tests Kyua before
anything is installed (or bypasses any installed files), and "make
installcheck" tests the installed product. The way this works is: the
Kyua code and the self-tests carry the final paths to the installed
files. However, they support "undocumented" internal environment
variables to override the builtin final paths with the temporary paths
to the uninstalled build products. "make check" then just sets those
variables before running "kyua test", which works fine. See
CHECK_ENVIRONMENT in Kyua's own Makefile.am.
--
Julio Merino --
http://julio.meroh.net/