summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFrank Werner <mail@hb9fxq.ch>2020-07-15 16:22:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-20 12:38:18 +0200
commit0b54907a73ce0810c3a148007c45e66eae7109d6 (patch)
treef4b09caa37db855a17333cf2fc00baee7b619406
parent2c143dce0ff55feb35c7f6b9199479db88909903 (diff)
Makefile: Add test target
Signed-off-by: Frank Werner <mail@hb9fxq.ch> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 47f22d6..1b77f86 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,10 @@ wireguard-go: $(wildcard *.go) $(wildcard */*.go)
install: wireguard-go
@install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 "$<" "$(DESTDIR)$(BINDIR)/wireguard-go"
+test:
+ go test -v ./...
+
clean:
rm -f wireguard-go
-.PHONY: all clean install generate-version-and-build
+.PHONY: all clean test install generate-version-and-build