[PATCH wayland] Makefile: build also test programs during a normal build
Pekka Paalanen
ppaalanen at gmail.com
Thu Nov 17 08:34:58 UTC 2016
On Wed, 16 Nov 2016 16:30:59 +0000
Daniel Stone <daniel at fooishbar.org> wrote:
> Hi Jan,
>
> On 16 November 2016 at 16:19, Jan Engelhardt <jengelh at inai.de> wrote:
> > On Wednesday 2016-11-16 17:16, Daniel Stone wrote:
> >>> noinst_PROGRAMS = \
> >>> + $(built_test_programs) \
> >>> + exec-fd-leak-checker \
> >>> fixed-benchmark
> >>>
> >>> check_LTLIBRARIES = libtest-runner.la
> >>
> >>Doesn't this have to be (or at least, shouldn't: I can imagine
> >>autotools making it a non-issue, but it is at least unclean)
> >>noinst_LTLIBRARIES instead? With that:
> >
> > noinst_LTLIBRARIES will never build shared libraries. You can of
> > course do that, but it has the usual implications.
>
> Thanks for the super-quick response. This is only used for the built
> tests, so I don't really see much value in having a shared library;
> any space savings are probably obliterated by all the libtool files
> anyway.
>
> I tried both quickly and they both seem to work, given that automake
> generates the rules and dependencies correctly; it's just that it
> looks/feels quite weird.
Yeah, I missed that and nothing seemed to fail. I even tried to prod it
to fail with 'make clean' and distcheck and whatnot.
Indeed I think the test-runner is even intended to be built into the
test programs, it certainly won't hurt.
I will be making that change and check what Weston does.
Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20161117/4a123945/attachment.sig>
More information about the wayland-devel
mailing list