mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-10 10:39:07 +08:00
vmtest: libbpf#137 follow-ups
- Run test_{maps|verifier} only with the latest kernel
- Mount run control script
- Style
Signed-off-by: Julia Kartseva (hex@fb.com)
This commit is contained in:
committed by
Andrii Nakryiko
parent
9a424bea42
commit
ef4785f065
@@ -10,7 +10,7 @@ test_progs() {
|
||||
test_maps() {
|
||||
echo TEST_MAPS
|
||||
# Allow failing on older kernels.
|
||||
./test_maps || [ ${KERNEL} != 'LATEST' ]
|
||||
./test_maps
|
||||
}
|
||||
|
||||
test_verifier() {
|
||||
@@ -31,13 +31,9 @@ fi
|
||||
|
||||
cd libbpf/selftests/bpf
|
||||
|
||||
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
|
||||
test_progs
|
||||
|
||||
exit $exitcode
|
||||
if [[ "${KERNEL}" == 'latest' ]]; then
|
||||
test_maps
|
||||
test_verifier
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user