From c6b983e449ec97d902f263cd693cf615b790542a Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 28 Apr 2015 13:16:47 +0200 Subject: Makefile: add test target --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bb9609d58..917e7f4ac 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,8 @@ # This Makefile is meant to be used by people that do not usually work # with Go source code. If you know what GOPATH is then you probably # don't need to bother with make. -# -# Note that there is no way to run the tests or do anything other than -# building the binaries. This is by design. -.PHONY: geth mist clean +.PHONY: geth mist test clean GOBIN = build/bin geth: @@ -18,5 +15,11 @@ mist: @echo "Done building." @echo "Run \"$(GOBIN)/mist --asset_path=cmd/mist/assets\" to launch mist." +all: + build/env.sh go install -v $(shell build/ldflags.sh) ./... + +test: all + build/env.sh go test ./... + clean: rm -fr build/_workspace/pkg/ Godeps/_workspace/pkg $(GOBIN)/* -- cgit