selftests: fib_tests: Add a test case for IPv6 garbage collection
authorKui-Feng Lee <thinker.li@gmail.com>
Tue, 15 Aug 2023 18:07:06 +0000 (11:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2023 11:26:43 +0000 (12:26 +0100)
commita63e10da42e757408d98732aaf5cf84bfd3a8276
tree8c8afcc445ef67bf8afa8cb5fdd9e7b94058ac09
parent3dec89b14d37ee635e772636dad3f09f78f1ab87
selftests: fib_tests: Add a test case for IPv6 garbage collection

Add 1000 IPv6 routes with expiration time (w/ and w/o additional 5000
permanet routes in the background.)  Wait for a few seconds to make sure
they are removed correctly.

The expected output of the test looks like the following example.

> Fib6 garbage collection test
>     TEST: ipv6 route garbage collection [ OK ]

Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_tests.sh