]> git.itanic.dy.fi Git - linux-stable/commit
kselftest/runner.sh: add netns support
authorHangbin Liu <liuhangbin@gmail.com>
Tue, 19 Dec 2023 09:48:56 +0000 (17:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Dec 2023 00:26:32 +0000 (00:26 +0000)
commit9d0b4ad82d6117e6d7ead50f64be54ec782aa1fe
treed63af2761cdb517aceee0e7789c749e7d3d82fcb
parent378f082eaf3760cd7430fbcb1e4f8626bb6bc0ae
kselftest/runner.sh: add netns support

Add a variable RUN_IN_NETNS if the user wants to run all the selected tests
in namespace in parallel. With this, we can save a lot of testing time.

Note that some tests may not fit to run in namespace, e.g.
net/drop_monitor_tests.sh, as the dwdump needs to be run in init ns.

I also added another parameter -p to make all the logs reported separately
instead of mixing them in the stdout or output.log.

Nit: the NUM in run_one is not used, rename it to test_num.

Acked-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/kselftest/runner.sh
tools/testing/selftests/run_kselftest.sh