mirror of
https://github.com/wader/fq.git
synced 2024-12-22 21:01:37 +03:00
make: Cleanup some not very used targets
This commit is contained in:
parent
cae9587c5c
commit
bf170be8ea
10
Makefile
10
Makefile
@ -17,10 +17,6 @@ testgo: PKGS=$(shell find . -name "*_test.go" | xargs -n 1 dirname | sort | uniq
|
||||
testgo:
|
||||
go test ${GO_TEST_RACE_FLAGS} ${VERBOSE} ${COVER} ${PKGS}
|
||||
|
||||
.PHONY: testgov
|
||||
testgov: export VERBOSE=-v
|
||||
testgov: testgo
|
||||
|
||||
.PHONY: testjq
|
||||
testjq: fq
|
||||
@pkg/interp/testjq.sh ./fq pkg/interp/*_test.jq
|
||||
@ -29,10 +25,6 @@ testjq: fq
|
||||
testcli: fq
|
||||
@pkg/cli/test.sh ./fq pkg/cli/test.exp
|
||||
|
||||
.PHONY: actual
|
||||
actual: export WRITE_ACTUAL=1
|
||||
actual: testgo
|
||||
|
||||
.PHONY: cover
|
||||
cover: COVER=-cover -coverpkg=./... -coverprofile=cover.out
|
||||
cover: test
|
||||
@ -85,7 +77,7 @@ memprof: prof
|
||||
cpuprof: prof
|
||||
go tool pprof -http :5555 fq.prof fq.cpu.prof
|
||||
|
||||
.PHONY: update-gomodreplace
|
||||
.PHONY: update-gomod
|
||||
update-gomod:
|
||||
GOPROXY=direct go get -d github.com/wader/readline@fq
|
||||
GOPROXY=direct go get -d github.com/wader/gojq@fq
|
||||
|
@ -70,7 +70,7 @@ go test ./...
|
||||
# run all tests for one format
|
||||
go test -run TestFQTests/mp4 ./format/
|
||||
# write all actual outputs
|
||||
make actual
|
||||
WRITE_ACTUAL=1 go test ./...
|
||||
# write actual output for specific tests
|
||||
WRITE_ACTUAL=1 go run -run ...
|
||||
# color diff
|
||||
|
Loading…
Reference in New Issue
Block a user