]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: bpf: test_kmod.sh: Pass parameters to the module
authorYauheni Kaliuta <ykaliuta@redhat.com>
Thu, 8 Sep 2022 12:01:46 +0000 (15:01 +0300)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 22 Sep 2022 00:09:36 +0000 (17:09 -0700)
commit4c5d45c6c6a5ddbbb237432944bbae1d58fd6acb
tree2034325790b63b1bd92d05fd14d287d4eba2b0a8
parent9f9407309e12d77bc09ea76b355c29986073d3e1
selftests: bpf: test_kmod.sh: Pass parameters to the module

It's possible to specify particular tests for test_bpf.ko with
module parameters. Make it possible to pass the module parameters,
example:

test_kmod.sh test_range=1,3

Since magnitude tests take long time it can be reasonable to skip
them.

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220908120146.381218-1-ykaliuta@redhat.com
tools/testing/selftests/bpf/test_kmod.sh