aboutsummaryrefslogtreecommitdiffstats
path: root/test/private-keep.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/private-keep.exp')
-rwxr-xr-xtest/private-keep.exp192
1 files changed, 0 insertions, 192 deletions
diff --git a/test/private-keep.exp b/test/private-keep.exp
deleted file mode 100755
index 163aa2741..000000000
--- a/test/private-keep.exp
+++ /dev/null
@@ -1,192 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7#**************************************************************
8send -- "firejail --noprofile --private-home=.mozilla,.config/firejail\r"
9expect {
10 timeout {puts "TESTING ERROR 0\n";exit}
11 "Child process initialized"
12}
13sleep 1
14
15send -- "ls -al\r"
16expect {
17 timeout {puts "TESTING ERROR 0.1\n";exit}
18 ".config"
19}
20expect {
21 timeout {puts "TESTING ERROR 0.2\n";exit}
22 ".mozilla"
23}
24sleep 1
25
26send -- "find .config\r"
27expect {
28 timeout {puts "TESTING ERROR 0.3\n";exit}
29 ".config"
30}
31expect {
32 timeout {puts "TESTING ERROR 0.4\n";exit}
33 ".config/firejail"
34}
35sleep 1
36puts "\n"
37send -- "exit\r"
38sleep 2
39
40
41#**************************************************************
42send -- "firejail --profile=private-keep.profile\r"
43expect {
44 timeout {puts "TESTING ERROR 1.0\n";exit}
45 "Child process initialized"
46}
47sleep 1
48
49send -- "ls -al\r"
50expect {
51 timeout {puts "TESTING ERROR 1.1\n";exit}
52 ".config"
53}
54expect {
55 timeout {puts "TESTING ERROR 1.2\n";exit}
56 ".mozilla"
57}
58sleep 1
59
60send -- "find .config\r"
61expect {
62 timeout {puts "TESTING ERROR 1.3\n";exit}
63 ".config"
64}
65expect {
66 timeout {puts "TESTING ERROR 1.4\n";exit}
67 ".config/firejail"
68}
69sleep 1
70puts "\n"
71send -- "exit\r"
72sleep 2
73
74
75#**************************************************************
76send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r"
77expect {
78 timeout {puts "TESTING ERROR 2\n";exit}
79 "Child process initialized"
80}
81sleep 1
82
83send -- "ls -al\r"
84expect {
85 timeout {puts "TESTING ERROR 2.1\n";exit}
86 ".config"
87}
88expect {
89 timeout {puts "TESTING ERROR 2.2\n";exit}
90 ".mozilla"
91}
92sleep 1
93
94send -- "find .config\r"
95expect {
96 timeout {puts "TESTING ERROR 2.3\n";exit}
97 ".config"
98}
99expect {
100 timeout {puts "TESTING ERROR 2.4\n";exit}
101 ".config/firejail"
102}
103sleep 1
104puts "\n"
105send -- "exit\r"
106sleep 2
107
108
109#**************************************************************
110send -- "firejail --noprofile --private-home=~/.mozilla,~/.config/firejail\r"
111expect {
112 timeout {puts "TESTING ERROR 3\n";exit}
113 "Child process initialized"
114}
115sleep 1
116
117send -- "ls -al\r"
118expect {
119 timeout {puts "TESTING ERROR 3.1\n";exit}
120 ".config"
121}
122expect {
123 timeout {puts "TESTING ERROR 3.2\n";exit}
124 ".mozilla"
125}
126sleep 1
127
128send -- "find .config\r"
129expect {
130 timeout {puts "TESTING ERROR 3.3\n";exit}
131 ".config"
132}
133expect {
134 timeout {puts "TESTING ERROR 3.4\n";exit}
135 ".config/firejail"
136}
137sleep 1
138puts "\n"
139send -- "exit\r"
140sleep 2
141
142#**************************************************************
143send -- "firejail --noprofile --private-home=/home/netblue/.mozilla,/home/netblue/.config/firejail\r"
144expect {
145 timeout {puts "TESTING ERROR 4\n";exit}
146 "Child process initialized"
147}
148sleep 1
149
150send -- "ls -al\r"
151expect {
152 timeout {puts "TESTING ERROR 4.1\n";exit}
153 ".config"
154}
155expect {
156 timeout {puts "TESTING ERROR 4.2\n";exit}
157 ".mozilla"
158}
159sleep 1
160
161send -- "find .config\r"
162expect {
163 timeout {puts "TESTING ERROR 4.3\n";exit}
164 ".config"
165}
166expect {
167 timeout {puts "TESTING ERROR 4.4\n";exit}
168 ".config/firejail"
169}
170sleep 1
171puts "\n"
172send -- "exit\r"
173sleep 2
174
175#**************************************************************
176send -- "firejail --noprofile --private-home=/home/netblue/../netblue/.mozilla,/home/netblue/.config/firejail\r"
177expect {
178 timeout {puts "TESTING ERROR 5\n";exit}
179 "Error: invalid private-home list"
180}
181sleep 1
182
183#**************************************************************
184send -- "firejail --noprofile --private-home=/root\r"
185expect {
186 timeout {puts "TESTING ERROR 6\n";exit}
187 "Error: only files or directories created by the current user are allowed"
188}
189sleep 1
190
191puts "all done\n"
192