diff options
Diffstat (limited to 'test/net_defaultgw2.exp')
-rwxr-xr-x | test/net_defaultgw2.exp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/test/net_defaultgw2.exp b/test/net_defaultgw2.exp deleted file mode 100755 index db14e17cb..000000000 --- a/test/net_defaultgw2.exp +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | # check ip address | ||
8 | send -- "firejail --net=br0 --net=br1 --defaultgw=10.10.30.89 --protocol=unix,inet,netlink\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 0\n";exit} | ||
11 | "eth1" | ||
12 | } | ||
13 | expect { | ||
14 | timeout {puts "TESTING ERROR 4\n";exit} | ||
15 | "Child process initialized" | ||
16 | } | ||
17 | sleep 1 | ||
18 | |||
19 | # check default gateway | ||
20 | send -- "ip route show\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 10.1\n";exit} | ||
23 | "default via 10.10.30.89 dev eth1" | ||
24 | } | ||
25 | |||
26 | send -- "ip route show\r" | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 10.2\n";exit} | ||
29 | "10.10.20.0/29 dev eth0 proto kernel scope link" | ||
30 | } | ||
31 | |||
32 | send -- "ip route show\r" | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 10.3\n";exit} | ||
35 | "10.10.30.0/24 dev eth1 proto kernel scope link" | ||
36 | } | ||
37 | sleep 1 | ||
38 | |||
39 | puts "\nall done\n" | ||
40 | |||