From 6b4bc971fd7ea03227f88b66168b884e2272aea6 Mon Sep 17 00:00:00 2001 From: Mikhail Sobolev Date: Tue, 26 Mar 2013 00:15:37 +0200 Subject: [PATCH] add a test target --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 82cbb2286..3b8b1e924 100644 --- a/Makefile +++ b/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)