[PATCH] Only build tests when unit tests are enabled.

Gaetan Nadon memsize at videotron.ca
Tue Mar 22 06:42:01 PDT 2011


On Tue, 2011-03-22 at 05:39 -0700, Dan Nicholson wrote:

> Not that it matters too much, but you just need to wrap the *_PROGRAMS
> declaration to get automake to not output the toplevel rules. I do
> notice here the TESTS = $(noinst_PROGRAMS) line. If check_PROGRAMS is
> used instead, then the programs are only built on "make check". Not
> sure that's the intention or not.
> 

I had not paid too much attention too that, I used libxkbcommon as a
model.
So it is the "check_PROGRAMS" that delays building until "make check".
I think Peter wants it to be build all the time. Not sure why.

If it is to ensure the test programs compiles, this could be addressed
in the build where it can invoke 'make clean install check'.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110322/a8c3a270/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110322/a8c3a270/attachment.pgp>


More information about the xorg-devel mailing list