mirror of
https://github.com/golang/go
synced 2024-11-21 15:24:45 -07:00
Add 'bench' target to makefiles.
R=rsc, agl, r CC=golang-dev https://golang.org/cl/188043
This commit is contained in:
parent
3daf133f35
commit
cbd3b2e8d5
@ -53,6 +53,9 @@ clean:
|
||||
test:
|
||||
$(QUOTED_GOBIN)/gotest
|
||||
|
||||
bench:
|
||||
$(QUOTED_GOBIN)/gotest -benchmarks=. -match="Do not run tests"
|
||||
|
||||
nuke: clean
|
||||
rm -f $(pkgdir)/$(TARG).a
|
||||
|
||||
|
@ -134,13 +134,20 @@ NOTEST=\
|
||||
testing/iotest\
|
||||
xgb\
|
||||
|
||||
NOBENCH=\
|
||||
container/vector\
|
||||
|
||||
TEST=\
|
||||
$(filter-out $(NOTEST),$(DIRS))
|
||||
|
||||
BENCH=\
|
||||
$(filter-out $(NOBENCH),$(TEST))
|
||||
|
||||
clean.dirs: $(addsuffix .clean, $(DIRS))
|
||||
install.dirs: $(addsuffix .install, $(DIRS))
|
||||
nuke.dirs: $(addsuffix .nuke, $(DIRS))
|
||||
test.dirs: $(addsuffix .test, $(TEST))
|
||||
bench.dirs: $(addsuffix .bench, $(BENCH))
|
||||
|
||||
%.clean:
|
||||
+cd $* && $(QUOTED_GOBIN)/gomake clean
|
||||
@ -154,12 +161,17 @@ test.dirs: $(addsuffix .test, $(TEST))
|
||||
%.test:
|
||||
+cd $* && $(QUOTED_GOBIN)/gomake test
|
||||
|
||||
%.bench:
|
||||
+cd $* && $(QUOTED_GOBIN)/gomake bench
|
||||
|
||||
clean: clean.dirs
|
||||
|
||||
install: install.dirs
|
||||
|
||||
test: test.dirs
|
||||
|
||||
bench: bench.dirs
|
||||
|
||||
nuke: nuke.dirs
|
||||
rm -rf "$(GOROOT)"/pkg/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user