mirror of
https://github.com/henrydcase/nobs.git
synced 2024-11-26 00:51:22 +00:00
Makefile
This commit is contained in:
parent
a456dc4dd9
commit
4e26b56002
6
Makefile
6
Makefile
@ -10,7 +10,7 @@ NOASM ?=
|
||||
TEST_PATH ?= ./...
|
||||
GOCACHE ?= off
|
||||
BENCH_OPTS ?= -v -bench=. -run="NonExistingTest"
|
||||
|
||||
TEST_PATH ?= ./...
|
||||
|
||||
ifeq ($(NOASM),1)
|
||||
OPTS+=$(OPTS_TAGS)
|
||||
@ -32,11 +32,11 @@ make_dirs:
|
||||
cp -rf etc $(GOPATH_LOCAL)/$(GOPATH_DIR)
|
||||
|
||||
test: clean make_dirs $(addprefix prep-,$(TARGETS))
|
||||
cd $(GOPATH_LOCAL); GOPATH=$(GOPATH_LOCAL) go test $(OPTS) -v ./...
|
||||
cd $(GOPATH_LOCAL); GOPATH=$(GOPATH_LOCAL) go test $(OPTS) -v $(TEST_PATH)
|
||||
|
||||
cover:
|
||||
cd $(GOPATH_LOCAL); GOPATH=$(GOPATH_LOCAL) go test \
|
||||
-race -coverprofile=coverage_$(NOASM).txt -covermode=atomic $(OPTS) -v ./...
|
||||
-race -coverprofile=coverage_$(NOASM).txt -covermode=atomic $(OPTS) -v $(TEST_PATH)
|
||||
cat $(GOPATH_LOCAL)/coverage_$(NOASM).txt >> coverage.txt
|
||||
|
||||
bench: clean $(addprefix prep-,$(TARGETS))
|
||||
|
Loading…
Reference in New Issue
Block a user