Lines Matching refs:log_test
22 log_test() function
105 log_test $? 0 "IPv4 fibmatch"
107 log_test $? 0 "IPv6 fibmatch"
115 log_test $? 2 "IPv4 fibmatch - no route"
117 log_test $? 2 "IPv6 fibmatch - no route"
146 log_test $? 0 "IPv4 fibmatch"
148 log_test $? 0 "IPv6 fibmatch"
156 log_test $? 2 "IPv4 - multipath route removed on delete"
160 log_test $? 0 "IPv6 - multipath down to single path"
168 log_test $? 2 "IPv6 - no route"
188 log_test $? 0 "IPv4 fibmatch"
190 log_test $? 0 "IPv6 fibmatch"
198 log_test $? 2 "IPv4 fibmatch"
200 log_test $? 2 "IPv6 fibmatch"
212 log_test $? 2 "IPv4 fibmatch on down device"
215 log_test $? 2 "IPv6 fibmatch on down device"
219 log_test $? 0 "IPv4 fibmatch on up device"
222 log_test $? 0 "IPv6 fibmatch on up device"
226 log_test $? 0 "IPv4 flags on down device"
229 log_test $? 0 "IPv6 flags on down device"
233 log_test $? 1 "IPv4 flags on up device"
236 log_test $? 1 "IPv6 flags on up device"
263 log_test $? 0 "IPv4 fibmatch"
266 log_test $? 0 "IPv6 fibmatch"
289 log_test $? 2 "IPv4 fibmatch"
291 log_test $? 2 "IPv6 fibmatch"
317 log_test $? 0 "IPv4 fibmatch"
319 log_test $? 0 "IPv6 fibmatch"
323 log_test $? 1 "IPv4 - no linkdown flag"
326 log_test $? 1 "IPv6 - no linkdown flag"
335 log_test $? 0 "IPv4 fibmatch"
337 log_test $? 0 "IPv6 fibmatch"
341 log_test $? 1 "IPv4 - linkdown flag set"
344 log_test $? 1 "IPv6 - linkdown flag set"
353 log_test $? 0 "IPv4 fibmatch"
355 log_test $? 0 "IPv6 fibmatch"
359 log_test $? 1 "IPv4 linkdown flag set"
362 log_test $? 1 "IPv6 linkdown flag set"
382 log_test $? 0 "IPv4 fibmatch"
384 log_test $? 0 "IPv6 fibmatch"
388 log_test $? 1 "IPv4 no linkdown flag"
391 log_test $? 1 "IPv6 no linkdown flag"
400 log_test $? 0 "IPv4 fibmatch"
402 log_test $? 0 "IPv6 fibmatch"
406 log_test $? 0 "IPv4 linkdown flag set"
409 log_test $? 0 "IPv6 linkdown flag set"
418 log_test $? 0 "IPv4 fibmatch"
420 log_test $? 0 "IPv6 fibmatch"
424 log_test $? 0 "IPv4 linkdown flag set"
427 log_test $? 0 "IPv6 linkdown flag set"
497 log_test $? 0 "rp_filter passes local packets"
500 log_test $? 0 "rp_filter passes loopback packets"
533 log_test $rc $erc "$desc"
690 log_test $ret 0 "ipv6 route add notify"
737 log_test $ret 0 "ipv4 route add notify"
775 log_test 1 0 "expected $expected routes, got $num"
812 log_test $ret 0 "ipv6 route garbage collection"
830 log_test $ret 0 "ipv6 route garbage collection (with permanent routes)"
848 log_test $ret 0 "ipv6 route garbage collection (replace with expires)"
868 log_test $ret 0 "ipv6 route garbage collection (replace with permanent)"
905 log_test $ret 0 "ipv6 route garbage collection (RA message)"
927 log_test 0 0 "FIB rule suppress test"
1100 log_test $? 2 "Attempt to add duplicate route - gw"
1105 log_test $? 2 "Attempt to add duplicate route - dev only"
1110 log_test $? 2 "Attempt to add duplicate route - reject route"
1117 log_test $? 0 "Append nexthop to existing route - gw"
1122 log_test $? 0 "Add multipath route"
1126 log_test $? 2 "Attempt to add duplicate multipath route"
1136 log_test $rc 0 "Route add with different metrics"
1144 log_test $rc 0 "Route delete with metric"
1154 log_test $? 0 "Single path with single path"
1161 log_test $? 0 "Single path with multipath"
1168 log_test $? 0 "Single path with single path via multipath attribute"
1176 log_test 0 1 "Invalid nexthop"
1179 log_test $? 0 "Invalid nexthop"
1187 log_test $? 2 "Single path - replace of non-existent route"
1196 log_test $? 0 "Multipath with multipath"
1202 log_test $? 0 "Multipath with single path"
1208 log_test $? 0 "Multipath with single path via multipath attribute"
1214 log_test $? 0 "Multipath with dev-only"
1220 log_test $? 0 "Multipath - invalid first nexthop"
1226 log_test $? 0 "Multipath - invalid second nexthop"
1231 log_test $? 2 "Multipath - replace of non-existent route"
1252 log_test $? 2 "Reject route with dsfield"
1300 log_test $? 0 "Default metric"
1308 log_test $? 0 "User specified metric on first device"
1316 log_test $? 0 "User specified metric on second device"
1324 log_test $rc 0 "Delete of address on first device"
1332 log_test $rc 0 "Modify metric of address"
1343 log_test $rc 0 "Prefix route removed on link down"
1352 log_test $rc 0 "Prefix route with metric on link up"
1361 log_test $? 0 "Set metric with peer route on local side"
1363 log_test $? 0 "Set metric with peer route on peer side"
1370 log_test $? 0 "Modify metric and peer address on local side"
1372 log_test $? 0 "Modify metric and peer address on peer side"
1397 log_test $rc 0 "Single path route with mtu metric"
1410 log_test $rc 0 "Multipath route via 2 single routes with mtu metric on first"
1421 log_test $rc 0 "Multipath route via 2 single routes with mtu metric on 2nd"
1426 log_test $? 0 " MTU of second leg"
1438 log_test $rc 0 "Multipath route with mtu metric"
1442 log_test $? 0 "Using route with mtu metric"
1445 log_test $? 2 "Invalid metric (fails metric_convert)"
1512 log_test $? 2 "Attempt to add duplicate route - gw"
1517 log_test $? 2 "Attempt to add duplicate route - dev only"
1522 log_test $? 2 "Attempt to add duplicate route - reject route"
1529 log_test $? 0 "Add new nexthop for existing prefix"
1536 log_test $? 0 "Append nexthop to existing route - gw"
1541 log_test $? 0 "Append nexthop to existing route - dev only"
1546 log_test $? 0 "Append nexthop to existing route - reject route"
1552 log_test $? 0 "Append nexthop to existing reject route - gw"
1558 log_test $? 0 "Append nexthop to existing reject route - dev only"
1563 log_test $? 0 "add multipath route"
1567 log_test $? 2 "Attempt to add duplicate multipath route"
1577 log_test $rc 0 "Route add with different metrics"
1585 log_test $rc 0 "Route delete with metric"
1595 log_test $? 0 "Single path with single path"
1602 log_test $? 0 "Single path with multipath"
1609 log_test $? 0 "Single path with reject route"
1616 log_test $? 0 "Single path with single path via multipath attribute"
1624 log_test 0 1 "Invalid nexthop"
1627 log_test $? 0 "Invalid nexthop"
1635 log_test $? 2 "Single path - replace of non-existent route"
1644 log_test $? 0 "Multipath with multipath"
1650 log_test $? 0 "Multipath with single path"
1656 log_test $? 0 "Multipath with single path via multipath attribute"
1662 log_test $? 0 "Multipath with reject route"
1668 log_test $? 0 "Multipath - invalid first nexthop"
1674 log_test $? 0 "Multipath - invalid second nexthop"
1679 log_test $? 2 "Multipath - replace of non-existent route"
1712 log_test $? 0 "Cached route removed from VRF port device"
1724 log_test $? 2 "Reject route with dsfield 0x01"
1727 log_test $? 2 "Reject route with dsfield 0x02"
1730 log_test $? 2 "Reject route with dsfield 0x03"
1741 log_test $? 0 "IPv4 route with DSCP and ECN:Not-ECT"
1745 log_test $? 0 "IPv4 route with DSCP and ECN:ECT(1)"
1749 log_test $? 0 "IPv4 route with DSCP and ECN:ECT(0)"
1753 log_test $? 0 "IPv4 route with DSCP and ECN:CE"
1758 log_test $? 0 "IPv4 route with unknown DSCP and ECN:Not-ECT"
1762 log_test $? 0 "IPv4 route with unknown DSCP and ECN:ECT(1)"
1766 log_test $? 0 "IPv4 route with unknown DSCP and ECN:ECT(0)"
1770 log_test $? 0 "IPv4 route with unknown DSCP and ECN:CE"
1775 log_test $? 0 "IPv4 route with no DSCP and ECN:Not-ECT"
1779 log_test $? 0 "IPv4 route with no DSCP and ECN:ECT(1)"
1783 log_test $? 0 "IPv4 route with no DSCP and ECN:ECT(0)"
1787 log_test $? 0 "IPv4 route with no DSCP and ECN:CE"
1825 log_test $? 0 "Default metric"
1833 log_test $? 0 "User specified metric on first device"
1841 log_test $? 0 "User specified metric on second device"
1849 log_test $rc 0 "Delete of address on first device"
1857 log_test $rc 0 "Modify metric of address"
1867 log_test $rc 0 "Prefix route removed on link down"
1876 log_test $rc 0 "Prefix route with metric on link up"
1887 log_test $rc 0 "Modify metric of .0/24 address"
1896 log_test $rc 0 "Set metric of address with peer route"
1904 log_test $rc 0 "Modify metric and peer address for peer route"
1926 log_test $rc 0 "Single path route with mtu metric"
1935 log_test $rc 0 "Multipath route with mtu metric"
1939 log_test $? 0 "Using route with mtu metric"
1942 log_test $? 2 "Invalid metric (fails metric_convert)"
1983 log_test $? 1 "Route removed from VRF when source address deleted"
1986 log_test $? 0 "Route in default VRF not removed"
1993 log_test $? 1 "Route removed in default VRF when source address deleted"
1996 log_test $? 0 "Route in VRF is not removed by address delete"
2004 log_test $? 1 "Route removed from VRF when source address deleted"
2007 log_test $? 0 "Route in default VRF not removed"
2014 log_test $? 1 "Route removed in default VRF when source address deleted"
2017 log_test $? 0 "Route in VRF is not removed by address delete"
2025 log_test $? 1 "Route removed in default VRF when source address deleted"
2097 log_test $? 1 "Prefsrc removed when src address removed on other device"
2103 log_test $? 0 "Prefsrc not removed when src address exist on other device"
2107 log_test $? 1 "Prefsrc removed when src address removed on all devices"
2113 log_test $? 1 "Prefsrc removed when src address removed on other device"
2119 log_test $? 0 "Prefsrc not removed when src address exist on other device"
2123 log_test $? 1 "Prefsrc removed when src address removed on all devices"
2129 log_test $? 1 "Prefsrc removed from VRF when source address deleted"
2131 log_test $? 0 "Prefsrc in default VRF not removed"
2137 log_test $? 0 "Prefsrc not removed from VRF when source address exist"
2139 log_test $? 1 "Prefsrc in default VRF removed"
2145 log_test $? 0 "Prefsrc not removed from VRF when nexthop dev in diff VRF"
2147 log_test $? 0 "Prefsrc not removed in default VRF"
2152 log_test $? 1 "Prefsrc removed from VRF when nexthop dev in diff VRF"
2154 log_test $? 1 "Prefsrc removed in default VRF"
2160 log_test $? 1 "Prefsrc removed from default VRF when source address deleted"
2165 log_test $? 0 "Prefsrc not removed when delete ll addr from other dev"
2168 log_test $? 1 "Prefsrc removed when delete ll addr"
2170 log_test $? 0 "Prefsrc not removed when delete ll addr from other dev"
2174 log_test $? 1 "Prefsrc removed even ll addr still exist on other dev"
2197 log_test $rc 0 "Single path route with IPv6 gateway"
2203 log_test $rc 0 "Single path route with IPv6 gateway - ping"
2207 log_test $rc 0 "Single path route delete"
2217 log_test $rc 0 "Multipath route add - v6 nexthop then v4"
2223 log_test $? 2 " Multipath route delete - nexthops in wrong order"
2226 log_test $? 0 " Multipath route delete exact match"
2233 log_test $rc 0 "Multipath route add - v4 nexthop then v6"
2239 log_test $? 2 " Multipath route delete - nexthops in wrong order"
2242 log_test $? 0 " Multipath route delete exact match"
2305 log_test $? 0 " Connection with correct parameters"
2308 log_test $? 1 " Connection with incorrect parameters"
2314 log_test $? 0 " Connection with correct parameters - mangling"
2321 log_test $? 0 " Connection with correct parameters - no mangling"
2325 log_test $? 0 " Connection check - server side"
2363 log_test $? 0 " Connection with correct parameters"
2366 log_test $? 1 " Connection with incorrect parameters"
2372 log_test $? 0 " Connection with correct parameters - mangling"
2379 log_test $? 0 " Connection with correct parameters - no mangling"
2383 log_test $? 0 " Connection check - server side"
2436 log_test $? 0 "Resolved neighbour for broadcast address"
2439 log_test $? 0 "Resolved neighbour for network broadcast address"
2442 log_test $? 2 "Unresolved neighbour for broadcast address"
2445 log_test $? 2 "Unresolved neighbour for network broadcast address"
2507 log_test $? 0 "Multipath route hit ratio ($ratio)"