build: add Makefile load-test target
cognitive committed
Apr 30, 2026 at 05:36 UTC
8502e2301da8f4c6b051403dd4749ade14018701
1 file changed
+11
-1
Makefile
+11
-1
@@ -1,4 +1,4 @@
1
-.PHONY: help install fmt vet lint lint-auto test vuln tidy all run build build-frontend build-docs build-tunnel build-server clean
1
+.PHONY: help install fmt vet lint lint-auto test vuln tidy all run build build-frontend build-docs build-tunnel build-server clean load-test
2
3
.DEFAULT_GOAL := help
4
@@ -98,3 +98,13 @@ clean:
98
rm -rf bin
99
rm -rf cmd/relay-server/dist/app
100
rm -rf cmd/relay-server/dist/tunnel
101
+
102
+# Run the uniformity probe. Extra flags are passed through after the target name:
103
+# make load-test -- -clients 1000 -relays 5
104
+# GNU make consumes '--' and forwards remaining goals; the catch-all '%:' rule
105
+# below silently absorbs them so make does not error with "no rule to make target."
106
+load-test:
107
+ go run ./cmd/portal-loadtest $(filter-out $@,$(MAKECMDGOALS))
108
+
109
+%:
110
+ @: