diff options
author | Mike Gilbert <floppymaster@gmail.com> | 2017-10-08 16:14:45 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-10-08 22:14:45 +0200 |
commit | 1e99c1ee825fc2ba451a3f0ddf5e922bd8bd43ad (patch) | |
tree | 78e27511de50a095e01a86fd69b6ba204be14500 /test | |
parent | 132523e7f74e337120b2db62108470759125c349 (diff) | |
download | systemd-1e99c1ee825fc2ba451a3f0ddf5e922bd8bd43ad.tar.gz |
test: skip hwdb and sysv-generator if the features are disabled (#7026)
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/meson.build b/test/meson.build index 995a971778..c2df7ec226 100644 --- a/test/meson.build +++ b/test/meson.build @@ -163,9 +163,11 @@ endif ############################################################ -sysv_generator_test_py = find_program('sysv-generator-test.py') -test('sysv-generator-test', - sysv_generator_test_py) +if conf.get('HAVE_SYSV_COMPAT') == 1 + sysv_generator_test_py = find_program('sysv-generator-test.py') + test('sysv-generator-test', + sysv_generator_test_py) +endif ############################################################ @@ -181,6 +183,8 @@ udev_test_pl = find_program('udev-test.pl') test('udev-test', udev_test_pl) -hwdb_test_sh = find_program('hwdb-test.sh') -test('hwdb-test', - hwdb_test_sh) +if conf.get('ENABLE_HWDB') == 1 + hwdb_test_sh = find_program('hwdb-test.sh') + test('hwdb-test', + hwdb_test_sh) +endif |