summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJames O'Doherty <james@theodohertyfamily.com>2026-05-22 11:12:21 -0400
committerJames O'Doherty <james@theodohertyfamily.com>2026-05-22 11:12:21 -0400
commit3b56ccecf46b83fa9b0e4b6c54be6ffda395910c (patch)
tree2a4f7b8598cfdfaec2627ec13d4bfb30c14e28fd /Makefile
parentcefff85a054d64f124aa1f3e91b9425695aa210b (diff)
Implement automatic namespace lifecycle cleanup with last-man-out reference counting
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bcfe11c..02a1245 100644
--- a/Makefile
+++ b/Makefile
@@ -27,11 +27,16 @@ $(LAUNCHER_BIN): $(LAUNCHER_SRC)
$(CC) $(CFLAGS) $(LAUNCHER_SRC) -o $(LAUNCHER_BIN)
# Run tests
-test: all
+test: clean
+ $(MAKE) $(BINARY)
@echo "Running tests with WG_WRAP_BIN=$(shell pwd)/$(BINARY)"
WG_WRAP_BIN=$(shell pwd)/$(BINARY) go test -v ./...
# Run fuzzing tests
-fuzz: all
+fuzz: clean
+ $(MAKE) $(BINARY)
@echo "Running fuzzing with WG_WRAP_BIN=$(shell pwd)/$(BINARY)"
WG_WRAP_BIN=$(shell pwd)/$(BINARY) go test -v -fuzz=FuzzArgumentIntegrity -parallel $(FUZZ_PARALLEL) -fuzztime=$(FUZZ_TIME) ./tests/e2e/fuzz_args_test.go
+
+clean:
+ rm -f $(BINARY) $(LAUNCHER_BIN)