Skip to contentSkip to conversation

selftests/bpf: move test_section_names into test_progs and fix it

PATCH Applied Andrii Nakryiko 2 participants 2 messages Oct 23, 2019

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/bpf: move test_section_names into test_progs and fix it

Make test_section_names into test_progs test. Also fix ESRCH expected results. Add uprobe/uretprobe and tp/raw_tp test cases.

Fixes dd4436bb8383 ("libbpf: Teach bpf_object__open to guess program types")
---
 tools/testing/selftests/bpf/Makefile          |  2 +-
 .../section_names.c}                          | 90 +++++++------------
 2 files changed, 31 insertions(+), 61 deletions(-)
 rename tools/testing/selftests/bpf/{test_section_names.c => prog_tests/section_names.c} (73%)
tools/testing/selftests/bpf/Makefile +1 -1
index 11ff34e7311b..521fbdada5cc 100644
@@ -28,7 +28,7 @@ LDLIBS += -lcap -lelf -lrt -lpthread
 TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \
 	test_align test_verifier_log test_dev_cgroup test_tcpbpf_user \
 	test_sock test_btf test_sockmap get_cgroup_id_user test_socket_cookie \
-	test_cgroup_storage test_select_reuseport test_section_names \
+	test_cgroup_storage test_select_reuseport \
 	test_netcnt test_tcpnotify_user test_sock_fields test_sysctl test_hashmap \
 	test_cgroup_attach xdping test_progs-no_alu32
 
tools/testing/selftests/bpf/prog_tests/section_names.c renamed from tools/testing/selftests/bpf/test_section_names.c +30 -60

145 lines not on this page · raw message

Signature · 1 line
2.17.1