diff options
Diffstat (limited to 'test/net_ip.exp')
-rwxr-xr-x | test/net_ip.exp | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/test/net_ip.exp b/test/net_ip.exp index 5995296c7..f5d487ecc 100755 --- a/test/net_ip.exp +++ b/test/net_ip.exp | |||
@@ -31,7 +31,7 @@ send -- "exit\r" | |||
31 | sleep 2 | 31 | sleep 2 |
32 | 32 | ||
33 | # check loopback | 33 | # check loopback |
34 | send -- "firejail --net=br0 --ip=10.10.20.5\r" | 34 | send -- "firejail --net=br0 --ip=10.10.20.5 --protocol=unix,inet,netlink\r" |
35 | expect { | 35 | expect { |
36 | timeout {puts "TESTING ERROR 5\n";exit} | 36 | timeout {puts "TESTING ERROR 5\n";exit} |
37 | "lo" | 37 | "lo" |
@@ -52,38 +52,19 @@ expect { | |||
52 | timeout {puts "TESTING ERROR 9\n";exit} | 52 | timeout {puts "TESTING ERROR 9\n";exit} |
53 | "Child process initialized" | 53 | "Child process initialized" |
54 | } | 54 | } |
55 | sleep 1 | ||
55 | 56 | ||
56 | # check default gateway | 57 | # check default gateway |
57 | send -- "bash\r" | 58 | send -- "ip route show\r" |
58 | sleep 1 | ||
59 | send -- "netstat -rn;pwd\r" | ||
60 | expect { | 59 | expect { |
61 | timeout {puts "TESTING ERROR 10.1\n";exit} | 60 | timeout {puts "TESTING ERROR 10.1\n";exit} |
62 | "0.0.0.0" | 61 | "default via 10.10.20.1 dev eth0" |
63 | } | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 10.2\n";exit} | ||
66 | "10.10.20.1" | ||
67 | } | ||
68 | expect { | ||
69 | timeout {puts "TESTING ERROR 10.3\n";exit} | ||
70 | "eth0" | ||
71 | } | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 10.4\n";exit} | ||
74 | "10.10.20.0" | ||
75 | } | ||
76 | expect { | ||
77 | timeout {puts "TESTING ERROR 10.5\n";exit} | ||
78 | "0.0.0.0" | ||
79 | } | ||
80 | expect { | ||
81 | timeout {puts "TESTING ERROR 10.6\n";exit} | ||
82 | "eth0" | ||
83 | } | 62 | } |
63 | |||
64 | send -- "ip route show\r" | ||
84 | expect { | 65 | expect { |
85 | timeout {puts "TESTING ERROR 10\n";exit} | 66 | timeout {puts "TESTING ERROR 10\n";exit} |
86 | "home" | 67 | "10.10.20.0/29 dev eth0 proto kernel scope link" |
87 | } | 68 | } |
88 | sleep 1 | 69 | sleep 1 |
89 | 70 | ||