aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/3.4.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-02-02 08:44:40 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2016-02-02 08:44:40 -0500
commite7486b39795847043cd16c55a1c8142770c77de8 (patch)
treed0f11ceffdbfde9c792ab856016d4219acfc21b2 /test/features/3.4.exp
parent0.9.38 testing (diff)
downloadfirejail-e7486b39795847043cd16c55a1c8142770c77de8.tar.gz
firejail-e7486b39795847043cd16c55a1c8142770c77de8.tar.zst
firejail-e7486b39795847043cd16c55a1c8142770c77de8.zip
0.9.38 testing
Diffstat (limited to 'test/features/3.4.exp')
-rwxr-xr-xtest/features/3.4.exp143
1 files changed, 136 insertions, 7 deletions
diff --git a/test/features/3.4.exp b/test/features/3.4.exp
index f81dc6e0a..996312334 100755
--- a/test/features/3.4.exp
+++ b/test/features/3.4.exp
@@ -1,6 +1,6 @@
1#!/usr/bin/expect -f 1#!/usr/bin/expect -f
2# 2#
3# whitelist 3# whitelist home
4# 4#
5 5
6set timeout 10 6set timeout 10
@@ -19,11 +19,54 @@ expect {
19} 19}
20sleep 1 20sleep 1
21 21
22send -- "ls -al ~/. | wc -l\r" 22send -- "ls -al | wc -l\r"
23expect { 23expect {
24 timeout {puts "TESTING ERROR 1\n";exit} 24 timeout {puts "TESTING ERROR 1.1\n";exit}
25 "6" 25 "6"
26} 26}
27
28send -- "ls -al .bashrc\r"
29expect {
30 timeout {puts "TESTING ERROR 1.2\n";exit}
31 "netblue"
32}
33expect {
34 timeout {puts "TESTING ERROR 1.3\n";exit}
35 "netblue"
36}
37expect {
38 timeout {puts "TESTING ERROR 1.4\n";exit}
39 ".bashrc"
40}
41
42send -- "ls -al .Xauthority\r"
43expect {
44 timeout {puts "TESTING ERROR 1.5\n";exit}
45 "netblue"
46}
47expect {
48 timeout {puts "TESTING ERROR 1.6\n";exit}
49 "netblue"
50}
51expect {
52 timeout {puts "TESTING ERROR 1.7\n";exit}
53 ".Xauthority"
54}
55
56send -- "ls -al | grep config\r"
57expect {
58 timeout {puts "TESTING ERROR 1.8\n";exit}
59 "netblue"
60}
61expect {
62 timeout {puts "TESTING ERROR 1.9\n";exit}
63 "netblue"
64}
65expect {
66 timeout {puts "TESTING ERROR 1.10\n";exit}
67 ".config"
68}
69
27after 100 70after 100
28send -- "exit\r" 71send -- "exit\r"
29sleep 1 72sleep 1
@@ -40,11 +83,54 @@ if { $overlay == "overlay" } {
40 } 83 }
41 sleep 1 84 sleep 1
42 85
43 send -- "ls -al ~/. | wc -l\r" 86 send -- "ls -al | wc -l\r"
44 expect { 87 expect {
45 timeout {puts "TESTING ERROR 1\n";exit} 88 timeout {puts "TESTING ERROR 3.1\n";exit}
46 "6" 89 "6"
47 } 90 }
91
92 send -- "ls -al .bashrc\r"
93 expect {
94 timeout {puts "TESTING ERROR 3.2\n";exit}
95 "netblue"
96 }
97 expect {
98 timeout {puts "TESTING ERROR 3.3\n";exit}
99 "netblue"
100 }
101 expect {
102 timeout {puts "TESTING ERROR 3.4\n";exit}
103 ".bashrc"
104 }
105
106 send -- "ls -al .Xauthority\r"
107 expect {
108 timeout {puts "TESTING ERROR 3.5\n";exit}
109 "netblue"
110 }
111 expect {
112 timeout {puts "TESTING ERROR 3.6\n";exit}
113 "netblue"
114 }
115 expect {
116 timeout {puts "TESTING ERROR 3.7\n";exit}
117 ".Xauthority"
118 }
119
120 send -- "ls -al | grep config\r"
121 expect {
122 timeout {puts "TESTING ERROR 3.8\n";exit}
123 "netblue"
124 }
125 expect {
126 timeout {puts "TESTING ERROR 3.9\n";exit}
127 "netblue"
128 }
129 expect {
130 timeout {puts "TESTING ERROR 3.10\n";exit}
131 ".config"
132 }
133
48 after 100 134 after 100
49 send -- "exit\r" 135 send -- "exit\r"
50 sleep 1 136 sleep 1
@@ -61,11 +147,54 @@ if { $chroot == "chroot" } {
61 } 147 }
62 sleep 1 148 sleep 1
63 149
64 send -- "ls -al ~/. | wc -l\r" 150 send -- "ls -al | wc -l\r"
65 expect { 151 expect {
66 timeout {puts "TESTING ERROR 1\n";exit} 152 timeout {puts "TESTING ERROR 5.1\n";exit}
67 "6" 153 "6"
68 } 154 }
155
156 send -- "ls -al .bashrc\r"
157 expect {
158 timeout {puts "TESTING ERROR 5.2\n";exit}
159 "netblue"
160 }
161 expect {
162 timeout {puts "TESTING ERROR 5.3\n";exit}
163 "netblue"
164 }
165 expect {
166 timeout {puts "TESTING ERROR 5.4\n";exit}
167 ".bashrc"
168 }
169
170 send -- "ls -al .Xauthority\r"
171 expect {
172 timeout {puts "TESTING ERROR 5.5\n";exit}
173 "netblue"
174 }
175 expect {
176 timeout {puts "TESTING ERROR 5.6\n";exit}
177 "netblue"
178 }
179 expect {
180 timeout {puts "TESTING ERROR 5.7\n";exit}
181 ".Xauthority"
182 }
183
184 send -- "ls -al | grep config\r"
185 expect {
186 timeout {puts "TESTING ERROR 5.8\n";exit}
187 "netblue"
188 }
189 expect {
190 timeout {puts "TESTING ERROR 5.9\n";exit}
191 "netblue"
192 }
193 expect {
194 timeout {puts "TESTING ERROR 5.10\n";exit}
195 ".config"
196 }
197
69 after 100 198 after 100
70 send -- "exit\r" 199 send -- "exit\r"
71 sleep 1 200 sleep 1