Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: router_vid_1: Add a diagram, fix coding style

It is customary for selftests to have a comment with a topology diagram,
which serves to illustrate the situation in which the test is done. This
selftest lacks it. Add it.

While at it, fix the list of tests so that the test names are enumerated
one at a line.

Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Petr Machata and committed by
David S. Miller
5ade50e2 18d2c710

+26 -1
+26 -1
tools/testing/selftests/net/forwarding/router_vid_1.sh
··· 1 1 #!/bin/bash 2 2 # SPDX-License-Identifier: GPL-2.0 3 3 4 - ALL_TESTS="ping_ipv4 ping_ipv6" 4 + # +--------------------+ +----------------------+ 5 + # | H1 | | H2 | 6 + # | | | | 7 + # | $h1.1 + | | + $h2.1 | 8 + # | 192.0.2.2/24 | | | | 198.51.100.2/24 | 9 + # | 2001:db8:1::2/64 | | | | 2001:db8:2::2/64 | 10 + # | | | | | | 11 + # | $h1 + | | + $h2 | 12 + # | | | | | | 13 + # +------------------|-+ +-|--------------------+ 14 + # | | 15 + # +------------------|-------------------------|--------------------+ 16 + # | SW | | | 17 + # | | | | 18 + # | $rp1 + + $rp2 | 19 + # | | | | 20 + # | $rp1.1 + + $rp2.1 | 21 + # | 192.0.2.1/24 198.51.100.1/24 | 22 + # | 2001:db8:1::1/64 2001:db8:2::1/64 | 23 + # | | 24 + # +-----------------------------------------------------------------+ 25 + 26 + ALL_TESTS=" 27 + ping_ipv4 28 + ping_ipv6 29 + " 5 30 NUM_NETIFS=4 6 31 source lib.sh 7 32