diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-05-12 12:24:42 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-05-13 12:19:38 -0700 |
commit | cd49291ce18aeef3f2ec950bc99bd72d5a05fa86 (patch) | |
tree | 19a0d826c4a6491cb89d43e0a3f1d5654a12b415 /tools/testing/selftests/bpf/testing_helpers.h | |
parent | fd9eef1a132d1974405c3ebf9d5688ec5c51da94 (diff) |
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
Diffstat (limited to 'tools/testing/selftests/bpf/testing_helpers.h')
-rw-r--r-- | tools/testing/selftests/bpf/testing_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/testing_helpers.h b/tools/testing/selftests/bpf/testing_helpers.h new file mode 100644 index 000000000000..923b51762759 --- /dev/null +++ b/tools/testing/selftests/bpf/testing_helpers.h @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ +/* Copyright (C) 2020 Facebook, Inc. */ +#include <stdbool.h> + +int parse_num_list(const char *s, bool **set, int *set_len); |