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:
Julia Kartseva
2020-02-26 15:18:09 -08:00
committed by Andrii Nakryiko
parent ef7d57fcec
commit 50febacba1
4 changed files with 32 additions and 16 deletions

View File

@@ -1,5 +1,5 @@
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.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

View File

@@ -1,13 +1,12 @@
attach_multi
attach_probe
bpf_tcp_ca
cgroup_attach_multi
fexit_bpf2bpf
link_pinning
perf_branches
perf_buffer
select_reuseport
send_signal
skb_ctx
sockmap_listen
sockopt_inherit
spinlock
tcp_rtt
test_global_funcs

View File

@@ -1,6 +1,4 @@
send_signal_tracepoint
send_signal_tracepoint_thread
attach_probe
perf_buffer
send_signal
sockmap_listen
sockopt_inherit
spinlock
tcp_rtt

View File

@@ -1,11 +1,22 @@
#!/bin/bash
set -eux
set -euxo pipefail
mount -t bpf bpffs /sys/fs/bpf
mount -t debugfs none /sys/kernel/debug/
test_progs() {
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'
blacklist_path="$configs_path/blacklist/BLACKLIST-${KERNEL}"
@@ -20,5 +31,13 @@ fi
cd libbpf/selftests/bpf
echo TEST_PROGS
./test_progs ${BLACKLIST:+-b$BLACKLIST} ${WHITELIST:+-t$WHITELIST}
set +e
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