summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)