summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-04-15 17:29:07 +0300
committerPaul Buetow <paul@buetow.org>2025-04-15 17:29:07 +0300
commit24753df2d21112ea1ddc6498b521f7f42dd7c708 (patch)
tree1154f41153a96a55f4465489cc812afe5c96d2f8 /Makefile
parent12759c56082abcc6b0eb70b5a5981e9ca61faa08 (diff)
more on testing
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