diff options
Diffstat (limited to 'test/private-keep.exp')
-rwxr-xr-x | test/private-keep.exp | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/test/private-keep.exp b/test/private-keep.exp new file mode 100755 index 000000000..cdae12ac3 --- /dev/null +++ b/test/private-keep.exp | |||
@@ -0,0 +1,66 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --private.keep=.mozilla,.config/firejail\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "ls -al\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 0.1\n";exit} | ||
17 | ".config" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 0.2\n";exit} | ||
21 | ".mozilla" | ||
22 | } | ||
23 | sleep 1 | ||
24 | |||
25 | send -- "find .config\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 0.3\n";exit} | ||
28 | ".config" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 0.4\n";exit} | ||
32 | ".config/firejail" | ||
33 | } | ||
34 | sleep 1 | ||
35 | puts "\n" | ||
36 | send -- "exit\r" | ||
37 | sleep 2 | ||
38 | |||
39 | |||
40 | send -- "firejail --profile=private-keep.profile\r" | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 1.0\n";exit} | ||
43 | "Child process initialized" | ||
44 | } | ||
45 | sleep 1 | ||
46 | |||
47 | send -- "ls -al\r" | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 1.1\n";exit} | ||
50 | ".config" | ||
51 | } | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 1.2\n";exit} | ||
54 | ".mozilla" | ||
55 | } | ||
56 | sleep 1 | ||
57 | |||
58 | send -- "find .config\r" | ||
59 | expect { | ||
60 | timeout {puts "TESTING ERROR 1.3\n";exit} | ||
61 | ".config" | ||
62 | } | ||
63 | expect { | ||
64 | timeout {puts "TESTING ERROR 1.4\n";exit} | ||
65 | ".config/firejail" | ||
66 | } | ||