Daan De Meyer
3cb618084a
network-generator: Add logging
...
We stick to debug logging because in some cases network-generator
will fall back to trying another parsing function if one fails, so
if we return an error it's not necessarily a failure.
2024-04-04 14:46:40 +02:00
Yu Watanabe
78643f26a2
test: show error messages to stderr
...
Otherwise, 'meson test' hides the messages on failure.
2024-02-11 20:55:47 +01:00
Yu Watanabe
a0460dfed6
parse-util: accept arbitrary MTU size when AF_UNSPEC
...
When [Link] MTU= is specified in a .network file, we have no idea about
that what kind of interface will be configured with the .network file.
The maximum and minimum MTU size depend on the kind of interface.
So, we should not filter MTU eagerly in the parser.
Closes #30140 .
2023-12-08 10:47:42 +09:00
Yu Watanabe
9e6d587961
test: set working directory even if it is expected that the command fails
...
Otherwise, parsing may unexpectedly succeeds but fail to run writing
.network files with permission error.
Follow-up for 6bc5de53e8
.
2023-11-08 08:07:27 +01:00
Yu Watanabe
b86f60bfb3
network-generator: refuse unexpected trailing strings
2023-11-08 04:29:45 +09:00
Yu Watanabe
816c269e55
network-generator: allow to specify both IPv4 and IPv6 DNS servers
...
Follow-up for 923599523c
.
2023-11-08 04:29:45 +09:00
Frantisek Sumsal
6bc5de53e8
test: add a couple of tests for systemd-network-generator
...
Only for ip= stuff, for now.
2023-11-06 21:38:14 +01:00
Zbigniew Jędrzejewski-Szmek
8f5bcd615b
licensing: add forgotten spdx headers
...
Those are all "our" files, but we forgot to add the headers,
most likely because of non-standard file extensions.
2021-10-01 14:45:00 +02:00
Frantisek Sumsal
1c3f490f23
test: shellcheck-ify test scripts
2021-09-30 12:12:00 +02:00
Zbigniew Jędrzejewski-Szmek
a3709e3709
tests: when creating temp dirs, include test name in path
...
This makes it easier to figure out which directory we want to look at
when tests fail, and also which test left behind a directory when it
shouldn't.
2020-10-01 19:53:45 +02:00
Zbigniew Jędrzejewski-Szmek
fbaa11372b
test: convert TEST-35-NETWORK-GENERATOR into a unit test
2020-03-28 11:46:48 +01:00