[systemd-devel] [PATCH] buildsys: Add --disable-tests to avoid building tests

Lennart Poettering lennart at poettering.net
Wed Apr 17 10:05:37 PDT 2013


On Wed, 17.04.13 18:38, Henrik Grindal Bakken (hgb at ifi.uio.no) wrote:

> 
> Kay Sievers <kay at vrfy.org> writes:
> 
> > On Wed, Apr 17, 2013 at 5:49 PM, Henrik Grindal Bakken <hgb at ifi.uio.no> wrote:
> >> This patch adds --disable-tests to configure.  It is based on a patch
> >> posted by Thierry Reding in 2010.  The motivation for adding it is
> >> that some tests fail link-time when cross-compiling.
> >
> > Can't the tests get its own variables, and we assign these variablse
> > conditionally to the original variables to take effect, instead of
> > nesting even more ifdefs?
> 
> I notice that some tests are added to noinst_PROGRAMS, while others are
> added to noinst_tests.  I'm not sure what the difference between the two
> are.  An alternative (and simpler) patch would be to add all tests to
> noinst_tests (unconditionally), and then add noinst_tests to
> noinst_PROGRAMS only if ENABLE_TESTS is true.

noinst_PROGRAMS is for tests that cannot really be run
automatically during "make check", since they need some kind of
interaction, priviliges and so on. These tests are much less useful, but
for some low level stuff we need this.

noinst_tests otoh is for tests that run during "make check". They are
your classic unit tests...

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list