mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-06 00:29:07 +08:00
vmtest: disk image update; run test_{maps|verifier}; blacklist update
The disk image is updated to 2020-03-11. blacklist for LATEST kernel: attach_probe (needs root cause) perf_buffer (needs root cause) send_signal (flaky) sockmap_listen (flaky) Run test_maps and test_verifier. test_maps is not expected to pass for kernels other then LATEST. Signed-off-by: Julia Kartseva (hex@fb.com)
This commit is contained in:
committed by
Andrii Nakryiko
parent
ef7d57fcec
commit
50febacba1
@@ -1,5 +1,5 @@
|
|||||||
INDEX https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/INDEX
|
INDEX https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/INDEX
|
||||||
libbpf-vmtest-rootfs-2020.01.10.tar.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/libbpf-vmtest-rootfs-2020.01.10.tar.zst
|
libbpf-vmtest-rootfs-2020.03.11.tar.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/libbpf-vmtest-rootfs-2020.03.11.tar.zst
|
||||||
vmlinux-5.5.0-rc6.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0-rc6.zst
|
vmlinux-5.5.0-rc6.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0-rc6.zst
|
||||||
vmlinux-5.5.0.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0.zst
|
vmlinux-5.5.0.zst https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinux-5.5.0.zst
|
||||||
vmlinuz-5.5.0-rc6 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0-rc6
|
vmlinuz-5.5.0-rc6 https://libbpf-vmtest.s3-us-west-1.amazonaws.com/x86_64/vmlinuz-5.5.0-rc6
|
||||||
|
|||||||
@@ -1,13 +1,12 @@
|
|||||||
|
attach_multi
|
||||||
|
attach_probe
|
||||||
bpf_tcp_ca
|
bpf_tcp_ca
|
||||||
cgroup_attach_multi
|
|
||||||
fexit_bpf2bpf
|
fexit_bpf2bpf
|
||||||
link_pinning
|
link_pinning
|
||||||
perf_branches
|
perf_branches
|
||||||
|
perf_buffer
|
||||||
select_reuseport
|
select_reuseport
|
||||||
send_signal
|
send_signal
|
||||||
skb_ctx
|
skb_ctx
|
||||||
sockmap_listen
|
sockmap_listen
|
||||||
sockopt_inherit
|
|
||||||
spinlock
|
|
||||||
tcp_rtt
|
|
||||||
test_global_funcs
|
test_global_funcs
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
send_signal_tracepoint
|
attach_probe
|
||||||
send_signal_tracepoint_thread
|
perf_buffer
|
||||||
|
send_signal
|
||||||
sockmap_listen
|
sockmap_listen
|
||||||
sockopt_inherit
|
|
||||||
spinlock
|
|
||||||
tcp_rtt
|
|
||||||
|
|||||||
@@ -1,11 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -eux
|
set -euxo pipefail
|
||||||
|
|
||||||
mount -t bpf bpffs /sys/fs/bpf
|
test_progs() {
|
||||||
mount -t debugfs none /sys/kernel/debug/
|
echo TEST_PROGS
|
||||||
|
./test_progs ${BLACKLIST:+-b$BLACKLIST} ${WHITELIST:+-t$WHITELIST}
|
||||||
|
}
|
||||||
|
|
||||||
ip link set lo up
|
test_maps() {
|
||||||
|
echo TEST_MAPS
|
||||||
|
# Allow failing on older kernels.
|
||||||
|
./test_maps || [ ${KERNEL} != 'LATEST' ]
|
||||||
|
}
|
||||||
|
|
||||||
|
test_verifier() {
|
||||||
|
echo TEST_VERIFIER
|
||||||
|
./test_verifier
|
||||||
|
}
|
||||||
|
|
||||||
configs_path='libbpf/travis-ci/vmtest/configs'
|
configs_path='libbpf/travis-ci/vmtest/configs'
|
||||||
blacklist_path="$configs_path/blacklist/BLACKLIST-${KERNEL}"
|
blacklist_path="$configs_path/blacklist/BLACKLIST-${KERNEL}"
|
||||||
@@ -20,5 +31,13 @@ fi
|
|||||||
|
|
||||||
cd libbpf/selftests/bpf
|
cd libbpf/selftests/bpf
|
||||||
|
|
||||||
echo TEST_PROGS
|
set +e
|
||||||
./test_progs ${BLACKLIST:+-b$BLACKLIST} ${WHITELIST:+-t$WHITELIST}
|
exitcode=0
|
||||||
|
for test_func in test_progs test_maps test_verifier; do
|
||||||
|
${test_func}; c=$?
|
||||||
|
if [[ $c -ne 0 ]]; then
|
||||||
|
exitcode=$c
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $exitcode
|
||||||
|
|||||||
Reference in New Issue
Block a user