]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/bpf: Move test_lpm_map.c to map_tests
authorHou Tao <houtao1@huawei.com>
Fri, 6 Dec 2024 11:06:21 +0000 (19:06 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 6 Dec 2024 17:14:26 +0000 (09:14 -0800)
commit3e18f5f1e5a152a51dbb6c234e2a0421aec11e31
tree1df541fd1d53305fd0dfae04c66e7c09bd3f0d95
parent6a5c63d43c0216d64915baa0e0eacf2beb66b271
selftests/bpf: Move test_lpm_map.c to map_tests

Move test_lpm_map.c to map_tests/ to include LPM trie test cases in
regular test_maps run. Most code remains unchanged, including the use of
assert(). Only reduce n_lookups from 64K to 512, which decreases
test_lpm_map runtime from 37s to 0.7s.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Link: https://lore.kernel.org/r/20241206110622.1161752-9-houtao@huaweicloud.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/map_tests/lpm_trie_map_basic_ops.c [moved from tools/testing/selftests/bpf/test_lpm_map.c with 99% similarity]