summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0597d84..3ae72ea 100644
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,13 @@ $(BINARY): $(LAUNCHER_BIN)
$(LAUNCHER_BIN): $(LAUNCHER_SRC)
$(CC) $(CFLAGS) $(LAUNCHER_SRC) -o $(LAUNCHER_BIN)
+# Test arguments (can be overridden from CLI: make test TEST_ARGS="-run TestName")
+TEST_ARGS ?= -timeout 30s
+
# Run tests
test: $(BINARY)
@echo "Running tests with WG_WRAP_BIN=$(shell pwd)/$(BINARY)"
- WG_WRAP_BIN=$(shell pwd)/$(BINARY) go test -v -race ./...
+ WG_WRAP_BIN=$(shell pwd)/$(BINARY) go test -v -race $(TEST_ARGS) ./...
# Run fuzzing tests
fuzz: clean