summaryrefslogtreecommitdiffstats
path: root/test/ignore.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ignore.exp')
-rwxr-xr-xtest/ignore.exp38
1 files changed, 38 insertions, 0 deletions
diff --git a/test/ignore.exp b/test/ignore.exp
new file mode 100755
index 000000000..bdbd9d28c
--- /dev/null
+++ b/test/ignore.exp
@@ -0,0 +1,38 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --profile=ignore.profile --ignore=seccomp \r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Error: please use --profile after --include"
11}
12
13send -- "firejail --debug --ignore=seccomp\r"
14expect {
15 timeout {puts "TESTING ERROR 1\n";exit}
16 BLACKLIST {puts "TESTING ERROR 2\n";exit}
17 "Child process initialized"
18}
19sleep 1
20send -- "exit\r"
21sleep 1
22
23send -- "firejail --ignore=seccomp --ignore=shell --profile=ignore.profile \r"
24expect {
25 timeout {puts "TESTING ERROR 3\n";exit}
26 "Child process initialized"
27}
28sleep 1
29
30send -- "ps aux | wc -l\r"
31expect {
32 timeout {puts "TESTING ERROR 4\n";exit}
33 "4"
34}
35sleep 1
36
37
38puts "\nall done\n"