aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 12:52:05 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-11-11 12:52:05 -0500
commitbb5b4077e6f3549b35e8b420d882717141c069b9 (patch)
tree47643718c811531456e26913795edbcbff55ac05 /test/utils
parenthidepid part 4 (diff)
downloadfirejail-bb5b4077e6f3549b35e8b420d882717141c069b9.tar.gz
firejail-bb5b4077e6f3549b35e8b420d882717141c069b9.tar.zst
firejail-bb5b4077e6f3549b35e8b420d882717141c069b9.zip
hidepid part 5
Diffstat (limited to 'test/utils')
-rwxr-xr-xtest/utils/firemon-caps.exp (renamed from test/utils/caps.exp)1
-rwxr-xr-xtest/utils/firemon-cgroup.exp1
-rwxr-xr-xtest/utils/firemon-cpu.exp1
-rwxr-xr-xtest/utils/firemon-seccomp.exp (renamed from test/utils/seccomp.exp)1
-rwxr-xr-xtest/utils/utils.sh12
5 files changed, 10 insertions, 6 deletions
diff --git a/test/utils/caps.exp b/test/utils/firemon-caps.exp
index ab1067921..76aa13725 100755
--- a/test/utils/caps.exp
+++ b/test/utils/firemon-caps.exp
@@ -66,6 +66,7 @@ spawn $env(SHELL)
66send -- "firemon --caps\r" 66send -- "firemon --caps\r"
67expect { 67expect {
68 timeout {puts "TESTING ERROR 8.1\n";exit} 68 timeout {puts "TESTING ERROR 8.1\n";exit}
69 "need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
69 "bingo1" 70 "bingo1"
70} 71}
71expect { 72expect {
diff --git a/test/utils/firemon-cgroup.exp b/test/utils/firemon-cgroup.exp
index 3cd4f5a03..b1ab083ae 100755
--- a/test/utils/firemon-cgroup.exp
+++ b/test/utils/firemon-cgroup.exp
@@ -27,6 +27,7 @@ send -- "firemon --cgroup\r"
27sleep 4 27sleep 4
28expect { 28expect {
29 timeout {puts "TESTING ERROR 2\n";exit} 29 timeout {puts "TESTING ERROR 2\n";exit}
30 "need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
30 "name=test1" 31 "name=test1"
31} 32}
32expect { 33expect {
diff --git a/test/utils/firemon-cpu.exp b/test/utils/firemon-cpu.exp
index 22e44512c..f2ecd4a5c 100755
--- a/test/utils/firemon-cpu.exp
+++ b/test/utils/firemon-cpu.exp
@@ -27,6 +27,7 @@ send -- "firemon --cpu\r"
27sleep 4 27sleep 4
28expect { 28expect {
29 timeout {puts "TESTING ERROR 2\n";exit} 29 timeout {puts "TESTING ERROR 2\n";exit}
30 "need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
30 "name=test1" 31 "name=test1"
31} 32}
32expect { 33expect {
diff --git a/test/utils/seccomp.exp b/test/utils/firemon-seccomp.exp
index c9726ff21..26c478344 100755
--- a/test/utils/seccomp.exp
+++ b/test/utils/firemon-seccomp.exp
@@ -29,6 +29,7 @@ spawn $env(SHELL)
29send -- "firemon --seccomp\r" 29send -- "firemon --seccomp\r"
30expect { 30expect {
31 timeout {puts "TESTING ERROR 1\n";exit} 31 timeout {puts "TESTING ERROR 1\n";exit}
32 "need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit}
32 "bingo1" 33 "bingo1"
33} 34}
34expect { 35expect {
diff --git a/test/utils/utils.sh b/test/utils/utils.sh
index 557f2c961..7b0ab1096 100755
--- a/test/utils/utils.sh
+++ b/test/utils/utils.sh
@@ -82,18 +82,18 @@ rm -f index.html*
82./trace.exp 82./trace.exp
83rm -f index.html* 83rm -f index.html*
84 84
85echo "TESTING: firemon --seccomp (test/utils/seccomp.exp)"
86./seccomp.exp
87
88echo "TESTING: firemon --caps (test/utils/caps.exp)"
89./caps.exp
90
91echo "TESTING: top (test/utils/top.exp)" 85echo "TESTING: top (test/utils/top.exp)"
92./top.exp 86./top.exp
93 87
94echo "TESTING: file transfer (test/utils/ls.exp)" 88echo "TESTING: file transfer (test/utils/ls.exp)"
95./ls.exp 89./ls.exp
96 90
91echo "TESTING: firemon --seccomp (test/utils/firemon-seccomp.exp)"
92./firemon-seccomp.exp
93
94echo "TESTING: firemon --caps (test/utils/firemon-caps.exp)"
95./firemon-caps.exp
96
97echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" 97echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)"
98./firemon-cpu.exp 98./firemon-cpu.exp
99 99