[PATCH weston 1/5] tests: always build tests
sardemff7+wayland at sardemff7.net
sardemff7+wayland at sardemff7.net
Wed Sep 11 00:32:54 PDT 2013
On 11/09/2013 07:58, Peter Hutterer wrote:
> check_PROGRAMS and friends are only built during make check.
Which is perfectly fine.
> Which is a
> great way of introducing compiler errors in tests.
Agree, but we should fix the workflow, not some arbitrary “problem”.
> Always build them, TESTS
> defines what's being run during make check.
That’s wrong. The check_* vars are meant this way to avoid forcing
test-only dependencies if you disable tests and to allow one to test her
code *before* updating the tests.
Packagers tend to “fix” that the other way around (moving tests from
noinst_ to check_) quite often…
> ---
> tests/Makefile.am | 12 ++++--------
> 1 file changed, 4 insertions(+), 8 deletions(-)
>
> diff --git a/tests/Makefile.am b/tests/Makefile.am
> index 82bf630..398a275 100644
> --- a/tests/Makefile.am
> +++ b/tests/Makefile.am
> @@ -29,18 +29,14 @@ clean-local:
> export abs_builddir
>
> noinst_LTLIBRARIES = \
> - $(weston_test)
> + $(weston_test) \
> + $(module_tests)
>
> noinst_PROGRAMS = \
> $(setbacklight) \
> - matrix-test
> -
> -check_LTLIBRARIES = \
> - $(module_tests)
> -
> -check_PROGRAMS = \
> $(shared_tests) \
> - $(weston_tests)
> + $(weston_tests) \
> + matrix-test
>
> AM_CFLAGS = $(GCC_CFLAGS)
> AM_CPPFLAGS = \
>
--
Quentin “Sardem FF7” Glidic
More information about the wayland-devel
mailing list