aboutsummaryrefslogtreecommitdiffstats
path: root/test/private-keep.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2015-08-08 19:12:30 -0400
commit1379851360349d6617ad32944a25ee5e2bb74fc2 (patch)
treef69b48e90708bfa3c2723d5a27ed3e024c827b43 /test/private-keep.exp
parentdelete files (diff)
downloadfirejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.gz
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.tar.zst
firejail-1379851360349d6617ad32944a25ee5e2bb74fc2.zip
Baseline firejail 0.9.28
Diffstat (limited to 'test/private-keep.exp')
-rwxr-xr-xtest/private-keep.exp66
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --private.keep=.mozilla,.config/firejail\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "ls -al\r"
15expect {
16 timeout {puts "TESTING ERROR 0.1\n";exit}
17 ".config"
18}
19expect {
20 timeout {puts "TESTING ERROR 0.2\n";exit}
21 ".mozilla"
22}
23sleep 1
24
25send -- "find .config\r"
26expect {
27 timeout {puts "TESTING ERROR 0.3\n";exit}
28 ".config"
29}
30expect {
31 timeout {puts "TESTING ERROR 0.4\n";exit}
32 ".config/firejail"
33}
34sleep 1
35puts "\n"
36send -- "exit\r"
37sleep 2
38
39
40send -- "firejail --profile=private-keep.profile\r"
41expect {
42 timeout {puts "TESTING ERROR 1.0\n";exit}
43 "Child process initialized"
44}
45sleep 1
46
47send -- "ls -al\r"
48expect {
49 timeout {puts "TESTING ERROR 1.1\n";exit}
50 ".config"
51}
52expect {
53 timeout {puts "TESTING ERROR 1.2\n";exit}
54 ".mozilla"
55}
56sleep 1
57
58send -- "find .config\r"
59expect {
60 timeout {puts "TESTING ERROR 1.3\n";exit}
61 ".config"
62}
63expect {
64 timeout {puts "TESTING ERROR 1.4\n";exit}
65 ".config/firejail"
66}