Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 4 additions & 31 deletions ebpftracer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,7 @@ build:
docker run --rm --name ebpftracer ebpftracer cat /tmp/ebpf/ebpf.go > ./ebpf.go
@echo

test: test_vm1 test_vm2 test_vm3 test_vm4 test_vm5

define test_in_vm
@echo ===TESTING IN $(1)===
vagrant ssh $(1) -c "uname -r && cd /tmp/src && sudo VM=$(1) go test -p 1 -count 1 -v ./ebpftracer/..."
@echo
endef

test_vm1:
$(call test_in_vm,ubuntu1810)

test_vm2:
$(call test_in_vm,ubuntu2004)

test_vm3:
$(call test_in_vm,ubuntu2010)

test_vm4:
$(call test_in_vm,ubuntu2110)

test_vm5:
$(call test_in_vm,ubuntu2204)

vms_start:
vagrant up

vms_stop:
vagrant suspend

vms_delete:
vagrant destroy
# the tracer tests load eBPF programs, so they need root on a Linux host and
# are skipped unless VM is set
test:
sudo VM=1 go test -p 1 -count 1 -v ./...
37 changes: 0 additions & 37 deletions ebpftracer/Vagrantfile

This file was deleted.

Loading