From 791e0482684bd571494fce6bc586be5861f5f141 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 25 Mar 2013 14:17:21 -0700 Subject: [PATCH] Makefile to grab test dependencies --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 1361e2777..e82e8d71f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,15 @@ all: @mkdir -p bin/ - go get -d ./... - go build -a -o bin/packer + go get -d -v ./... + go build -v -o bin/packer format: go fmt ./... test: + @go list -f '{{range .TestImports}}{{.}}\ + {{end}}' ./... | xargs -n1 go get -d + @go test -i ./... go test ./... -.PHONY: all test +.PHONY: all format test