diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-03-02 04:42:13 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-03-02 20:10:40 +0100 |
commit | 3f30658830f3a133ba2136237ea9c8e589344a3b (patch) | |
tree | 6005b993a4ec32ae60546a5bce048affc6758f0f /include/dt-bindings/pinctrl/keystone.h | |
parent | Merge branch 'bpf_skb_ecn_set_ce' (diff) | |
download | linux-3f30658830f3a133ba2136237ea9c8e589344a3b.tar.xz linux-3f30658830f3a133ba2136237ea9c8e589344a3b.zip |
selftests: bpf: break up test_progs - preparations
Add new prog_tests directory where tests are supposed to land.
Each prog_tests/<filename>.c is expected to have a global function
with signature 'void test_<filename>(void)'. Makefile automatically
generates prog_tests/tests.h file with entry for each prog_tests file:
#ifdef DECLARE
extern void test_<filename>(void);
...
#endif
#ifdef CALL
test_<filename>();
...
#endif
prog_tests/tests.h is included in test_progs.c in two places with
appropriate defines. This scheme allows us to move each function with
a separate patch without breaking anything.
Compared to the recent verifier split, each separate file here is
a compilation unit and test_progs.[ch] is now used as a place to put
some common routines that might be used by multiple tests.
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/dt-bindings/pinctrl/keystone.h')
0 files changed, 0 insertions, 0 deletions