diff options
Diffstat (limited to 'test/4bridges_ip.exp')
-rwxr-xr-x | test/4bridges_ip.exp | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/test/4bridges_ip.exp b/test/4bridges_ip.exp index 9e37b4ff4..8068aeebb 100755 --- a/test/4bridges_ip.exp +++ b/test/4bridges_ip.exp | |||
@@ -115,7 +115,7 @@ sleep 2 | |||
115 | 115 | ||
116 | 116 | ||
117 | # check loopback | 117 | # check loopback |
118 | send -- "firejail --net=br0 --net=br1 --ip=10.10.30.50 --net=br2 --ip=10.10.40.100 --net=br3\r" | 118 | send -- "firejail --net=br0 --net=br1 --ip=10.10.30.50 --net=br2 --ip=10.10.40.100 --net=br3 --protocol=unix,inet,netlink\r" |
119 | expect { | 119 | expect { |
120 | timeout {puts "TESTING ERROR 5\n";exit} | 120 | timeout {puts "TESTING ERROR 5\n";exit} |
121 | "lo" | 121 | "lo" |
@@ -138,38 +138,37 @@ expect { | |||
138 | } | 138 | } |
139 | 139 | ||
140 | # check default gateway | 140 | # check default gateway |
141 | send -- "bash\r" | 141 | send -- "ip route show\r" |
142 | sleep 1 | ||
143 | send -- "netstat -rn;pwd\r" | ||
144 | expect { | 142 | expect { |
145 | timeout {puts "TESTING ERROR 10.1\n";exit} | 143 | timeout {puts "TESTING ERROR 10.1\n";exit} |
146 | "0.0.0.0" | 144 | "default via 10.10.20.1 dev eth0" |
147 | } | 145 | } |
146 | |||
147 | send -- "ip route show\r" | ||
148 | expect { | 148 | expect { |
149 | timeout {puts "TESTING ERROR 10.2\n";exit} | 149 | timeout {puts "TESTING ERROR 10.2\n";exit} |
150 | "10.10.20.1" | 150 | "10.10.20.0/29 dev eth0 proto kernel scope link" |
151 | } | 151 | } |
152 | |||
153 | send -- "ip route show\r" | ||
152 | expect { | 154 | expect { |
153 | timeout {puts "TESTING ERROR 10.3\n";exit} | 155 | timeout {puts "TESTING ERROR 10.3\n";exit} |
154 | "eth0" | 156 | "10.10.30.0/24 dev eth1 proto kernel scope link src 10.10.30.50" |
155 | } | 157 | } |
158 | |||
159 | send -- "ip route show\r" | ||
156 | expect { | 160 | expect { |
157 | timeout {puts "TESTING ERROR 10.4\n";exit} | 161 | timeout {puts "TESTING ERROR 10.4\n";exit} |
158 | "10.10.20.0" | 162 | "10.10.40.0/24 dev eth2 proto kernel scope link src 10.10.40.100" |
159 | } | 163 | } |
164 | |||
165 | send -- "ip route show\r" | ||
160 | expect { | 166 | expect { |
161 | timeout {puts "TESTING ERROR 10.5\n";exit} | 167 | timeout {puts "TESTING ERROR 10.5\n";exit} |
162 | "0.0.0.0" | 168 | "10.10.50.0/24 dev eth3 proto kernel scope link" |
163 | } | ||
164 | expect { | ||
165 | timeout {puts "TESTING ERROR 10.6\n";exit} | ||
166 | "eth0" | ||
167 | } | ||
168 | expect { | ||
169 | timeout {puts "TESTING ERROR 10\n";exit} | ||
170 | "home" | ||
171 | } | 169 | } |
170 | |||
172 | sleep 1 | 171 | sleep 1 |
173 | 172 | ||
174 | puts "\n" | 173 | puts "\nall done\n" |
175 | 174 | ||