bpf: Add BPF_MAP_TYPE_SK_STORAGE test to test_maps
authorMartin KaFai Lau <kafai@fb.com>
Fri, 26 Apr 2019 23:39:52 +0000 (16:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 16:07:05 +0000 (09:07 -0700)
commit51a0e301a563bf7266854e0698cdf3dc25116f7b
tree68ed375e561e470a8140778bd9e9b963c9a95fb6
parent7a9bb9762d3302bb407c7bdb0b5f754e5aa595a5
bpf: Add BPF_MAP_TYPE_SK_STORAGE test to test_maps

This patch adds BPF_MAP_TYPE_SK_STORAGE test to test_maps.
The src file is rather long, so it is put into another dir map_tests/
and compile like the current prog_tests/ does.  Other existing
tests in test_maps can also be re-factored into map_tests/ in the
future.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/map_tests/sk_storage_map.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_maps.h [new file with mode: 0644]