summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2013-12-31 18:09:14 +0200
committerPádraig Brady <P@draigBrady.com>2014-05-05 14:26:15 +0100
commita03a51c44c78d25e9fab2ffb9bb0a46f22969f4e (patch)
treeec86473084a1e6f2ca90907423a512b730654f98 /init.cfg
parent7182e4470a1c60c410d5b460818ebff0992fd34c (diff)
downloadcoreutils-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.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.cfg b/init.cfg
index 6a9b004ff..bf1887f8d 100644
--- a/init.cfg
+++ b/init.cfg
@@ -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