]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (configs) add sorting and masking test
authorKarel Zak <kzak@redhat.com>
Wed, 15 Oct 2025 13:30:06 +0000 (15:30 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Oct 2025 13:30:06 +0000 (15:30 +0200)
commit001f3a6d69403db2ec8a375a3255e4b5d1369890
treebb2b385b95149ae432903e4ed0433934ac3ab0ee
parent7609cb258d4975e49b020860f8ebba6feb5f2354
tests: (configs) add sorting and masking test

Add a new test that verifies:
- Main config file appears first
- Drop-in files are sorted alphabetically
- Files from /etc mask same-named files from /usr
- Priority ordering is correct (etc > usr)

The test creates mmm.conf in both /etc and /usr to verify
that the /etc version takes precedence and /usr version is
masked (not included in output).

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/misc/configs-sorting [new file with mode: 0644]
tests/ts/misc/configs