Skip to content

Commit f8d84ad

Browse files
committed
run-vmtest: enable traffic monitoring to debug flaky selftests
Traffic monitoring was add to the selftests/bpf[0] to debug some flaky test cases. Enable this in CI by building selftests with libpcap, installing libpcap in the test environment and finally turn it on when running the test. [0] https://lore.kernel.org/bpf/20240815053254.470944-1-thinker.li@gmail.com/ Signed-off-by: Amery Hung <ameryhung@gmail.com>
1 parent 4bf8a10 commit f8d84ad

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

run-vmtest/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ runs:
4848
foldable start install_qemu "Installing QEMU tools"
4949
# need gawk to support `--field-separator`
5050
sudo apt-get update && sudo apt-get install -y cpu-checker qemu-kvm qemu-utils qemu-system-x86 qemu-system-s390x qemu-system-arm qemu-guest-agent \
51-
ethtool keyutils iptables \
51+
ethtool keyutils iptables libpcap-dev \
5252
gawk
5353
foldable end install_qemu
5454
- name: Configure KVM group perms

run-vmtest/run-bpf-selftests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ test_progs_helper() {
4242
args+=(${ALLOWLIST_FILE:+-a@$ALLOWLIST_FILE})
4343
args+=(${DENYLIST_FILE:+-d@$DENYLIST_FILE})
4444
args+=(-J "${json_file}")
45+
args+=(-m '*')
4546

4647
foldable start ${selftest} "Testing ${selftest}"
4748
echo "./${selftest} ${args}"

setup-build-env/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
run: |
2525
echo "::group::Setup"
2626
sudo apt-get update
27-
sudo apt-get install -y cmake flex bison build-essential libssl-dev ncurses-dev xz-utils bc rsync libguestfs-tools qemu-kvm qemu-utils zstd libzstd-dev binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils texinfo
27+
sudo apt-get install -y cmake flex bison build-essential libssl-dev ncurses-dev xz-utils bc rsync libguestfs-tools qemu-kvm qemu-utils zstd libzstd-dev binutils-dev elfutils libcap-dev libelf-dev libdw-dev python3-docutils texinfo libpcap-dev
2828
echo "::endgroup::"
2929
- name: Install clang
3030
shell: bash

0 commit comments

Comments
 (0)