mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
add a test target
This commit is contained in:
parent
7009d6c6dd
commit
6b4bc971fd
1 changed files with 4 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -12,7 +12,7 @@ DOCKER_MAIN := $(DOCKER_DIR)/docker
|
|||
|
||||
DOCKER_BIN := $(CURDIR)/bin/docker
|
||||
|
||||
.PHONY: all clean
|
||||
.PHONY: all clean test
|
||||
|
||||
all: $(DOCKER_BIN)
|
||||
|
||||
|
@ -31,3 +31,6 @@ ifeq ($(GOPATH), $(BUILD_DIR))
|
|||
else ifneq ($(DOCKER_DIR), $(realpath $(DOCKER_DIR)))
|
||||
@rm -f $(DOCKER_DIR)
|
||||
endif
|
||||
|
||||
test: all
|
||||
(cd $(DOCKER_DIR); sudo -E go test)
|
||||
|
|
Loading…
Add table
Reference in a new issue