mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-29 04:39:06 +08:00
Set up loopback to enable more tests: - bpf_tcp_ca - cgroup_attach_autodetach - cgroup_attach_multi - cgroup_attach_override - select_reuseport - sockmap_ktls Signed-off-by: Julia Kartseva hex@fb.com
25 lines
580 B
Bash
Executable File
25 lines
580 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
mount -t bpf bpffs /sys/fs/bpf
|
|
mount -t debugfs none /sys/kernel/debug/
|
|
|
|
ip link set lo up
|
|
|
|
configs_path='libbpf/travis-ci/vmtest/configs'
|
|
blacklist_path="$configs_path/blacklist/BLACKLIST-${KERNEL}"
|
|
if [[ -s "${blacklist_path}" ]]; then
|
|
BLACKLIST=$(cat "${blacklist_path}" | tr '\n' ',')
|
|
fi
|
|
|
|
whitelist_path="$configs_path/whitelist/WHITELIST-${KERNEL}"
|
|
if [[ -s "${whitelist_path}" ]]; then
|
|
WHITELIST=$(cat "${whitelist_path}" | tr '\n' ',')
|
|
fi
|
|
|
|
cd libbpf/selftests/bpf
|
|
|
|
echo TEST_PROGS
|
|
./test_progs ${BLACKLIST:+-b$BLACKLIST} ${WHITELIST:+-t$WHITELIST}
|