diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2018-09-21 18:45:10 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2018-09-21 18:45:10 +0200 |
commit | 8b9844e4f1ee4b26fcbc64f73e4e621f6ff0e63f (patch) | |
tree | 409a0aa2d208211b027a9029dfc002c1e640408d /test/utils | |
parent | tests: skip tests checking for /dev/kmsg which might not be available (diff) | |
download | firejail-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')
-rwxr-xr-x | test/utils/utils.sh | 16 |
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)" | |||
115 | echo "TESTING: file transfer (test/utils/ls.exp)" | 115 | echo "TESTING: file transfer (test/utils/ls.exp)" |
116 | ./ls.exp | 116 | ./ls.exp |
117 | 117 | ||
118 | echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" | 118 | if 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 | ||
121 | else | ||
122 | echo "TESTING SKIP: seccomp already active (test/utils/firemon-seccomp.exp)" | ||
123 | fi | ||
120 | 124 | ||
121 | echo "TESTING: firemon caps (test/utils/firemon-caps.exp)" | 125 | if 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 | ||
128 | else | ||
129 | echo "TESTING SKIP: other capabilities than expected (test/utils/firemon-caps.exp)" | ||
130 | fi | ||
123 | 131 | ||
124 | echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" | 132 | echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" |
125 | ./firemon-cpu.exp | 133 | ./firemon-cpu.exp |