meson: use conf configuration_data object to generate test-sysusers.sh
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 16 May 2021 13:57:55 +0000 (15:57 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 19 May 2021 01:24:43 +0000 (10:24 +0900)
commit097c072d83cc7dbb2518ad37b66d95ece27abaa8
tree7255469287631b12ce1e269307ea0fc2924917e9
parent8feaea5e3d907ae6ee397d581eafa8db5d75da4b
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.
test/meson.build