diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-05-16 15:57:55 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-05-19 03:24:43 +0200 |
commit | 097c072d83cc7dbb2518ad37b66d95ece27abaa8 (patch) | |
tree | 7255469287631b12ce1e269307ea0fc2924917e9 /test | |
parent | meson: use jinja2 for rules.d templates (diff) | |
download | systemd-097c072d83cc7dbb2518ad37b66d95ece27abaa8.tar.xz systemd-097c072d83cc7dbb2518ad37b66d95ece27abaa8.zip |
meson: use conf configuration_data object to generate test-sysusers.sh
I wanted to use jinja2 templating here too, but it's hard to get right:
custom_target() strips the executable bit by default (unlike configure_file
apparently). custom_target() has install_mode setting, but it was only added
in meson-0.47, so it can't be used while we support 0.46. And without the
executable bit the test is not invoked properly. For example, "root-unittests"
in the debian package calls test-* after installation, so the executable bit
there is necessary. It would be possible to adjust the file mode after the
fact, but it would make things more complicated.
So let's use the native meson substitutions here. We don't need anything more
fancy.
Diffstat (limited to 'test')
-rw-r--r-- | test/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/meson.build b/test/meson.build index b1d5bf9a85..47c7f4d49a 100644 --- a/test/meson.build +++ b/test/meson.build @@ -65,7 +65,7 @@ hwdb_test_sh = find_program('hwdb-test.sh') test_sysusers_sh = configure_file( input : 'test-sysusers.sh.in', output : 'test-sysusers.sh', - configuration : substs) + configuration : conf) if install_tests and conf.get('ENABLE_SYSUSERS') == 1 install_data(test_sysusers_sh, install_dir : testsdir) |