summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6939dc8..2311fb2 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ export GOARCH = amd64
export CGO_CFLAGS = -I$(LIBBPFGO)/output -I$(LIBBPFGO)/selftest/common
export CGO_LDFLAGS = -lelf -lzstd $(LIBBPFGO)/output/libbpf/libbpf.a
export GO ?= go
+export TEST_NAME ?= TestEventloop
all: bpfbuild gobuild
@@ -57,6 +58,11 @@ test:
$(GO) clean -testcache
$(GO) test ./... -v
+.PHONY: test_specific
+test_specific:
+ $(GO) clean -testcache
+ $(GO) test ./... -run ^$(TEST_NAME)$$ -v
+
.PHONY: bench
bench:
$(GO) test ./... -v -bench=. -run xxx