Skip to content

Commit

Permalink
Run CLI tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaekwon committed Jun 2, 2018
1 parent af1ab47 commit 5d2e7e9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
PACKAGES=$(shell go list ./... | grep -v '/vendor/')
PACKAGES_NOCLITEST=$(shell go list ./... | grep -v '/vendor/' | grep -v github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test)
COMMIT_HASH := $(shell git rev-parse --short HEAD)
BUILD_FLAGS = -ldflags "-X github.com/cosmos/cosmos-sdk/version.GitCommit=${COMMIT_HASH}"

Expand Down Expand Up @@ -86,11 +85,11 @@ godocs:

test: test_unit

test_cli:
@go test -count 1 -p 1 `go list github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test`

test_unit:
@go test $(PACKAGES_NOCLITEST)
@GOCACHE=off go test -p 1 $(PACKAGES)

test100:
@for i in {1..100}; do make test; done

test_cover:
@bash tests/test_cover.sh
Expand All @@ -99,7 +98,7 @@ test_lint:
gometalinter --disable-all --enable='golint' --vendor ./...

benchmark:
@go test -bench=. $(PACKAGES_NOCLITEST)
@go test -bench=. $(PACKAGES)


########################################
Expand Down

0 comments on commit 5d2e7e9

Please sign in to comment.