build: @echo ===BUILDING=== docker build -t ebpftracer . docker cp $(shell docker create --rm ebpftracer):/tmp/ebpf.go ./ebpf.go @echo test: test_vm1 test_vm2 test_vm3 define test_in_vm @echo ===TESTING IN $(1)=== vagrant ssh $(1) -c "uname -r && cd /tmp/src && sudo go test -p 1 -count 1 -v ./ebpftracer/..." @echo endef test_vm1: build $(call test_in_vm,ubuntu1810) test_vm2: build $(call test_in_vm,ubuntu2004) test_vm3: build $(call test_in_vm,ubuntu2010) vms_start: vagrant up vms_stop: vagrant suspend vms_delete: vagrant destroy