Makefile
raw| 1 | TEST?=./... |
| 2 | |
| 3 | default: test |
| 4 | |
| 5 | # test runs the test suite and vets the code |
| 6 | test: |
| 7 | go list $(TEST) | xargs -n1 go test -timeout=60s -parallel=10 $(TESTARGS) |
| 8 | |
| 9 | # testrace runs the race checker |
| 10 | testrace: |
| 11 | go list $(TEST) | xargs -n1 go test -race $(TESTARGS) |
| 12 | |
| 13 | # updatedeps installs all the dependencies to run and build |
| 14 | updatedeps: |
| 15 | go mod download |
| 16 | |
| 17 | .PHONY: test testrace updatedeps |