Skip to content

Commit

Permalink
Makefile: run tests in all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
johningve authored and meling committed Jan 7, 2021
1 parent 71eb820 commit 38a756d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ endif
compiletests: installgorums
@$(MAKE) --no-print-directory -C ./tests all

test: installgorums
@go test -v $(dev_path)
@$(MAKE) --no-print-directory -C ./tests -B runtests
test: compiletests
@go test ./...

testrace: test
testrace: compiletests
go test -race -cpu=1,2,4 ./...

# Warning: will probably run for 10 minutes; the timeout does not work
Expand Down
5 changes: 0 additions & 5 deletions tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ RUNTESTS := ordering metadata tls

all: $(RUNTESTS)

runtests: $(RUNTESTS)
@for package in $^; do \
go test -v ./$$package; \
done

qf: qf/qf.pb.go qf/qf_grpc.pb.go qf/qf_gorums.pb.go

ordering: ordering/order.pb.go ordering/order_gorums.pb.go
Expand Down

0 comments on commit 38a756d

Please sign in to comment.