]> 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)
commit27ff6ecdb5bc5f36e095d8c297824d1dab2001bb
tree19a0d826c4a6491cb89d43e0a3f1d5654a12b415
parent9fe2e29c51de8e154d48f2eeabd07e5c39553362
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]