mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
No {} shell wildcards in makefile. Not benchmarking other libs by default.
This commit is contained in:
@@ -17,7 +17,11 @@ build:
|
||||
go build -i -o .root/bin/easyjson $(PKG)/easyjson
|
||||
|
||||
generate: root build
|
||||
.root/bin/easyjson -stubs .root/src/$(PKG)/tests/{snake,omitempty,data}.go
|
||||
.root/bin/easyjson -stubs \
|
||||
.root/src/$(PKG)/tests/snake.go \
|
||||
.root/src/$(PKG)/tests/data.go \
|
||||
.root/src/$(PKG)/tests/omitempty.go
|
||||
|
||||
.root/bin/easyjson -all .root/src/$(PKG)/tests/data.go
|
||||
.root/bin/easyjson -snake_case .root/src/$(PKG)/tests/snake.go
|
||||
.root/bin/easyjson -omit_empty .root/src/$(PKG)/tests/omitempty.go
|
||||
@@ -25,10 +29,14 @@ generate: root build
|
||||
|
||||
test: generate root
|
||||
go test $(PKG)/{tests,jlexer,gen}
|
||||
@go test -benchmem -tags use_easyjson -bench . $(PKG)/benchmark
|
||||
go test -benchmem -tags use_easyjson -bench . $(PKG)/benchmark
|
||||
|
||||
bench-other: generate root
|
||||
@go test -benchmem -bench . $(PKG)/benchmark
|
||||
@go test -benchmem -tags use_ffjson -bench . $(PKG)/benchmark
|
||||
@go test -benchmem -tags use_codec -bench . $(PKG)/benchmark
|
||||
|
||||
bench-python:
|
||||
benchmark/ujson.sh
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user