diff options
author | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2013-12-31 18:09:14 +0200 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-05-05 14:26:15 +0100 |
commit | a03a51c44c78d25e9fab2ffb9bb0a46f22969f4e (patch) | |
tree | ec86473084a1e6f2ca90907423a512b730654f98 /init.cfg | |
parent | 7182e4470a1c60c410d5b460818ebff0992fd34c (diff) | |
download | coreutils-a03a51c44c78d25e9fab2ffb9bb0a46f22969f4e.tar.xz |
tests: initial SMACK tests
* init.cfg (require_smack_): New function.
* local.mk: Referenced new tests.
* tests/id/smack.sh: SMACK tests (new file).
* tests/mkdir/smack-no-root.sh: SMACK tests (new file).
* tests/mkdir/smack-root.sh: SMACK tests (new file).
Diffstat (limited to 'init.cfg')
-rw-r--r-- | init.cfg | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -119,6 +119,15 @@ require_selinux_enforcing_() || skip_ "This test is useful only with SELinux in Enforcing mode." } +require_smack_() +{ + grep 'smackfs$' /proc/filesystems > /dev/null \ + || skip_ "this system lacks SMACK support" + + test "$(ls -Zd .)" != '? .' \ + || skip_ "this file system lacks SMACK support" +} + require_openat_support_() { # Skip this test if your system has neither the openat-style functions |