Makefile: Add test target

Signed-off-by: Frank Werner <mail@hb9fxq.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Frank Werner 2020-07-15 16:22:18 +02:00 committed by Jason A. Donenfeld
parent 2c143dce0f
commit 0b54907a73

View File

@ -22,7 +22,10 @@ wireguard-go: $(wildcard *.go) $(wildcard */*.go)
install: wireguard-go install: wireguard-go
@install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 "$<" "$(DESTDIR)$(BINDIR)/wireguard-go" @install -v -d "$(DESTDIR)$(BINDIR)" && install -v -m 0755 "$<" "$(DESTDIR)$(BINDIR)/wireguard-go"
test:
go test -v ./...
clean: clean:
rm -f wireguard-go rm -f wireguard-go
.PHONY: all clean install generate-version-and-build .PHONY: all clean test install generate-version-and-build