]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
meson: define tests
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Apr 2017 04:19:09 +0000 (00:19 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 24 Apr 2017 01:47:26 +0000 (21:47 -0400)
commit69e96427a2a77a4d1061ab9c54b9fd3dd1deafca
tree8e1150780b55b01e19b4c8f89d7f73376ee20705
parentd68b342b03dea3ddd675200ae2ee82fc36160def
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
15 files changed:
catalog/meson.build
meson.build
meson_options.txt
src/coredump/meson.build
src/import/meson.build
src/libsystemd/meson.build
src/locale/meson.build
src/machine/meson.build
src/network/meson.build
src/nspawn/meson.build
src/resolve/meson.build
src/shared/meson.build
src/test/meson.build [new file with mode: 0644]
src/test/test-hashmap-ordered.awk [new file with mode: 0644]
src/udev/meson.build