github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/tm2/pkg/amino/Makefile (about) 1 2 all: check_tools test 3 4 ######################################## 5 ### Build 6 7 build: 8 # Nothing to build! 9 10 install: 11 # Nothing to install! 12 13 14 ######################################## 15 ### Tools & dependencies 16 17 include tools.mk 18 19 ######################################## 20 ### Testing 21 22 test: 23 go test $(shell go list ./... | grep -v vendor | grep -v fuzz) 24 go test $(shell go list ./... | grep -v vendor | grep fuzz) 25 26 gofuzz_binary: 27 rm -rf tests/fuzz/binary/corpus/ 28 rm -rf tests/fuzz/binary/crashers/ 29 rm -rf tests/fuzz/binary/suppressions/ 30 go run tests/fuzz/binary/init-corpus/main.go --corpus-parent=tests/fuzz/binary 31 go-fuzz-build github.com/gnolang/gno/tm2/pkg/amino/tests/fuzz/binary 32 go-fuzz -bin=./fuzzbinary-fuzz.zip -workdir=tests/fuzz/binary 33 rm -rf ./fuzzbinary-fuzz.zip 34 35 gofuzz_json: 36 rm -rf tests/fuzz/json/corpus/ 37 rm -rf tests/fuzz/json/crashers/ 38 rm -rf tests/fuzz/json/suppressions/ 39 go-fuzz-build github.com/gnolang/gno/tm2/pkg/amino/tests/fuzz/json 40 go-fuzz -bin=./fuzzjson-fuzz.zip -workdir=tests/fuzz/json 41 rm -rf ./fuzzjson-fuzz.zip 42 43 ######################################## 44 ### Formatting, linting, and vetting 45 46 fmt: 47 @go fmt ./... 48 49 # look into .golangci.yml for enabling / disabling linters 50 lint: 51 @echo "--> Running linter" 52 @golangci-lint run 53 find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" | xargs gofmt -d -s 54 go mod verify 55 56 # To avoid unintended conflicts with file names, always add to .PHONY 57 # unless there is a reason not to. 58 # https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html 59 .PHONY: build install check_tools get_tools fmt lint test