]> git.ipfire.org Git - thirdparty/systemd.git/commit
tests: add a couple of files containing all the sections and directives
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 6 Nov 2018 18:42:29 +0000 (19:42 +0100)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 6 Nov 2018 18:42:29 +0000 (19:42 +0100)
commit220fa139dea5f2c18465f696333b2e646d0e40b5
tree38a4628aa31ccecd0b857b890ee5569f2d1075f6
parentcf02fd1b7a80122b2a4366fb63925cd81dd80ce0
tests: add a couple of files containing all the sections and directives

This should help the fuzzers to discover code paths faster.

In case anyone is interested, they were generated with the following script
```
perl -aF'/[\s,]+/' -ne '
if (my ($s, $d) = ($F[0] =~ /^([^\s\.]+)\.([^\s\.]+)$/)) { $d{$s}{$d} = 1; }
END { while (my ($key, $value) = each %d) {
    printf "[%s]\n%s\n", $key, join("\n", keys(%$value))
}}'
```
by passing src/network/networkd-network-gperf.gperf and
src/network/netdev/netdev-gperf.gperf to it.
test/fuzz/fuzz-netdev-parser/directives.netdev [new file with mode: 0644]
test/fuzz/fuzz-network-parser/directives.network [new file with mode: 0644]