aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-28 19:16:47 +0800
committerFelix Lange <fjl@twurst.com>2015-04-29 08:13:37 +0800
commitc6b983e449ec97d902f263cd693cf615b790542a (patch)
tree3c04f79e1e0e1ced29a4523e84dd775131a1e002 /Makefile
parent72d88780849c8b70f565319d1c3ee93223274e0b (diff)
downloadgo-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.tar
go-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.tar.gz
go-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.tar.bz2
go-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.tar.lz
go-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.tar.xz
go-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.tar.zst
go-tangerine-c6b983e449ec97d902f263cd693cf615b790542a.zip
Makefile: add test target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files 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)/*