summaryrefslogtreecommitdiff
path: root/catalog
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-07 00:19:09 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-23 21:47:26 -0400
commit69e96427a2a77a4d1061ab9c54b9fd3dd1deafca (patch)
tree8e1150780b55b01e19b4c8f89d7f73376ee20705 /catalog
parentd68b342b03dea3ddd675200ae2ee82fc36160def (diff)
downloadsystemd-69e96427a2a77a4d1061ab9c54b9fd3dd1deafca.tar.gz
meson: define tests
Tests can be run with 'ninja-build test' or using 'mesontest'. '-Dtests=unsafe' can be used to include the "unsafe" tests in the test suite, same as with autotools. v2: - use more conf.get guards are optional components - declare deps on generated headers for test-{af,arphrd,cap}-list v3: - define environment for tests Most test don't need this, but to be consistent with autotools-based build, and to avoid questions which tests need it and which don't, set the same environment for all tests. v4: - rework test generation Use a list of lists to define each test. This way we can reduce the boilerplate somewhat, although the test listings are still pretty verbose. We can also move the definitions of the tests to the subdirs. Unfortunately some subdirs are included earlier than some of the libraries that test binaries are linked to. So just dump all definitions of all tests that cannot be defined earlier into src/test. The `executable` definitions are still at the top level, so the binaries are compiled into the build root. v5: - tag test-dnssec-complex as manual v6: - fix HAVE_LIBZ typo - add missing libgobject/libgio defs - mark test-qcow2 as manual
Diffstat (limited to 'catalog')
-rw-r--r--catalog/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/catalog/meson.build b/catalog/meson.build
index b50792ee2e..0ac48f69c3 100644
--- a/catalog/meson.build
+++ b/catalog/meson.build
@@ -16,6 +16,7 @@ in_files = '''
support_url = get_option('support-url')
support_sed = 's~%SUPPORT_URL%~@0@~'.format(support_url)
+build_catalog_dir = meson.current_build_dir()
foreach file : in_files
custom_target(