5 @echo "Please use \`make <target>' where <target> is one of"
6 @echo " test to run all the tests"
7 @echo " build to build the library and jp executable"
8 @echo " generate to run codegen"
17 rm -f cmd/$(CMD)/$(CMD) && cd cmd/$(CMD)/ && go build ./...
18 mv cmd/$(CMD)/$(CMD) .
26 @lint=`golint ./...`; \
27 lint=`echo "$$lint" | grep -v "astnodetype_string.go" | grep -v "toktype_string.go"`; \
29 if [ "$$lint" != "" ]; then exit 1; fi
32 go test -coverprofile="/tmp/jpcov" && go tool cover -html="/tmp/jpcov" && unlink /tmp/jpcov
35 go-fuzz-build github.com/jmespath/go-jmespath/fuzz
38 go-fuzz -bin=./jmespath-fuzz.zip -workdir=fuzz/testdata
41 go test -bench . -cpuprofile cpu.out
44 go tool pprof ./go-jmespath.test ./cpu.out