]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: btf: Some test_btf clean up
authorMartin KaFai Lau <kafai@fb.com>
Fri, 4 May 2018 21:49:53 +0000 (14:49 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 9 May 2018 15:25:14 +0000 (17:25 +0200)
commitaee57461eb8b09a4117929075d72e30b58f31166
treeeb787173dd6110914d1619602c4738a553b616b4
parentc6438888d124d7ac541e017b0ab37aef82f88668
bpf: btf: Some test_btf clean up

This patch adds a CHECK() macro for condition checking
and error report purpose.  Something similar to test_progs.c

It also counts the number of tests passed/skipped/failed and
print them at the end of the test run.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Alexei Starovoitov <ast@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/test_btf.c