tests: avoid false failure with --disable-selinux
commit8f4fce1751cabc48f25c3e17a324ac6d1c783de4
authorPádraig Brady <P@draigBrady.com>
Mon, 11 Nov 2024 19:54:18 +0000 (11 19:54 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 12 Nov 2024 11:20:47 +0000 (12 11:20 +0000)
treed945958b30daa161e0717c4b6fabda8adfc1e23f
parent00c45be7875e159b35ab6cd9fcfb2733fde95d41
tests: avoid false failure with --disable-selinux

* tests/ls/selinux-segfault.sh: Move recent addition to ...
* tests/ls/selinux.sh: ... this new test that uses require_selinux_
to skip appropriately when we've built without selinux support.
Also add a non root test that checks we output '.' along with the
mode for files, to indicate a security context is present.
* tests/local.mk (Reference the new test).
tests/local.mk
tests/ls/selinux-segfault.sh
tests/ls/selinux.sh [new file with mode: 0755]