mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-12 19:49:07 +08:00
vmtest: optionally adjust selftest files depending on kernel version
Some selftests can't be compiled on older kernels. This allows to fix these problems, if necessary. Signed-off-by: Andrii Nakryiko <andriin@fb.com>
This commit is contained in:
committed by
Andrii Nakryiko
parent
70eac9941d
commit
1206ab0e75
12
travis-ci/vmtest/prepare_selftests-5.5.0.sh
Executable file
12
travis-ci/vmtest/prepare_selftests-5.5.0.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
# these tests expect vmlinux.h to have latest defiition of bpf_devmap_val xdp_md->egress_ifindex
|
||||
rm progs/test_xdp_with_devmap_helpers.c
|
||||
rm progs/test_xdp_devmap_helpers.c
|
||||
rm prog_tests/xdp_devmap_attach.c
|
||||
|
||||
# no BPF_F_NO_PREALLOC in BTF and no sk_msg_md->sk field
|
||||
rm progs/test_skmsg_load_helpers.c
|
||||
rm prog_tests/sockmap_basic.c
|
||||
Reference in New Issue
Block a user