make -C tools/testing/selftests TARGETS=net TEST_PROGS=fib_tests.sh TEST_GGEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-1/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-1/tools/testing/selftests/net' TAP version 13 1..1 # timeout set to 3600 # selftests: net: fib_tests.sh # # Single path route test # Start point # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # Nexthop device deleted # TEST: IPv4 fibmatch - no route [ OK ] # TEST: IPv6 fibmatch - no route [ OK ] # # Multipath route test # Start point # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # One nexthop device deleted # TEST: IPv4 - multipath route removed on delete [ OK ] # TEST: IPv6 - multipath down to single path [ OK ] # Second nexthop device deleted # TEST: IPv6 - no route [ OK ] # # Single path, admin down # Start point # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # Route deleted on down # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # # Admin down multipath # Verify start point # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # One device down, one up # TEST: IPv4 fibmatch on down device [ OK ] # TEST: IPv6 fibmatch on down device [ OK ] # TEST: IPv4 fibmatch on up device [ OK ] # TEST: IPv6 fibmatch on up device [ OK ] # TEST: IPv4 flags on down device [ OK ] # TEST: IPv6 flags on down device [ OK ] # TEST: IPv4 flags on up device [ OK ] # TEST: IPv6 flags on up device [ OK ] # Other device down and up # TEST: IPv4 fibmatch on down device [ OK ] # TEST: IPv6 fibmatch on down device [ OK ] # TEST: IPv4 fibmatch on up device [ OK ] # TEST: IPv6 fibmatch on up device [ OK ] # TEST: IPv4 flags on down device [ OK ] # TEST: IPv6 flags on down device [ OK ] # TEST: IPv4 flags on up device [ OK ] # TEST: IPv6 flags on up device [ OK ] # Both devices down # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # # Local carrier tests - single path # Start point # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # TEST: IPv4 - no linkdown flag [ OK ] # TEST: IPv6 - no linkdown flag [ OK ] # Carrier off on nexthop # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # TEST: IPv4 - linkdown flag set [ OK ] # TEST: IPv6 - linkdown flag set [ OK ] # Route to local address with carrier down # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # TEST: IPv4 linkdown flag set [ OK ] # TEST: IPv6 linkdown flag set [ OK ] # # Single path route carrier test # Start point # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # TEST: IPv4 no linkdown flag [ OK ] # TEST: IPv6 no linkdown flag [ OK ] # Carrier down # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # TEST: IPv4 linkdown flag set [ OK ] # TEST: IPv6 linkdown flag set [ OK ] # Second address added with carrier down # TEST: IPv4 fibmatch [ OK ] # TEST: IPv6 fibmatch [ OK ] # TEST: IPv4 linkdown flag set [ OK ] # TEST: IPv6 linkdown flag set [ OK ] # # IPv4 nexthop tests # <<< write me >>> # # IPv6 nexthop tests # TEST: Directly connected nexthop, unicast address [ OK ] # TEST: Directly connected nexthop, unicast address with device [ OK ] # TEST: Gateway is linklocal address [ OK ] # TEST: Gateway is linklocal address, no device [ OK ] # TEST: Gateway can not be local unicast address [ OK ] # TEST: Gateway can not be local unicast address, with device [ OK ] # TEST: Gateway can not be a local linklocal address [ OK ] # TEST: Gateway can be local address in a VRF [ OK ] # TEST: Gateway can be local address in a VRF, with device [ OK ] # TEST: Gateway can be local linklocal address in a VRF [ OK ] # TEST: Redirect to VRF lookup [ OK ] # TEST: VRF route, gateway can be local address in default VRF [ OK ] # TEST: VRF route, gateway can not be a local address [ OK ] # TEST: VRF route, gateway can not be a local addr with device [ OK ] # # FIB rule with suppress_prefixlength # TEST: FIB rule suppress test [ OK ] # # Fib6 info length calculation in route notify test # TEST: ipv6 route add notify [ OK ] # # Fib4 info length calculation in route notify test # TEST: ipv4 route add notify [ OK ] # # IPv6 route add / append tests # TEST: Attempt to add duplicate route - gw [ OK ] # TEST: Attempt to add duplicate route - dev only [ OK ] # TEST: Attempt to add duplicate route - reject route [ OK ] # TEST: Append nexthop to existing route - gw [ OK ] # TEST: Add multipath route [ OK ] # TEST: Attempt to add duplicate multipath route [ OK ] # TEST: Route add with different metrics [ OK ] # TEST: Route delete with metric [ OK ] # # IPv6 route replace tests # TEST: Single path with single path [ OK ] # TEST: Single path with multipath [ OK ] # TEST: Single path with single path via multipath attribute [ OK ] # TEST: Invalid nexthop [ OK ] # TEST: Single path - replace of non-existent route [ OK ] # TEST: Multipath with multipath [ OK ] # TEST: Multipath with single path [ OK ] # TEST: Multipath with single path via multipath attribute [ OK ] # TEST: Multipath with dev-only [ OK ] # TEST: Multipath - invalid first nexthop [ OK ] # TEST: Multipath - invalid second nexthop [ OK ] # TEST: Multipath - replace of non-existent route [ OK ] # # IPv6 route with dsfield tests # TEST: Reject route with dsfield [ OK ] # # IPv4 route add / append tests # TEST: Attempt to add duplicate route - gw [ OK ] # TEST: Attempt to add duplicate route - dev only [ OK ] # TEST: Attempt to add duplicate route - reject route [ OK ] # TEST: Add new nexthop for existing prefix [ OK ] # TEST: Append nexthop to existing route - gw [ OK ] # TEST: Append nexthop to existing route - dev only [ OK ] # TEST: Append nexthop to existing route - reject route [ OK ] # TEST: Append nexthop to existing reject route - gw [ OK ] # TEST: Append nexthop to existing reject route - dev only [ OK ] # TEST: add multipath route [ OK ] # TEST: Attempt to add duplicate multipath route [ OK ] # TEST: Route add with different metrics [ OK ] # TEST: Route delete with metric [ OK ] # # IPv4 route replace tests # TEST: Single path with single path [ OK ] # TEST: Single path with multipath [ OK ] # TEST: Single path with reject route [ OK ] # TEST: Single path with single path via multipath attribute [ OK ] # TEST: Invalid nexthop [ OK ] # TEST: Single path - replace of non-existent route [ OK ] # TEST: Multipath with multipath [ OK ] # TEST: Multipath with single path [ OK ] # TEST: Multipath with single path via multipath attribute [ OK ] # TEST: Multipath with reject route [ OK ] # TEST: Multipath - invalid first nexthop [ OK ] # TEST: Multipath - invalid second nexthop [ OK ] # TEST: Multipath - replace of non-existent route [ OK ] # TEST: Cached route removed from VRF port device [ OK ] # # IPv4 route with dsfield tests # TEST: Reject route with dsfield 0x01 [ OK ] # TEST: Reject route with dsfield 0x02 [ OK ] # TEST: Reject route with dsfield 0x03 [ OK ] # TEST: IPv4 route with DSCP and ECN:Not-ECT [ OK ] # TEST: IPv4 route with DSCP and ECN:ECT(1) [ OK ] # TEST: IPv4 route with DSCP and ECN:ECT(0) [ OK ] # TEST: IPv4 route with DSCP and ECN:CE [ OK ] # TEST: IPv4 route with unknown DSCP and ECN:Not-ECT [ OK ] # TEST: IPv4 route with unknown DSCP and ECN:ECT(1) [ OK ] # TEST: IPv4 route with unknown DSCP and ECN:ECT(0) [ OK ] # TEST: IPv4 route with unknown DSCP and ECN:CE [ OK ] # TEST: IPv4 route with no DSCP and ECN:Not-ECT [ OK ] # TEST: IPv4 route with no DSCP and ECN:ECT(1) [ OK ] # TEST: IPv4 route with no DSCP and ECN:ECT(0) [ OK ] # TEST: IPv4 route with no DSCP and ECN:CE [ OK ] # # IPv6 prefix route tests # TEST: Default metric [ OK ] # TEST: User specified metric on first device [ OK ] # TEST: User specified metric on second device [ OK ] # TEST: Delete of address on first device [ OK ] # TEST: Modify metric of address [ OK ] # TEST: Prefix route removed on link down [ OK ] # TEST: Prefix route with metric on link up [ OK ] # TEST: Set metric with peer route on local side [ OK ] # TEST: Set metric with peer route on peer side [ OK ] # TEST: Modify metric and peer address on local side [ OK ] # TEST: Modify metric and peer address on peer side [ OK ] # # IPv4 prefix route tests # TEST: Default metric [ OK ] # TEST: User specified metric on first device [ OK ] # TEST: User specified metric on second device [ OK ] # TEST: Delete of address on first device [ OK ] # TEST: Modify metric of address [ OK ] # TEST: Prefix route removed on link down [ OK ] # TEST: Prefix route with metric on link up [ OK ] # TEST: Modify metric of .0/24 address [ OK ] # TEST: Set metric of address with peer route [ OK ] # TEST: Modify metric and peer address for peer route [ OK ] # # IPv6 routes with metrics # TEST: Single path route with mtu metric [ OK ] # TEST: Multipath route via 2 single routes with mtu metric on first [ OK ] # TEST: Multipath route via 2 single routes with mtu metric on 2nd [ OK ] # TEST: MTU of second leg [ OK ] # TEST: Multipath route with mtu metric [ OK ] # TEST: Using route with mtu metric [ OK ] # TEST: Invalid metric (fails metric_convert) [ OK ] # # IPv4 route add / append tests # TEST: Single path route with mtu metric [ OK ] # TEST: Multipath route with mtu metric [ OK ] # TEST: Using route with mtu metric [ OK ] # TEST: Invalid metric (fails metric_convert) [ OK ] # # IPv4 route with IPv6 gateway tests # TEST: Single path route with IPv6 gateway [ OK ] # TEST: Single path route with IPv6 gateway - ping [ OK ] # TEST: Single path route delete [ OK ] # TEST: Multipath route add - v6 nexthop then v4 [ OK ] # TEST: Multipath route delete - nexthops in wrong order [ OK ] # TEST: Multipath route delete exact match [ OK ] # TEST: Multipath route add - v4 nexthop then v6 [ OK ] # TEST: Multipath route delete - nexthops in wrong order [ OK ] # TEST: Multipath route delete exact match [ OK ] # # IPv4 rp_filter tests # TEST: rp_filter passes local packets [ OK ] # TEST: rp_filter passes loopback packets [ OK ] # # IPv4 delete address route tests # Regular FIB info # TEST: Route removed from VRF when source address deleted [ OK ] # TEST: Route in default VRF not removed [ OK ] # TEST: Route removed in default VRF when source address deleted [ OK ] # TEST: Route in VRF is not removed by address delete [ OK ] # Identical FIB info with different table ID # TEST: Route removed from VRF when source address deleted [ OK ] # TEST: Route in default VRF not removed [ OK ] # TEST: Route removed in default VRF when source address deleted [ OK ] # TEST: Route in VRF is not removed by address delete [ OK ] # Table ID 0 # TEST: Route removed in default VRF when source address deleted [ OK ] # # IPv6 delete address route tests # Single device using src address # TEST: Prefsrc removed when src address removed on other device [ OK ] # Two devices with the same source address # TEST: Prefsrc not removed when src address exist on other device [ OK ] # TEST: Prefsrc removed when src address removed on all devices [ OK ] # VRF with single device using src address # TEST: Prefsrc removed when src address removed on other device [ OK ] # VRF with two devices using src address # TEST: Prefsrc not removed when src address exist on other device [ OK ] # TEST: Prefsrc removed when src address removed on all devices [ OK ] # src address and nexthop dev in same VRF # TEST: Prefsrc removed from VRF when source address deleted [ OK ] # TEST: Prefsrc in default VRF not removed [ OK ] # TEST: Prefsrc not removed from VRF when source address exist [ OK ] # TEST: Prefsrc in default VRF removed [ OK ] # src address and nexthop device in different VRF # TEST: Prefsrc not removed from VRF when nexthop dev in diff VRF [ OK ] # TEST: Prefsrc not removed in default VRF [ OK ] # TEST: Prefsrc removed from VRF when nexthop dev in diff VRF [ OK ] # TEST: Prefsrc removed in default VRF [ OK ] # Table ID 0 # TEST: Prefsrc removed from default VRF when source address deleted [ OK ] # Link local source route # TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # TEST: Prefsrc removed when delete ll addr [ OK ] # TEST: Prefsrc not removed when delete ll addr from other dev [ OK ] # TEST: Prefsrc removed even ll addr still exist on other dev [ OK ] # # IPv4 mangling tests # TEST: Connection with correct parameters [ OK ] # TEST: Connection with incorrect parameters [ OK ] # TEST: Connection with correct parameters - mangling [ OK ] # TEST: Connection with correct parameters - no mangling [ OK ] # TEST: Connection check - server side [ OK ] # # IPv6 mangling tests # TEST: Connection with correct parameters [ OK ] # TEST: Connection with incorrect parameters [ OK ] # TEST: Connection with correct parameters - mangling [ OK ] # TEST: Connection with correct parameters - no mangling [ OK ] # TEST: Connection check - server side [ OK ] # # IPv4 broadcast neighbour tests # TEST: Resolved neighbour for broadcast address [ OK ] # TEST: Resolved neighbour for network broadcast address [ OK ] # TEST: Unresolved neighbour for broadcast address [ OK ] # TEST: Unresolved neighbour for network broadcast address [ OK ] # # Fib6 garbage collection test # TEST: ipv6 route garbage collection [ OK ] # TEST: ipv6 route garbage collection (with permanent routes) [ OK ] # TEST: ipv6 route garbage collection (replace with expires) [ OK ] # TEST: ipv6 route garbage collection (replace with permanent) [ OK ] # TEST: ipv6 route garbage collection (RA message) [ OK ] # # IPv4 multipath list receive tests # TEST: Multipath route hit ratio (1.00) [ OK ] # # IPv6 multipath list receive tests # TEST: Multipath route hit ratio (1.00) [ OK ] # # Tests passed: 229 # Tests failed: 0 ok 1 selftests: net: fib_tests.sh make[1]: Leaving directory '/home/virtme/testing-1/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-1/tools/testing/selftests' xx__-> echo $? 0 xx__->