diff options
Diffstat (limited to 'test/4bridges_arp.exp')
-rwxr-xr-x | test/4bridges_arp.exp | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/test/4bridges_arp.exp b/test/4bridges_arp.exp index 3004082e6..6a3e6db2a 100755 --- a/test/4bridges_arp.exp +++ b/test/4bridges_arp.exp | |||
@@ -115,7 +115,7 @@ sleep 2 | |||
115 | 115 | ||
116 | 116 | ||
117 | # check loopback | 117 | # check loopback |
118 | send -- "firejail --net=br0 --net=br1 --net=br2 --net=br3\r" | 118 | send -- "firejail --net=br0 --net=br1 --net=br2 --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" |
@@ -136,40 +136,35 @@ expect { | |||
136 | timeout {puts "TESTING ERROR 9\n";exit} | 136 | timeout {puts "TESTING ERROR 9\n";exit} |
137 | "Child process initialized" | 137 | "Child process initialized" |
138 | } | 138 | } |
139 | sleep 1 | ||
139 | 140 | ||
140 | # check default gateway | 141 | # check default gateway |
141 | send -- "bash\r" | 142 | send -- "ip route show\r" |
142 | sleep 1 | ||
143 | send -- "netstat -rn;pwd\r" | ||
144 | expect { | 143 | expect { |
145 | timeout {puts "TESTING ERROR 10.1\n";exit} | 144 | timeout {puts "TESTING ERROR 10.1\n";exit} |
146 | "0.0.0.0" | 145 | "default via 10.10.20.1 dev eth0" |
147 | } | 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 | } | ||
152 | expect { | ||
153 | timeout {puts "TESTING ERROR 10.3\n";exit} | ||
154 | "eth0" | ||
155 | } | 151 | } |
152 | send -- "ip route show\r" | ||
156 | expect { | 153 | expect { |
157 | timeout {puts "TESTING ERROR 10.4\n";exit} | 154 | timeout {puts "TESTING ERROR 10.2\n";exit} |
158 | "10.10.20.0" | 155 | "10.10.30.0/24 dev eth1 proto kernel scope link" |
159 | } | ||
160 | expect { | ||
161 | timeout {puts "TESTING ERROR 10.5\n";exit} | ||
162 | "0.0.0.0" | ||
163 | } | 156 | } |
157 | send -- "ip route show\r" | ||
164 | expect { | 158 | expect { |
165 | timeout {puts "TESTING ERROR 10.6\n";exit} | 159 | timeout {puts "TESTING ERROR 10.2\n";exit} |
166 | "eth0" | 160 | "10.10.40.0/24 dev eth2 proto kernel scope link" |
167 | } | 161 | } |
162 | send -- "ip route show\r" | ||
168 | expect { | 163 | expect { |
169 | timeout {puts "TESTING ERROR 10\n";exit} | 164 | timeout {puts "TESTING ERROR 10.2\n";exit} |
170 | "home" | 165 | "10.10.50.0/24 dev eth3 proto kernel scope link" |
171 | } | 166 | } |
172 | sleep 1 | 167 | sleep 1 |
173 | 168 | ||
174 | puts "\n" | 169 | puts "\nall done\n" |
175 | 170 | ||