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,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