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)
commitcd49291ce18aeef3f2ec950bc99bd72d5a05fa86
tree19a0d826c4a6491cb89d43e0a3f1d5654a12b415
parentfd9eef1a132d1974405c3ebf9d5688ec5c51da94
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]