summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0ef54dd..1982545 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,11 @@ LAUNCHER_SRC = internal/namespace/launcher_src/launcher.c
LAUNCHER_BIN = internal/namespace/launcher.bin
BINARY = wg-wrap
-.PHONY: all clean test
+# Fuzzing settings
+FUZZ_PARALLEL ?= 2
+FUZZ_TIME ?= 30s
+
+.PHONY: all clean test fuzz
# Default target: build the final binary
all: $(BINARY)
@@ -30,3 +34,7 @@ test: all
clean:
rm -f $(BINARY) $(LAUNCHER_BIN)
find . -name "*.test" -delete
+
+# Run fuzzing tests
+fuzz: all
+ go test -v -fuzz=FuzzArgumentIntegrity -parallel $(FUZZ_PARALLEL) -fuzztime=$(FUZZ_TIME) ./tests/e2e/fuzz_args_test.go