diff options
Diffstat (limited to 'test/net_arp.exp')
-rwxr-xr-x | test/net_arp.exp | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/test/net_arp.exp b/test/net_arp.exp deleted file mode 100755 index 9e07744f3..000000000 --- a/test/net_arp.exp +++ /dev/null | |||
@@ -1,71 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --net=br0 sleep 20 &\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | send -- "firejail --net=br0 sleep 20 &\r" | ||
13 | expect { | ||
14 | timeout {puts "TESTING ERROR 1\n";exit} | ||
15 | "Child process initialized" | ||
16 | } | ||
17 | send -- "firejail --net=br0 sleep 20 &\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 2\n";exit} | ||
20 | "Child process initialized" | ||
21 | } | ||
22 | send -- "firejail --net=br0 sleep 20 &\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "Child process initialized" | ||
26 | } | ||
27 | send -- "firejail --net=br0 sleep 20 &\r" | ||
28 | expect { | ||
29 | timeout {puts "TESTING ERROR 4\n";exit} | ||
30 | "Child process initialized" | ||
31 | } | ||
32 | |||
33 | # will fail | ||
34 | send -- "firejail --net=br0 sleep 20 &\r" | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 5n";exit} | ||
37 | "cannot assign an IP address" | ||
38 | } | ||
39 | |||
40 | send -- "firejail --net=br0 sleep 20 &\r" | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 6\n";exit} | ||
43 | "cannot assign an IP address" | ||
44 | } | ||
45 | |||
46 | # check firejail --list | ||
47 | send -- "firejail --list\r" | ||
48 | expect { | ||
49 | timeout {puts "TESTING ERROR 7.1\n";exit} | ||
50 | "sleep 20" | ||
51 | } | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 7.2\n";exit} | ||
54 | "sleep 20" | ||
55 | } | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 7.3\n";exit} | ||
58 | "sleep 20" | ||
59 | } | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 7.4\n";exit} | ||
62 | "sleep 20" | ||
63 | } | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 7.5\n";exit} | ||
66 | "sleep 20" | ||
67 | } | ||
68 | |||
69 | # wait for snadboxes to be shutdown | ||
70 | sleep 30 | ||
71 | puts "\n" | ||