aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/2.3.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 16:42:58 -0500
commitdda687ed2a748cb262b317e0c7fdf4a9c4ae2d31 (patch)
tree144fba235fec87d74deff110aaa71891174b3eef /test/features/2.3.exp
parent0.9.36 testing (diff)
downloadfirejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.gz
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.tar.zst
firejail-dda687ed2a748cb262b317e0c7fdf4a9c4ae2d31.zip
0.9.36 testing
Diffstat (limited to 'test/features/2.3.exp')
-rwxr-xr-xtest/features/2.3.exp174
1 files changed, 88 insertions, 86 deletions
diff --git a/test/features/2.3.exp b/test/features/2.3.exp
index 9201696c2..097050935 100755
--- a/test/features/2.3.exp
+++ b/test/features/2.3.exp
@@ -196,93 +196,95 @@ if { $overlay == "overlay" } {
196# 196#
197# C 197# C
198# 198#
199send -- "firejail --noprofile --net=eth0 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" 199if { $chroot == "chroot" } {
200expect { 200 send -- "firejail --noprofile --net=eth0 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r"
201 timeout {puts "TESTING ERROR 4\n";exit} 201 expect {
202 "Child process initialized" 202 timeout {puts "TESTING ERROR 4\n";exit}
203} 203 "Child process initialized"
204sleep 1 204 }
205 205 sleep 1
206send -- "dig google.com\r" 206
207expect { 207 send -- "dig google.com\r"
208 timeout {puts "TESTING ERROR 5\n";exit} 208 expect {
209 "ANSWER SECTION" 209 timeout {puts "TESTING ERROR 5\n";exit}
210} 210 "ANSWER SECTION"
211expect { 211 }
212 timeout {puts "TESTING ERROR 5.1\n";exit} 212 expect {
213 "google.com" 213 timeout {puts "TESTING ERROR 5.1\n";exit}
214} 214 "google.com"
215expect { 215 }
216 timeout {puts "TESTING ERROR 5.3\n";exit} 216 expect {
217 "SERVER:" 217 timeout {puts "TESTING ERROR 5.3\n";exit}
218} 218 "SERVER:"
219after 100 219 }
220 220 after 100
221send -- "/sbin/ifconfig\r" 221
222expect { 222 send -- "/sbin/ifconfig\r"
223 timeout {puts "TESTING ERROR 5.4\n";exit} 223 expect {
224 "eth0" 224 timeout {puts "TESTING ERROR 5.4\n";exit}
225} 225 "eth0"
226expect { 226 }
227 timeout {puts "TESTING ERROR 5.5\n";exit} 227 expect {
228 "Link" 228 timeout {puts "TESTING ERROR 5.5\n";exit}
229} 229 "Link"
230expect { 230 }
231 timeout {puts "TESTING ERROR 5.6\n";exit} 231 expect {
232 "192.168.1" 232 timeout {puts "TESTING ERROR 5.6\n";exit}
233} 233 "192.168.1"
234expect { 234 }
235 timeout {puts "TESTING ERROR 5.7\n";exit} 235 expect {
236 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" 236 timeout {puts "TESTING ERROR 5.7\n";exit}
237} 237 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
238after 100 238 }
239 239 after 100
240send -- "exit\r" 240
241sleep 3 241 send -- "exit\r"
242 242 sleep 3
243send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" 243
244expect { 244 send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r"
245 timeout {puts "TESTING ERROR 4\n";exit} 245 expect {
246 "Child process initialized" 246 timeout {puts "TESTING ERROR 4\n";exit}
247} 247 "Child process initialized"
248sleep 1 248 }
249 249 sleep 1
250send -- "dig google.com\r" 250
251expect { 251 send -- "dig google.com\r"
252 timeout {puts "TESTING ERROR 5\n";exit} 252 expect {
253 "ANSWER SECTION" 253 timeout {puts "TESTING ERROR 5\n";exit}
254} 254 "ANSWER SECTION"
255expect { 255 }
256 timeout {puts "TESTING ERROR 5.1\n";exit} 256 expect {
257 "google.com" 257 timeout {puts "TESTING ERROR 5.1\n";exit}
258} 258 "google.com"
259expect { 259 }
260 timeout {puts "TESTING ERROR 5.3\n";exit} 260 expect {
261 "SERVER:" 261 timeout {puts "TESTING ERROR 5.3\n";exit}
262} 262 "SERVER:"
263after 100 263 }
264 264 after 100
265send -- "/sbin/ifconfig\r" 265
266expect { 266 send -- "/sbin/ifconfig\r"
267 timeout {puts "TESTING ERROR 5.4\n";exit} 267 expect {
268 "eth0" 268 timeout {puts "TESTING ERROR 5.4\n";exit}
269} 269 "eth0"
270expect { 270 }
271 timeout {puts "TESTING ERROR 5.5\n";exit} 271 expect {
272 "Link" 272 timeout {puts "TESTING ERROR 5.5\n";exit}
273} 273 "Link"
274expect { 274 }
275 timeout {puts "TESTING ERROR 5.6\n";exit} 275 expect {
276 "192.168.1.244" 276 timeout {puts "TESTING ERROR 5.6\n";exit}
277} 277 "192.168.1.244"
278expect { 278 }
279 timeout {puts "TESTING ERROR 5.7\n";exit} 279 expect {
280 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1" 280 timeout {puts "TESTING ERROR 5.7\n";exit}
281 "UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1"
282 }
283 after 100
284
285 send -- "exit\r"
286 sleep 1
281} 287}
282after 100
283
284send -- "exit\r"
285sleep 1
286 288
287 289
288puts "\nall done\n" 290puts "\nall done\n"