aboutsummaryrefslogtreecommitdiffstats
path: root/test/filters/filters.sh
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2018-09-21 18:45:10 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2018-09-21 18:45:10 +0200
commit8b9844e4f1ee4b26fcbc64f73e4e621f6ff0e63f (patch)
tree409a0aa2d208211b027a9029dfc002c1e640408d /test/filters/filters.sh
parenttests: skip tests checking for /dev/kmsg which might not be available (diff)
downloadfirejail-8b9844e4f1ee4b26fcbc64f73e4e621f6ff0e63f.tar.gz
firejail-8b9844e4f1ee4b26fcbc64f73e4e621f6ff0e63f.tar.zst
firejail-8b9844e4f1ee4b26fcbc64f73e4e621f6ff0e63f.zip
tests: skip more tests if capabilities/seccomp of host differs
Diffstat (limited to 'test/filters/filters.sh')
-rwxr-xr-xtest/filters/filters.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/filters/filters.sh b/test/filters/filters.sh
index d0a34ccc5..72d699415 100755
--- a/test/filters/filters.sh
+++ b/test/filters/filters.sh
@@ -35,8 +35,13 @@ echo "TESTING: seccomp postexec (test/filters/seccomp-postexec.exp)"
35echo "TESTING: noroot (test/filters/noroot.exp)" 35echo "TESTING: noroot (test/filters/noroot.exp)"
36./noroot.exp 36./noroot.exp
37 37
38echo "TESTING: capabilities (test/filters/caps.exp)" 38
39./caps.exp 39if grep -q "^CapBnd:\\s0000003fffffffff" /proc/self/status; then
40 echo "TESTING: capabilities (test/filters/caps.exp)"
41 ./caps.exp
42else
43 echo "TESTING SKIP: other capabilities than expected (test/filters/caps.exp)"
44fi
40 45
41echo "TESTING: capabilities print (test/filters/caps-print.exp)" 46echo "TESTING: capabilities print (test/filters/caps-print.exp)"
42./caps-print.exp 47./caps-print.exp