]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Extract parse_num_list into generic testing_helpers.c
authorAndrii Nakryiko <andriin@fb.com>
Tue, 12 May 2020 19:24:42 +0000 (12:24 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 13 May 2020 19:19:38 +0000 (12:19 -0700)
commita582d271d9fbad13ccadf18097b5dc4bbb60608a
tree19a0d826c4a6491cb89d43e0a3f1d5654a12b415
parente5fa54f0cd8ca0b8ff0dec430b435c4086f3082b
selftests/bpf: Extract parse_num_list into generic testing_helpers.c

Add testing_helpers.c, which will contain generic helpers for test runners and
tests needing some common generic functionality, like parsing a set of
numbers.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200512192445.2351848-2-andriin@fb.com
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_progs.h
tools/testing/selftests/bpf/testing_helpers.c [new file with mode: 0644]
tools/testing/selftests/bpf/testing_helpers.h [new file with mode: 0644]