diff options
Diffstat (limited to 'test/features/2.3.exp')
-rwxr-xr-x | test/features/2.3.exp | 174 |
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 | # |
199 | send -- "firejail --noprofile --net=eth0 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" | 199 | if { $chroot == "chroot" } { |
200 | expect { | 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" |
204 | sleep 1 | 204 | } |
205 | 205 | sleep 1 | |
206 | send -- "dig google.com\r" | 206 | |
207 | expect { | 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" |
211 | expect { | 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" |
215 | expect { | 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:" |
219 | after 100 | 219 | } |
220 | 220 | after 100 | |
221 | send -- "/sbin/ifconfig\r" | 221 | |
222 | expect { | 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" |
226 | expect { | 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" |
230 | expect { | 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" |
234 | expect { | 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" |
238 | after 100 | 238 | } |
239 | 239 | after 100 | |
240 | send -- "exit\r" | 240 | |
241 | sleep 3 | 241 | send -- "exit\r" |
242 | 242 | sleep 3 | |
243 | send -- "firejail --noprofile --net=eth0 --ip=192.168.1.244 --chroot=/tmp/chroot --dns=8.8.8.8 --dns=8.8.4.4\r" | 243 | |
244 | expect { | 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" |
248 | sleep 1 | 248 | } |
249 | 249 | sleep 1 | |
250 | send -- "dig google.com\r" | 250 | |
251 | expect { | 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" |
255 | expect { | 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" |
259 | expect { | 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:" |
263 | after 100 | 263 | } |
264 | 264 | after 100 | |
265 | send -- "/sbin/ifconfig\r" | 265 | |
266 | expect { | 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" |
270 | expect { | 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" |
274 | expect { | 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" |
278 | expect { | 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 | } |
282 | after 100 | ||
283 | |||
284 | send -- "exit\r" | ||
285 | sleep 1 | ||
286 | 288 | ||
287 | 289 | ||
288 | puts "\nall done\n" | 290 | puts "\nall done\n" |