Lines Matching refs:log_test
26 log_test() function
110 log_test $? 0 "IPv4 fibmatch"
112 log_test $? 0 "IPv6 fibmatch"
120 log_test $? 2 "IPv4 fibmatch - no route"
122 log_test $? 2 "IPv6 fibmatch - no route"
151 log_test $? 0 "IPv4 fibmatch"
153 log_test $? 0 "IPv6 fibmatch"
161 log_test $? 2 "IPv4 - multipath route removed on delete"
165 log_test $? 0 "IPv6 - multipath down to single path"
173 log_test $? 2 "IPv6 - no route"
193 log_test $? 0 "IPv4 fibmatch"
195 log_test $? 0 "IPv6 fibmatch"
203 log_test $? 2 "IPv4 fibmatch"
205 log_test $? 2 "IPv6 fibmatch"
217 log_test $? 2 "IPv4 fibmatch on down device"
220 log_test $? 2 "IPv6 fibmatch on down device"
224 log_test $? 0 "IPv4 fibmatch on up device"
227 log_test $? 0 "IPv6 fibmatch on up device"
231 log_test $? 0 "IPv4 flags on down device"
234 log_test $? 0 "IPv6 flags on down device"
238 log_test $? 1 "IPv4 flags on up device"
241 log_test $? 1 "IPv6 flags on up device"
268 log_test $? 0 "IPv4 fibmatch"
271 log_test $? 0 "IPv6 fibmatch"
294 log_test $? 2 "IPv4 fibmatch"
296 log_test $? 2 "IPv6 fibmatch"
322 log_test $? 0 "IPv4 fibmatch"
324 log_test $? 0 "IPv6 fibmatch"
328 log_test $? 1 "IPv4 - no linkdown flag"
331 log_test $? 1 "IPv6 - no linkdown flag"
340 log_test $? 0 "IPv4 fibmatch"
342 log_test $? 0 "IPv6 fibmatch"
346 log_test $? 1 "IPv4 - linkdown flag set"
349 log_test $? 1 "IPv6 - linkdown flag set"
358 log_test $? 0 "IPv4 fibmatch"
360 log_test $? 0 "IPv6 fibmatch"
364 log_test $? 1 "IPv4 linkdown flag set"
367 log_test $? 1 "IPv6 linkdown flag set"
387 log_test $? 0 "IPv4 fibmatch"
389 log_test $? 0 "IPv6 fibmatch"
393 log_test $? 1 "IPv4 no linkdown flag"
396 log_test $? 1 "IPv6 no linkdown flag"
405 log_test $? 0 "IPv4 fibmatch"
407 log_test $? 0 "IPv6 fibmatch"
411 log_test $? 0 "IPv4 linkdown flag set"
414 log_test $? 0 "IPv6 linkdown flag set"
423 log_test $? 0 "IPv4 fibmatch"
425 log_test $? 0 "IPv6 fibmatch"
429 log_test $? 0 "IPv4 linkdown flag set"
432 log_test $? 0 "IPv6 linkdown flag set"
505 log_test $? 0 "rp_filter passes local packets"
508 log_test $? 0 "rp_filter passes loopback packets"
541 log_test $rc $erc "$desc"
698 log_test $ret 0 "ipv6 route add notify"
745 log_test $ret 0 "ipv4 route add notify"
811 log_test $ret 0 "ipv6 route garbage collection"
831 log_test 0 0 "FIB rule suppress test"
1006 log_test $? 2 "Attempt to add duplicate route - gw"
1011 log_test $? 2 "Attempt to add duplicate route - dev only"
1016 log_test $? 2 "Attempt to add duplicate route - reject route"
1023 log_test $? 0 "Append nexthop to existing route - gw"
1028 log_test $? 0 "Add multipath route"
1032 log_test $? 2 "Attempt to add duplicate multipath route"
1042 log_test $rc 0 "Route add with different metrics"
1050 log_test $rc 0 "Route delete with metric"
1060 log_test $? 0 "Single path with single path"
1067 log_test $? 0 "Single path with multipath"
1074 log_test $? 0 "Single path with single path via multipath attribute"
1082 log_test 0 1 "Invalid nexthop"
1085 log_test $? 0 "Invalid nexthop"
1093 log_test $? 2 "Single path - replace of non-existent route"
1102 log_test $? 0 "Multipath with multipath"
1108 log_test $? 0 "Multipath with single path"
1114 log_test $? 0 "Multipath with single path via multipath attribute"
1120 log_test $? 0 "Multipath with dev-only"
1126 log_test $? 0 "Multipath - invalid first nexthop"
1132 log_test $? 0 "Multipath - invalid second nexthop"
1137 log_test $? 2 "Multipath - replace of non-existent route"
1158 log_test $? 2 "Reject route with dsfield"
1206 log_test $? 0 "Default metric"
1214 log_test $? 0 "User specified metric on first device"
1222 log_test $? 0 "User specified metric on second device"
1230 log_test $rc 0 "Delete of address on first device"
1238 log_test $rc 0 "Modify metric of address"
1249 log_test $rc 0 "Prefix route removed on link down"
1258 log_test $rc 0 "Prefix route with metric on link up"
1267 log_test $? 0 "Set metric with peer route on local side"
1269 log_test $? 0 "Set metric with peer route on peer side"
1276 log_test $? 0 "Modify metric and peer address on local side"
1278 log_test $? 0 "Modify metric and peer address on peer side"
1303 log_test $rc 0 "Single path route with mtu metric"
1316 log_test $rc 0 "Multipath route via 2 single routes with mtu metric on first"
1327 log_test $rc 0 "Multipath route via 2 single routes with mtu metric on 2nd"
1332 log_test $? 0 " MTU of second leg"
1344 log_test $rc 0 "Multipath route with mtu metric"
1348 log_test $? 0 "Using route with mtu metric"
1351 log_test $? 2 "Invalid metric (fails metric_convert)"
1418 log_test $? 2 "Attempt to add duplicate route - gw"
1423 log_test $? 2 "Attempt to add duplicate route - dev only"
1428 log_test $? 2 "Attempt to add duplicate route - reject route"
1435 log_test $? 0 "Add new nexthop for existing prefix"
1442 log_test $? 0 "Append nexthop to existing route - gw"
1447 log_test $? 0 "Append nexthop to existing route - dev only"
1452 log_test $? 0 "Append nexthop to existing route - reject route"
1458 log_test $? 0 "Append nexthop to existing reject route - gw"
1464 log_test $? 0 "Append nexthop to existing reject route - dev only"
1469 log_test $? 0 "add multipath route"
1473 log_test $? 2 "Attempt to add duplicate multipath route"
1483 log_test $rc 0 "Route add with different metrics"
1491 log_test $rc 0 "Route delete with metric"
1501 log_test $? 0 "Single path with single path"
1508 log_test $? 0 "Single path with multipath"
1515 log_test $? 0 "Single path with reject route"
1522 log_test $? 0 "Single path with single path via multipath attribute"
1530 log_test 0 1 "Invalid nexthop"
1533 log_test $? 0 "Invalid nexthop"
1541 log_test $? 2 "Single path - replace of non-existent route"
1550 log_test $? 0 "Multipath with multipath"
1556 log_test $? 0 "Multipath with single path"
1562 log_test $? 0 "Multipath with single path via multipath attribute"
1568 log_test $? 0 "Multipath with reject route"
1574 log_test $? 0 "Multipath - invalid first nexthop"
1580 log_test $? 0 "Multipath - invalid second nexthop"
1585 log_test $? 2 "Multipath - replace of non-existent route"
1618 log_test $? 0 "Cached route removed from VRF port device"
1630 log_test $? 2 "Reject route with dsfield 0x01"
1633 log_test $? 2 "Reject route with dsfield 0x02"
1636 log_test $? 2 "Reject route with dsfield 0x03"
1647 log_test $? 0 "IPv4 route with DSCP and ECN:Not-ECT"
1651 log_test $? 0 "IPv4 route with DSCP and ECN:ECT(1)"
1655 log_test $? 0 "IPv4 route with DSCP and ECN:ECT(0)"
1659 log_test $? 0 "IPv4 route with DSCP and ECN:CE"
1664 log_test $? 0 "IPv4 route with unknown DSCP and ECN:Not-ECT"
1668 log_test $? 0 "IPv4 route with unknown DSCP and ECN:ECT(1)"
1672 log_test $? 0 "IPv4 route with unknown DSCP and ECN:ECT(0)"
1676 log_test $? 0 "IPv4 route with unknown DSCP and ECN:CE"
1681 log_test $? 0 "IPv4 route with no DSCP and ECN:Not-ECT"
1685 log_test $? 0 "IPv4 route with no DSCP and ECN:ECT(1)"
1689 log_test $? 0 "IPv4 route with no DSCP and ECN:ECT(0)"
1693 log_test $? 0 "IPv4 route with no DSCP and ECN:CE"
1731 log_test $? 0 "Default metric"
1739 log_test $? 0 "User specified metric on first device"
1747 log_test $? 0 "User specified metric on second device"
1755 log_test $rc 0 "Delete of address on first device"
1763 log_test $rc 0 "Modify metric of address"
1773 log_test $rc 0 "Prefix route removed on link down"
1782 log_test $rc 0 "Prefix route with metric on link up"
1793 log_test $rc 0 "Modify metric of .0/24 address"
1802 log_test $rc 0 "Set metric of address with peer route"
1810 log_test $rc 0 "Modify metric and peer address for peer route"
1832 log_test $rc 0 "Single path route with mtu metric"
1841 log_test $rc 0 "Multipath route with mtu metric"
1845 log_test $? 0 "Using route with mtu metric"
1848 log_test $? 2 "Invalid metric (fails metric_convert)"
1889 log_test $? 1 "Route removed from VRF when source address deleted"
1892 log_test $? 0 "Route in default VRF not removed"
1899 log_test $? 1 "Route removed in default VRF when source address deleted"
1902 log_test $? 0 "Route in VRF is not removed by address delete"
1910 log_test $? 1 "Route removed from VRF when source address deleted"
1913 log_test $? 0 "Route in default VRF not removed"
1920 log_test $? 1 "Route removed in default VRF when source address deleted"
1923 log_test $? 0 "Route in VRF is not removed by address delete"
1931 log_test $? 1 "Route removed in default VRF when source address deleted"
2003 log_test $? 1 "Prefsrc removed when src address removed on other device"
2009 log_test $? 0 "Prefsrc not removed when src address exist on other device"
2013 log_test $? 1 "Prefsrc removed when src address removed on all devices"
2019 log_test $? 1 "Prefsrc removed when src address removed on other device"
2025 log_test $? 0 "Prefsrc not removed when src address exist on other device"
2029 log_test $? 1 "Prefsrc removed when src address removed on all devices"
2035 log_test $? 1 "Prefsrc removed from VRF when source address deleted"
2037 log_test $? 0 "Prefsrc in default VRF not removed"
2043 log_test $? 0 "Prefsrc not removed from VRF when source address exist"
2045 log_test $? 1 "Prefsrc in default VRF removed"
2051 log_test $? 0 "Prefsrc not removed from VRF when nexthop dev in diff VRF"
2053 log_test $? 0 "Prefsrc not removed in default VRF"
2058 log_test $? 1 "Prefsrc removed from VRF when nexthop dev in diff VRF"
2060 log_test $? 1 "Prefsrc removed in default VRF"
2066 log_test $? 1 "Prefsrc removed from default VRF when source address deleted"
2071 log_test $? 0 "Prefsrc not removed when delete ll addr from other dev"
2074 log_test $? 1 "Prefsrc removed when delete ll addr"
2076 log_test $? 0 "Prefsrc not removed when delete ll addr from other dev"
2080 log_test $? 1 "Prefsrc removed even ll addr still exist on other dev"
2103 log_test $rc 0 "Single path route with IPv6 gateway"
2109 log_test $rc 0 "Single path route with IPv6 gateway - ping"
2113 log_test $rc 0 "Single path route delete"
2123 log_test $rc 0 "Multipath route add - v6 nexthop then v4"
2129 log_test $? 2 " Multipath route delete - nexthops in wrong order"
2132 log_test $? 0 " Multipath route delete exact match"
2139 log_test $rc 0 "Multipath route add - v4 nexthop then v6"
2145 log_test $? 2 " Multipath route delete - nexthops in wrong order"
2148 log_test $? 0 " Multipath route delete exact match"
2211 log_test $? 0 " Connection with correct parameters"
2214 log_test $? 1 " Connection with incorrect parameters"
2220 log_test $? 0 " Connection with correct parameters - mangling"
2227 log_test $? 0 " Connection with correct parameters - no mangling"
2231 log_test $? 0 " Connection check - server side"
2269 log_test $? 0 " Connection with correct parameters"
2272 log_test $? 1 " Connection with incorrect parameters"
2278 log_test $? 0 " Connection with correct parameters - mangling"
2285 log_test $? 0 " Connection with correct parameters - no mangling"
2289 log_test $? 0 " Connection check - server side"
2342 log_test $? 0 "Resolved neighbour for broadcast address"
2345 log_test $? 0 "Resolved neighbour for network broadcast address"
2348 log_test $? 2 "Unresolved neighbour for broadcast address"
2351 log_test $? 2 "Unresolved neighbour for network broadcast address"
2413 log_test $? 0 "Multipath route hit ratio ($ratio)"