blob: 41a38b3b6cc4557593343ea81b1af595d433133e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#!/usr/bin/expect -f
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "firejail --name=bingo1 --cgroup=/sys/fs/cgroup/g1/tasks\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
spawn $env(SHELL)
send -- "firejail --name=bingo2\r"
expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
spawn $env(SHELL)
send -- "firemon --cgroup\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"bingo1"
}
expect {
timeout {puts "TESTING ERROR 2\n";exit}
":/g1"
}
expect {
timeout {puts "TESTING ERROR 3\n";exit}
"bingo2"
}
sleep 1
puts "\n"
|