aboutsummaryrefslogtreecommitdiffstats
path: root/test/ignore.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 08:53:07 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-23 08:53:07 -0400
commit2905b9f9ab5c5ed6f9210d1d843a8bcf41451854 (patch)
treed3bb968dbcb9f22856de345d0df5ecf2a44d594f /test/ignore.exp
parentquiterss profile (diff)
downloadfirejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.gz
firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.tar.zst
firejail-2905b9f9ab5c5ed6f9210d1d843a8bcf41451854.zip
make test-utils
Diffstat (limited to 'test/ignore.exp')
-rwxr-xr-xtest/ignore.exp47
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
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 --ignore"
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 "5"
34}
35sleep 1
36send -- "exit\r"
37sleep 1
38
39send -- "firejail --debug --profile=ignore2.profile\r"
40expect {
41 timeout {puts "TESTING ERROR 5\n";exit}
42 BLACKLIST {puts "TESTING ERROR 6\n";exit}
43 "Child process initialized"
44}
45
46
47puts "\nall done\n"