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