[PATCH wayland] Makefile: build also test programs during a normal build
Daniel Stone
daniel at fooishbar.org
Wed Nov 16 16:16:33 UTC 2016
Hi Pekka,
On 16 November 2016 at 11:46, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> Put also test programs into noinst_PROGRAMS so that they get always
> built. In check_PROGRAMS they are built for 'make check' but not for
> 'make'.
>
> This makes it harder to accidentally break the test programs.
>
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> ---
> Makefile.am | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index be372da..457f451 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -178,11 +178,9 @@ AM_TESTS_ENVIRONMENT = \
> TESTS = $(built_test_programs) \
> tests/scanner-test.sh
>
> -check_PROGRAMS = \
> - $(built_test_programs) \
> - exec-fd-leak-checker
> -
> 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:
Reviewed-by: Daniel Stone <daniels at collabora.com>
Cheers,
Daniel
More information about the wayland-devel
mailing list