build/meson: include meson.build for tests at the end

We want that there is a clear hierarchy and dependency between
modules/directories.

But tests sometimes break that.

For example, "shared/nm-glib-aux/tests" link against libnm-glib-aux
and libnm-log-null. But "shared/nm-log-null" depends on "shared/nm-glib-aux".
Hence, for the test there is a circular dependency.

Break that, by including all tests at the end.

The alternative would be ugly in different ways.
This commit is contained in:
Thomas Haller 2021-02-18 16:08:11 +01:00
parent 2439374457
commit 174bd45344
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 1 additions and 4 deletions

View file

@ -136,7 +136,3 @@ libnm_core_impl_dep_link = declare_dependency(
],
link_with: libnm_core_impl,
)
if enable_tests
subdir('tests')
endif

View file

@ -13,4 +13,5 @@ subdir('core')
if enable_tests
subdir('libnm-platform/tests')
subdir('libnm-core-impl/tests')
endif