]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'split-test_progs'
authorAlexei Starovoitov <ast@kernel.org>
Sat, 2 Mar 2019 19:10:41 +0000 (11:10 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 2 Mar 2019 19:10:41 +0000 (11:10 -0800)
commit3c3ee8300499727fc8c20c047741a322ff4408ed
tree3b643e34c41fc8c294309130f8b0b19b1890c53c
parent4df0abfcf8e83ab36b88ee965edaa71b8fd0b630
parentb3f15d2f7bbbcc1595a0e93a81c673b1b3c13e55
Merge branch 'split-test_progs'

Stanislav Fomichev says:

====================
Recently we had linux-next bpf/bpf-next conflict when we added new
functionality to the test_progs.c at the same location. Let's split
test_progs.c the same way we recently split test_verifier.c.

I follow the same patten we did in commit 65815c88ad9c ("selftests: bpf:
prepare for break up of verifier tests") for verifier: create
scaffolding to support dedicated files and slowly move the tests into
separate files.

The first patch adds scaffolding, subsequent patches move progs into
separate files.

In theory, many of the standalone tests can be migrated to this new
framework as well. They get the benefit of common CHECK macro and
bpf_find_map function which a lot of standalone tests need to redefine.

v3 changes:
* respin on top of commit fc32fc74ba98 ("selftests/bpf: use
  __bpf_constant_htons in test_prog.c for flow dissector")
* put bpf_rlimit.h into test_progs.c instead of test_progs.h

v2 changes:
* added cover letter, added more description about file structure
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>