From 31d07f0f7b17e753e2b4060ba1f1606ab1496d29 Mon Sep 17 00:00:00 2001 From: Christian Couder <chriscool@tuxfamily.org> Date: Sun, 18 Jan 2015 10:34:09 +0100 Subject: [PATCH] Add "test/dependencies" dir and "godep restore" test License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- test/Makefile | 1 + test/dependencies/Makefile | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 test/dependencies/Makefile diff --git a/test/Makefile b/test/Makefile index ae898c51b..f35aeb3eb 100644 --- a/test/Makefile +++ b/test/Makefile @@ -24,6 +24,7 @@ test: test_expensive test_expensive: cd sharness && make TEST_EXPENSIVE=1 cd 3nodetest && make + cd dependencies && make test_cheap: cd sharness && make diff --git a/test/dependencies/Makefile b/test/dependencies/Makefile new file mode 100644 index 000000000..5aa1f3556 --- /dev/null +++ b/test/dependencies/Makefile @@ -0,0 +1,16 @@ + +all: restore + +restore: + @echo "*** $@ ***" + which godep + mkdir -p tmp_gopath + OLD_GOPATH="$$GOPATH" + export GOPATH=$$(pwd)/tmp_gopath + cd ../.. + godep restore + cd - + rm -rf tmp_gopath + export GOPATH="$$OLD_GOPATH" + +.PHONY: all restore -- GitLab