diff options
Diffstat (limited to 'test/fs/private-lib.exp')
-rwxr-xr-x | test/fs/private-lib.exp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/fs/private-lib.exp b/test/fs/private-lib.exp index fd127bdb3..20d480062 100755 --- a/test/fs/private-lib.exp +++ b/test/fs/private-lib.exp | |||
@@ -3,27 +3,30 @@ | |||
3 | # Copyright (C) 2014-2017 Firejail Authors | 3 | # Copyright (C) 2014-2017 Firejail Authors |
4 | # License GPL v2 | 4 | # License GPL v2 |
5 | 5 | ||
6 | |||
6 | set timeout 10 | 7 | set timeout 10 |
7 | spawn $env(SHELL) | 8 | spawn $env(SHELL) |
8 | match_max 100000 | 9 | match_max 100000 |
9 | 10 | ||
10 | send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo \r" | 11 | send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty \r" |
11 | expect { | 12 | expect { |
12 | timeout {puts "TESTING ERROR 1\n";exit} | 13 | timeout {puts "TESTING ERROR 1\n";exit} |
13 | "Child process initialized" | 14 | "Child process initialized" |
14 | } | 15 | } |
15 | after 100 | 16 | after 100 |
17 | send -- "stty -echo\r" | ||
16 | 18 | ||
17 | send -- "cd /bin; find .; echo done\r" | 19 | send -- "cd /bin; find .\; echo done\r" |
18 | expect { | 20 | expect { |
19 | timeout {puts "TESTING ERROR 2\n";exit} | 21 | timeout {puts "TESTING ERROR 2\n";exit} |
22 | # "grep" {puts "TESTING ERROR 3\n";exit} | ||
20 | "rm" {puts "TESTING ERROR 3\n";exit} | 23 | "rm" {puts "TESTING ERROR 3\n";exit} |
21 | "cp" {puts "TESTING ERROR 4\n";exit} | 24 | "cp" {puts "TESTING ERROR 4\n";exit} |
22 | "done" | 25 | "done" |
23 | } | 26 | } |
24 | after 100 | 27 | after 100 |
25 | 28 | ||
26 | send -- "cd /lib; find .; echo done\r" | 29 | send -- "cd /lib; find .\r" |
27 | expect { | 30 | expect { |
28 | timeout {puts "TESTING ERROR 5\n";exit} | 31 | timeout {puts "TESTING ERROR 5\n";exit} |
29 | "modules" {puts "TESTING ERROR 6\n";exit} | 32 | "modules" {puts "TESTING ERROR 6\n";exit} |
@@ -32,7 +35,7 @@ expect { | |||
32 | } | 35 | } |
33 | after 100 | 36 | after 100 |
34 | 37 | ||
35 | send -- "cd /usr/lib; find .; echo done\r" | 38 | send -- "cd /usr/lib; find .\r" |
36 | expect { | 39 | expect { |
37 | timeout {puts "TESTING ERROR 8\n";exit} | 40 | timeout {puts "TESTING ERROR 8\n";exit} |
38 | "grub" {puts "TESTING ERROR 9\n";exit} | 41 | "grub" {puts "TESTING ERROR 9\n";exit} |