diff options
author | 2016-05-05 10:22:18 -0400 | |
---|---|---|
committer | 2016-05-05 10:22:18 -0400 | |
commit | 37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch) | |
tree | 5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/whitelist-empty.exp | |
parent | rename generic.profile as default.profile (diff) | |
download | firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip |
testing
Diffstat (limited to 'test/whitelist-empty.exp')
-rwxr-xr-x | test/whitelist-empty.exp | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/whitelist-empty.exp b/test/whitelist-empty.exp deleted file mode 100755 index 226b019db..000000000 --- a/test/whitelist-empty.exp +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 30 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --whitelist=~/blablabla --whitelist=/tmp/blablabla --whitelist=/media/blablabla --whitelist=/var/blablabla --whitelist=/dev/blablabla --whitelist=/opt/blablabla\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "ls -l ~/ | wc -l\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "0" | ||
18 | } | ||
19 | |||
20 | send -- "ls -l /tmp | wc -l\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 2\n";exit} | ||
23 | "0" | ||
24 | } | ||
25 | |||
26 | send -- "ls -l /media | wc -l\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 3\n";exit} | ||
29 | "0" | ||
30 | } | ||
31 | |||
32 | send -- "ls -l /var | wc -l\r" | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 4\n";exit} | ||
35 | "0" | ||
36 | } | ||
37 | |||
38 | send -- "ls -l /dev | wc -l\r" | ||
39 | expect { | ||
40 | timeout {puts "TESTING ERROR 5\n";exit} | ||
41 | "0" | ||
42 | } | ||
43 | send -- "ls -l /opt | wc -l\r" | ||
44 | expect { | ||
45 | timeout {puts "TESTING ERROR 6\n";exit} | ||
46 | "0" | ||
47 | } | ||
48 | |||
49 | |||
50 | puts "\nall done\n" | ||