mbox series

[PATCHv2,net-next,00/13] Convert net selftests to run in unique namespace (Part 3)

Message ID 20231213060856.4030084-1-liuhangbin@gmail.com
Headers show
Series Convert net selftests to run in unique namespace (Part 3) | expand

Message

Hangbin Liu Dec. 13, 2023, 6:08 a.m. UTC
Here is the 3rd part of converting net selftests to run in unique namespace.
This part converts all srv6 and fib tests.

Note that patch 06 is a fix for testing fib_nexthop_multiprefix.

Here is the part 1 link:
https://lore.kernel.org/netdev/20231202020110.362433-1-liuhangbin@gmail.com
And part 2 link:
https://lore.kernel.org/netdev/20231206070801.1691247-1-liuhangbin@gmail.com

v1 -> v2:
- indent the test result in case --- cut off the patch (Jakub Kicinski)

Hangbin Liu (13):
  selftests/net: add variable NS_LIST for lib.sh
  selftests/net: convert srv6_end_dt46_l3vpn_test.sh to run it in unique
    namespace
  selftests/net: convert srv6_end_dt4_l3vpn_test.sh to run it in unique
    namespace
  selftests/net: convert srv6_end_dt6_l3vpn_test.sh to run it in unique
    namespace
  selftests/net: convert fcnal-test.sh to run it in unique namespace
  selftests/net: fix grep checking for fib_nexthop_multiprefix
  selftests/net: convert fib_nexthop_multiprefix to run it in unique
    namespace
  selftests/net: convert fib_nexthop_nongw.sh to run it in unique
    namespace
  selftests/net: convert fib_nexthops.sh to run it in unique namespace
  selftests/net: convert fib-onlink-tests.sh to run it in unique
    namespace
  selftests/net: convert fib_rule_tests.sh to run it in unique namespace
  selftests/net: convert fib_tests.sh to run it in unique namespace
  selftests/net: convert fdb_flush.sh to run it in unique namespace

 tools/testing/selftests/net/fcnal-test.sh     |  30 ++-
 tools/testing/selftests/net/fdb_flush.sh      |  11 +-
 .../testing/selftests/net/fib-onlink-tests.sh |   9 +-
 .../selftests/net/fib_nexthop_multiprefix.sh  |  98 +++++-----
 .../selftests/net/fib_nexthop_nongw.sh        |  34 ++--
 tools/testing/selftests/net/fib_nexthops.sh   | 142 +++++++-------
 tools/testing/selftests/net/fib_rule_tests.sh |  36 ++--
 tools/testing/selftests/net/fib_tests.sh      | 184 +++++++++---------
 tools/testing/selftests/net/lib.sh            |   8 +
 tools/testing/selftests/net/settings          |   2 +-
 .../selftests/net/srv6_end_dt46_l3vpn_test.sh |  51 +++--
 .../selftests/net/srv6_end_dt4_l3vpn_test.sh  |  48 ++---
 .../selftests/net/srv6_end_dt6_l3vpn_test.sh  |  46 ++---
 13 files changed, 332 insertions(+), 367 deletions(-)

Comments

Ido Schimmel Dec. 13, 2023, 1:54 p.m. UTC | #1
On Wed, Dec 13, 2023 at 02:08:56PM +0800, Hangbin Liu wrote:
> Here is the test result after conversion.
>  # ./fdb_flush.sh
>  TEST: vx10: Expected 5 FDB entries, got 5                           [ OK ]
>  TEST: vx20: Expected 5 FDB entries, got 5                           [ OK ]
>  ...
>  TEST: vx10: Expected 5 FDB entries, got 5                           [ OK ]
>  TEST: Test entries with dst 192.0.2.1                               [ OK ]
> 
> Acked-by: David Ahern <dsahern@kernel.org>
> Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>

Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Tested-by: Ido Schimmel <idosch@nvidia.com>
patchwork-bot+netdevbpf@kernel.org Dec. 15, 2023, 2:40 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Wed, 13 Dec 2023 14:08:43 +0800 you wrote:
> Here is the 3rd part of converting net selftests to run in unique namespace.
> This part converts all srv6 and fib tests.
> 
> Note that patch 06 is a fix for testing fib_nexthop_multiprefix.
> 
> Here is the part 1 link:
> https://lore.kernel.org/netdev/20231202020110.362433-1-liuhangbin@gmail.com
> And part 2 link:
> https://lore.kernel.org/netdev/20231206070801.1691247-1-liuhangbin@gmail.com
> 
> [...]

Here is the summary with links:
  - [PATCHv2,net-next,01/13] selftests/net: add variable NS_LIST for lib.sh
    https://git.kernel.org/netdev/net-next/c/b6925b4ed57c
  - [PATCHv2,net-next,02/13] selftests/net: convert srv6_end_dt46_l3vpn_test.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/59cac2efd378
  - [PATCHv2,net-next,03/13] selftests/net: convert srv6_end_dt4_l3vpn_test.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/7b2d941c81bc
  - [PATCHv2,net-next,04/13] selftests/net: convert srv6_end_dt6_l3vpn_test.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/792cd1dbc8a2
  - [PATCHv2,net-next,05/13] selftests/net: convert fcnal-test.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/779283b7770f
  - [PATCHv2,net-next,06/13] selftests/net: fix grep checking for fib_nexthop_multiprefix
    https://git.kernel.org/netdev/net-next/c/a33e9da34704
  - [PATCHv2,net-next,07/13] selftests/net: convert fib_nexthop_multiprefix to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/5ae89fe43a4e
  - [PATCHv2,net-next,08/13] selftests/net: convert fib_nexthop_nongw.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/d2168ea79234
  - [PATCHv2,net-next,09/13] selftests/net: convert fib_nexthops.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/39333e31672c
  - [PATCHv2,net-next,10/13] selftests/net: convert fib-onlink-tests.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/3a06833b2adc
  - [PATCHv2,net-next,11/13] selftests/net: convert fib_rule_tests.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/6c0ee7b4d69d
  - [PATCHv2,net-next,12/13] selftests/net: convert fib_tests.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/f6fc5b949911
  - [PATCHv2,net-next,13/13] selftests/net: convert fdb_flush.sh to run it in unique namespace
    https://git.kernel.org/netdev/net-next/c/b795db185e32

You are awesome, thank you!