github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/test/Makefile (about) 1 #!/usr/bin/make -f 2 3 ######################################## 4 ### Testing 5 6 PACKAGES=$(shell go list ./...) 7 8 BINDIR ?= $(GOPATH)/bin 9 10 ## required to be run first by most tests 11 build_docker_test_image: 12 docker build -t tester -f ./test/docker/Dockerfile . 13 .PHONY: build_docker_test_image 14 15 ### coverage, app, persistence, and libs tests 16 test_cover: 17 # run the go unit tests with coverage 18 bash test/test_cover.sh 19 .PHONY: test_cover 20 21 test_apps: 22 # run the app tests using bash 23 # requires `abci-cli` and `tendermint` binaries installed 24 bash test/app/test.sh 25 .PHONY: test_apps 26 27 test_abci_apps: 28 bash abci/tests/test_app/test.sh 29 .PHONY: test_abci_apps 30 31 test_abci_cli: 32 # test the cli against the examples in the tutorial at: 33 # ./docs/abci-cli.md 34 # if test fails, update the docs ^ 35 @ bash abci/tests/test_cli/test.sh 36 .PHONY: test_abci_cli 37 38 test_integrations: 39 make build_docker_test_image 40 make tools 41 make install 42 make test_cover 43 make test_apps 44 make test_abci_apps 45 make test_abci_cli 46 make test_libs 47 .PHONY: test_integrations 48 49 test_release: 50 @go test -tags release $(PACKAGES) 51 .PHONY: test_release 52 53 test100: 54 @for i in {1..100}; do make test; done 55 .PHONY: test100 56 57 ### go tests 58 test: 59 @echo "--> Running go test" 60 @go test -p 1 $(PACKAGES) -tags deadlock 61 .PHONY: test 62 63 test_race: 64 @echo "--> Running go test --race" 65 @go test -p 1 -v -race $(PACKAGES) 66 .PHONY: test_race