diff options
author | netblue30 <netblue30@protonmail.com> | 2022-06-13 09:26:37 -0400 |
---|---|---|
committer | netblue30 <netblue30@protonmail.com> | 2022-06-13 09:26:37 -0400 |
commit | 95544a17fac7e5fb2b0eabe3d96305813fc96a1b (patch) | |
tree | ca0259eb8523de487c297f2a14e23f87d512b17d /test | |
parent | disable cgroup code (diff) | |
download | firejail-95544a17fac7e5fb2b0eabe3d96305813fc96a1b.tar.gz firejail-95544a17fac7e5fb2b0eabe3d96305813fc96a1b.tar.zst firejail-95544a17fac7e5fb2b0eabe3d96305813fc96a1b.zip |
more on disable cgroups
Diffstat (limited to 'test')
-rwxr-xr-x | test/utils/firemon-cgroup.exp | 40 | ||||
-rwxr-xr-x | test/utils/utils.sh | 3 |
2 files changed, 0 insertions, 43 deletions
diff --git a/test/utils/firemon-cgroup.exp b/test/utils/firemon-cgroup.exp deleted file mode 100755 index 2dbc04a50..000000000 --- a/test/utils/firemon-cgroup.exp +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "firejail --name=test1\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 0\n";exit} | ||
13 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
14 | } | ||
15 | sleep 1 | ||
16 | |||
17 | spawn $env(SHELL) | ||
18 | send -- "firejail --name=test2\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
22 | } | ||
23 | sleep 1 | ||
24 | |||
25 | spawn $env(SHELL) | ||
26 | send -- "firemon --cgroup\r" | ||
27 | sleep 4 | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 2\n";exit} | ||
30 | "need to be root" {puts "TESTING SKIP: /proc mounted as hidepid\n"; exit} | ||
31 | "name=test1" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 3\n";exit} | ||
35 | "name=test2" | ||
36 | } | ||
37 | |||
38 | after 100 | ||
39 | |||
40 | puts "\nall done\n" | ||
diff --git a/test/utils/utils.sh b/test/utils/utils.sh index 18f749ed8..102c8df17 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh | |||
@@ -129,9 +129,6 @@ fi | |||
129 | echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" | 129 | echo "TESTING: firemon cpu (test/utils/firemon-cpu.exp)" |
130 | ./firemon-cpu.exp | 130 | ./firemon-cpu.exp |
131 | 131 | ||
132 | echo "TESTING: firemon cgroup (test/utils/firemon-cgroup.exp)" | ||
133 | ./firemon-cgroup.exp | ||
134 | |||
135 | echo "TESTING: firemon version (test/utils/firemon-version.exp)" | 132 | echo "TESTING: firemon version (test/utils/firemon-version.exp)" |
136 | ./firemon-version.exp | 133 | ./firemon-version.exp |
137 | 134 | ||