diff options
author | netblue30 <netblue30@yahoo.com> | 2015-10-25 08:22:21 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-10-25 08:22:21 -0400 |
commit | 113597818860241185d0c3efecf99b0ee7d900fa (patch) | |
tree | 3e9e40cad8a5cf976c331e850e6c423f24e0d1ae /test/ignore.exp | |
parent | implemented --ignore option (diff) | |
download | firejail-113597818860241185d0c3efecf99b0ee7d900fa.tar.gz firejail-113597818860241185d0c3efecf99b0ee7d900fa.tar.zst firejail-113597818860241185d0c3efecf99b0ee7d900fa.zip |
ignore option testing
Diffstat (limited to 'test/ignore.exp')
-rwxr-xr-x | test/ignore.exp | 38 |
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 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --profile=ignore.profile --ignore=seccomp \r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Error: please use --profile after --include" | ||
11 | } | ||
12 | |||
13 | send -- "firejail --debug --ignore=seccomp\r" | ||
14 | expect { | ||
15 | timeout {puts "TESTING ERROR 1\n";exit} | ||
16 | BLACKLIST {puts "TESTING ERROR 2\n";exit} | ||
17 | "Child process initialized" | ||
18 | } | ||
19 | sleep 1 | ||
20 | send -- "exit\r" | ||
21 | sleep 1 | ||
22 | |||
23 | send -- "firejail --ignore=seccomp --ignore=shell --profile=ignore.profile \r" | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 3\n";exit} | ||
26 | "Child process initialized" | ||
27 | } | ||
28 | sleep 1 | ||
29 | |||
30 | send -- "ps aux | wc -l\r" | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 4\n";exit} | ||
33 | "4" | ||
34 | } | ||
35 | sleep 1 | ||
36 | |||
37 | |||
38 | puts "\nall done\n" | ||