aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/utils.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/utils/utils.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/utils/utils.sh')
-rwxr-xr-xtest/utils/utils.sh16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/utils/utils.sh b/test/utils/utils.sh
index d98e4c2e4..c3d4a0dcf 100755
--- a/test/utils/utils.sh
+++ b/test/utils/utils.sh
@@ -115,11 +115,19 @@ echo "TESTING: top (test/utils/top.exp)"
115echo "TESTING: file transfer (test/utils/ls.exp)" 115echo "TESTING: file transfer (test/utils/ls.exp)"
116./ls.exp 116./ls.exp
117 117
118echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" 118if grep -q "^Seccomp.*0" /proc/self/status; then
119./firemon-seccomp.exp 119 echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)"
120 ./firemon-seccomp.exp
121else
122 echo "TESTING SKIP: seccomp already active (test/utils/firemon-seccomp.exp)"
123fi
120 124
121echo "TESTING: firemon caps (test/utils/firemon-caps.exp)" 125if grep -q "^CapBnd:\\s0000003fffffffff" /proc/self/status; then
122./firemon-caps.exp 126 echo "TESTING: firemon caps (test/utils/firemon-caps.exp)"
127 ./firemon-caps.exp
128else
129 echo "TESTING SKIP: other capabilities than expected (test/utils/firemon-caps.exp)"
130fi
123 131
124echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" 132echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)"
125./firemon-cpu.exp 133./firemon-cpu.exp