]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
Add a basic test that the configured fallback hostname is OK
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 May 2020 15:30:02 +0000 (17:30 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 May 2020 15:35:26 +0000 (17:35 +0200)
commiteef4b80033e9ca8e61ccb40a710babcfe9b69b26
tree8d6e5550e9123d34d6d955f6fd526230e17c3d5a
parent6dbf40256bd88f1c74657bd9ffbd9eaa06c08706
Add a basic test that the configured fallback hostname is OK

Ideally, assert_cc() would be used for this, so that it is not possible to even
compile systemd with something like '-Dfallback-hostname=.foo'. But to do a
proper check we need to call hostname_is_valid(), and we cannot depend on being
able to run code (e.g. during cross-compilation). So let's do a very superficial
check in meson, and a proper on in test-util.
meson.build
src/test/test-hostname-util.c