]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Also print test name in subtest status message
authorYucong Sun <fallentree@fb.com>
Tue, 17 Aug 2021 04:47:31 +0000 (21:47 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 17 Aug 2021 18:17:07 +0000 (11:17 -0700)
commitb7320cc880c381ce9c0d85ced14188d7b01de522
tree0f8fce2ad2c8baaa7ec689689ecc1ab14f0f7d33
parentf8457e25c95bdaaaf5d35868e9ecd8f10181295b
selftests/bpf: Also print test name in subtest status message

This patch add test name in subtest status message line, making it possible to
grep ':OK' in the output to generate a list of passed test+subtest names, which
can be processed to generate argument list to be used with "-a", "-d" exact
string matching.

Example:

 #1/1 align/mov:OK
 ..
 #1/12 align/pointer variable subtraction:OK
 #1 align:OK

Signed-off-by: Yucong Sun <fallentree@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210817044732.3263066-4-fallentree@fb.com
tools/testing/selftests/bpf/test_progs.c