diff options
author | 2016-04-23 08:53:07 -0400 | |
---|---|---|
committer | 2016-04-23 08:53:07 -0400 | |
commit | 2905b9f9ab5c5ed6f9210d1d843a8bcf41451854 (patch) | |
tree | d3bb968dbcb9f22856de345d0df5ecf2a44d594f /test/ignore.exp | |
parent | quiterss profile (diff) | |
download | firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.gz firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.zst firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.zip |
make test-utils
Diffstat (limited to 'test/ignore.exp')
-rwxr-xr-x | test/ignore.exp | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/test/ignore.exp b/test/ignore.exp deleted file mode 100755 index c5ea25684..000000000 --- a/test/ignore.exp +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
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 --ignore" | ||
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 | "5" | ||
34 | } | ||
35 | sleep 1 | ||
36 | send -- "exit\r" | ||
37 | sleep 1 | ||
38 | |||
39 | send -- "firejail --debug --profile=ignore2.profile\r" | ||
40 | expect { | ||
41 | timeout {puts "TESTING ERROR 5\n";exit} | ||
42 | BLACKLIST {puts "TESTING ERROR 6\n";exit} | ||
43 | "Child process initialized" | ||
44 | } | ||
45 | |||
46 | |||
47 | puts "\nall done\n" | ||